2 DataSource from a Processor

Hi all, does someone know why when i try to get 2 datasource from a processor, only the second seems to work?
I want to duplicate the image of the webcam on the frame.
//Choose the format and processor model
Format[] format = new Format[1];
format[0] = new VideoFormat(VideoFormat.RGB);
FileTypeDescriptor outType = new FileTypeDescriptor(FileTypeDescriptor.RAW);
//create processor
processorV = Manager.createRealizedProcessor(new ProcessorModel(format, outType));
processorV.setContentDescriptor(outType);                                              
processorV.start(); then
//Processor --> Datasource
dataSourceVlocal = processorV.getDataOutput();
//Create a player for the local_video
pLocalVideo = Manager.createRealizedPlayer(dataSourceVlocal);
visual = pLocalVideo.getVisualComponent();
visual.setLocation(0, 0);
visual.setSize(320, 240);
pLocalVideo.start();
jFrameMain.add(visual);
//Processor --> Datasource       
dataSourceVlocal2 = processorV.getDataOutput();
//Create a player for the local_video       
pLocalVideo2 = Manager.createRealizedPlayer(dataSourceVlocal2);
visual2 = pLocalVideo2.getVisualComponent();
visual2.setLocation(320, 0);
visual2.setSize(320, 240);
pLocalVideo2.start();
jFrameMain.add(visual2);thanks in advance

HI klschoef
I'm doing almost same thing as you did, but i got a big problem ,when i start the sendstream"sendstream.start();", but it seems no UDP packet has been sent, so my client-side always wating on the receive , please tell me how to solve this problem

Similar Messages

  • How can I look up DataSource from one EJB to the other EJB?

    Image that, I have 3 databases:
    DB1
    DB2
    DB3,
    And then, 03 DataSources is deployed in DS EJB, named DataSource1, DataSource2, DataSource3.
    In the other App EJB, I have Connection Management function, as follows:
    public Connection getConnection(databaseKey) {
    if (databaseKey.equals("DB1")){
    connection = remote.lookup("DataSource1");
    }else if (databaseKey.equals("DB2")){
    connection = remote.lookup("DataSource2");
    }else if (databaseKey.equals("DB3")){
    connection = remote.lookup("DataSource3");
    return connection;
    How can I access DataSource 1,2,3 from the other EJB? How to config EJB server for that?
    Thanks in advance!
    Now, I have the other App EJB. Some class will require one of the above DataSource from DS EJB through function getConnection(databaseKey){}

    I strongle suggest you to use a ServiceLocator for this . It will be very easy to identify.Go to the sun home page and look for a servicelocator pattern.You can even directly use that code for you.

  • How to change the datasource from one server to another server?

    i need to change the datasource from development environment to production server. i had configured the JNDI informations like the following in the 'context.xml':
    <Context path="/RFT" docBase="RFT" reloadable="true">
    <Resource
    auth="Container"
    type="javax.sql.DataSource"
    driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    validationQuery="select 1"
    name="jdbc/datasource"
    username="sa"
    password="$m1sbag$"
    maxIdle="-1"
    maxActive="0"
    maxWait="5000"
    url="jdbc:microsoft:sqlserver://172.24.151.149:1433;databaseName=Projectgold" />
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    </Context>
    and in 'web.xml' included the following code:
    <resource-ref>
                         <res-ref-name>jdbc/datasource</res-ref-name>
                         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
    </resource-ref>
    and mentioned the JNDI Connection Name in the .rpt file as 'jdbc/datasource', but still getting the same connection which one is configured during the report design. need a help to resolve this...
    Thanks,
    Ram

    eventhough it's working fine. I may have deployment problem. Anyway thanks for the reply.
    Regards,
    Ram

  • Error while creating datasource from table MBEWH

    Hi all,
    I am facing an error message while creating datasource from table MBEWH
    "Invalid extract structure template MBEWH of DataSource "; This operation failed, because the template structure quantity fields or currency fields, for example, field LBKUM refer to a different table.
    Can anyone help me that why system is not allowing me to generate generic datasource for table MBEWH to transfer my month wise inventory data.
    thanks and regards.

    Hi Zakir,
          This was comming for classification data... when ever you want to extract some classification related data then we can't create generic datasources  directly.. for that you need  to go with CTBW  ( tcode )  and   create  one datasource...
       so, you need to check that   related table also.. for that  MBEWH table..
        ALL THE CLASSIFICATION RELATED DATASOURCES WE CAN'T CREATE DIRECTLY... JUST LIKE  AUSP table also.. liek this..
    regards
    @jay

  • Error while creating datasource from view ZBSIS_VIEW

    Hi all,
    I could not create  the datasource on the database table BSIS as it said "Invalid extract structure template BSIS of Datasource". I had suggestions that I should create a view and then create the Datasource on it. So I created the view and tried. But still I am facing an error message while creating datasource from custom Database View ZBSIS_VIEW.
    "Invalid extract structure template ZBSIS_VIEW of DataSource"
    Can anyone help on this regard.
    thanks.

    Hi,
    Yes. You need a create a view on tables BSIS, BKPF and T001 as the currency/quantity fields in BSIS have reference fields from the other 2 tables.
    In BSIS, in the currency/quantity fields tab, you have some ref tables and fields. You would need to include these tables and join in the view. You would also need to include the ref fields like WAERS, HWAE2, HWAE3, etc in the view. Then you would be able to create the datasource.

  • Error Transporting PI (XI) Web Service Datasource from BI BW 7.0

    Hi all,
    I have a PI (XI) datasource in development.
    While transporting this datasource from Dev ==> QA, the transport keeps failing.
    If the datasource is active (BI 7.0), it should be transported to QA without any dependency with other objects?
    PI (XI) source system has been setup in QA.
    Any ideas? Following is the error I get.
          Error generating Web service /BIC/CQZHRCM_T00005000
          Error when activating Datasource   ZHRCM_TD_MELLONPENSION_INTF Q06CLNT100
    The DataSource ZHRCM_TD_MELLONPENSION_INTF(Q06CLNT100) does not exist in object version A
    Thanks
    Edited by: Rajen SAP BI on Aug 30, 2008 12:44 AM

    Hello Natty,
    1. yes the test passed. http://picasaweb.google.de/lh/photo/kcDy5FofEl9VT4jw2m6FZQ?feat=directlink
    2. Yes, I try to access a regular oracle DB via JDBC.
    3. The Error occurs when I'select the Datasource and entered a table name and then click the search button. http://picasaweb.google.de/lh/photo/iYPCjcdqIclUet1cNj-LNQ?feat=directlink
    Thx for Help
    Sebastian

  • How to create a generic datasource from function module?

    Dear experts,
    I have created a generic datasource from function module. For this extrator, I created a function module and a structure.
    I have now some difficulties to continue:
    In this function module, i get data from different transparent tables. Then i put these data into an internal table.
    I just don't know what is the relatioin between the structure i defined and this internal table.
    I should make "iTab structure AA" in the source code?
    Thanks

    Hi..
    check this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Generic Extraction via Function Module
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    1. Create s structure with the fields that you need from the 4 tables . Activate.
    2. Goto SE 80 Select The Function Group , Copy , Select the Function module
    " RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
    Y or Z .
    3. SE37 ->Your Function module name -> Change , In table tab give your structure
    name by deleting the associated type given in " XXXX " .
    4. Now select source code and Do the coding . Give Data source name in Coding .
    In your case you have to take data from more that 1 table .
    5. Activate the Function Group .
    6. In RSO2 Create the Data source , Give the Function Module Name , And Save.
    7. RSA3 -> Give data source name and Check for the Records .
    Creation of custom datasource. (Using function module)
    .Create a function group .
    . Structure ZTXXXX
    Create function module (i.e. ZTESTXXX) .
    . Create the data source using transaction (RSO2).
    . If structure exists for the table parameter of your function module then ok else create a structure for the table parameter ‘        ’.
    Test the datasource in R/3 using transaction RSA3.
    Transfer the data source to BW –System and replicate it in the BW-System.
    Message was edited by:
            shiv

  • Datasource from a logical database.

    Hi all,
      I am in need of creating a datasource from a std.. Logical Database IMA in R/3. Is it possible to create a datasource directly from logical database or it is essential to find the base tables fetching data to the logical databse and look for the appropriate business content.
    Regards,
    Murali

    Thank you,
      The document helped me to create a Infoset.Can anyone share ur experience of creating a datasource using a INFoset which extracts data from a LDB. The LDB which i am supposed to use has few structures,hence, I am having some performance isssues which i believe a more elaborate better document can help me with.. The LDB I am looking for is IMA.
    Thanks in advance.

  • Warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less than -source '1.7'

    warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less than -source '1.7'
    Note: Creating static metadata factory ...
    An annotation processor threw an uncaught exception.
    Consult the following stack trace for details.
    java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/PersistenceException
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2570)
        at java.lang.Class.getDeclaredField(Class.java:2055)
        at org.eclipse.persistence.internal.security.PrivilegedAccessHelper.findDeclaredField(PrivilegedAccessHelper.java:67)
        at org.eclipse.persistence.internal.security.PrivilegedAccessHelper.getField(PrivilegedAccessHelper.java:223)
        at org.eclipse.persistence.internal.helper.Helper.getField(Helper.java:980)
        at org.eclipse.persistence.internal.descriptors.InstanceVariableAttributeAccessor.initializeAttributes(InstanceVariableAttributeAccessor.java:100)
        at org.eclipse.persistence.mappings.DatabaseMapping.preInitialize(DatabaseMapping.java:1455)
        at org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.preInitialize(AbstractDirectMapping.java:913)
        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.preInitialize(XMLDirectMapping.java:439)
        at org.eclipse.persistence.oxm.XMLDescriptor.preInitialize(XMLDescriptor.java:559)
        at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:649)
        at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:632)
        at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:568)
        at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:799)
        at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:756)
        at org.eclipse.persistence.oxm.XMLContext$XMLContextState.setupSession(XMLContext.java:738)
        at org.eclipse.persistence.oxm.XMLContext$XMLContextState.setupSession(XMLContext.java:1)
        at org.eclipse.persistence.internal.oxm.Context$ContextState.<init>(Context.java:86)
        at org.eclipse.persistence.oxm.XMLContext$XMLContextState.<init>(XMLContext.java:702)
        at org.eclipse.persistence.oxm.XMLContext.<init>(XMLContext.java:192)
        at org.eclipse.persistence.oxm.XMLContext.<init>(XMLContext.java:164)
        at org.eclipse.persistence.oxm.XMLContext.<init>(XMLContext.java:154)
        at org.eclipse.persistence.internal.jpa.modelgen.objects.PersistenceXMLMappings.createXMLContext(PersistenceXMLMappings.java:139)
        at org.eclipse.persistence.internal.jpa.modelgen.objects.PersistenceXMLMappings.createXML2_1Context(PersistenceXMLMappings.java:123)
        at org.eclipse.persistence.internal.jpa.modelgen.objects.PersistenceUnitReader.initPersistenceUnits(PersistenceUnitReader.java:178)
        at org.eclipse.persistence.internal.jpa.modelgen.objects.PersistenceUnitReader.<init>(PersistenceUnitReader.java:72)
        at org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor.process(CanonicalModelProcessor.java:376)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
        at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1173)
        at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:859)
        at com.sun.tools.javac.main.Main.compile(Main.java:523)
        at com.sun.tools.javac.main.Main.compile(Main.java:381)..................
    I'm an undergraduate student in software engineering. I worked with EE and tried to built a EJB Application. It worked. But when i connected it to database using persistence it getting error as mentioned.
    When i change my source Binary Format to jdk6 it runs without errors. What can i do for this without downgrading jdk version?

    I resolved my problem. The issue was the version of EclipseLink that I had specified in my pom.xml. Version 2.0.1 has an issue with the meta-model generation and, in fact, I wanted to be using version 2.1.1. Once I changed to 2.1.1 everything compiled correctly.
    Just make certain that you include the correct EclipseLink repository.
    <repository>
    <id>EclipseLink Repo</id>
    <name>EclipseLink Repository for the JPA implementation</name>
    <url>http://www.eclipse.org/downloads/download.php?r=1&amp;nf=1&amp;file=/rt/eclipselink/maven.repo</url>
    </repository>

  • Obtaining DataSource from Application Module

    How may i obtain DataSource from pool managed by Application Module? I want some of my db-related operation performed by Spring's JdbcOperations class ( http://www.springframework.org/docs/api/org/springframework/jdbc/core/JdbcOperations.html ) and i want have only one connection pool in my application.
    Thanks,
    Kind regards,
    Marcin Zduniak / http://J2ME.pl

    Refer
    http://www.oracle.com/technology/products/jdev/howtos/10g/usingdatasources/using_datasources.html

  • Advices about creating a datasource from an infoset query

    Hi all,
    i have to create a datasource with extraction from an infoset query in R3, i have many questions:
    1- i have heard about the bad performance using a Datasource from an Infoset query, how can i improve this?
    2- The infoset query doesnt exist in R3 Develop, but this exist in R3 Prod, what do i must to do? create a false infosetquery in R3 D, with just the same name of the info set query in R3 Prod? or what else?,
    3- some material to improve this development about create datasources from an infoset query.
    thanks guys!

    Hi,
    You can verywell use infoset query if you are doing following things
    Join using Keyfields to retreive data from tables
    If not using keyfields create index for those table fields  in those fields which will improve in accessing database
    Try to use minimum of tables of small size dont try to join big tables like GLPCA and all.
    Try to load small set of data like a period or month. Dont try for a year or so.
    if your performance is good for aperiod you can go for a year.
    If you are good in function module you can try function module in which you will have the option of specifying no of records to be selected usign package size.
    Hope this helps for you.
    Thanks,
    Arun

  • Steps to enhance a datasource from SAP CRM

    Dear Forum,
    Could you please provide me with some document to enhance a datasource from SAP CRM. Is it any different from enhancement of datasource from ECC datasources,
    Thanks and regards,

    Hi,
    please look this:
    Business Intelligence How-to Guides for SAP NetWeaver 2004 [original link is broken]
    or here: How-to Guides for SAP NetWeaver Business Warehouse  7.0 [original link is broken]
    Creating a datasource for generic extraction
    regards
    CSM Reddy

  • Steps to create a generic datasource from SAP CRM

    Dear Forum,
    Could you please provide me with the steps to create a generic datasource from SAP CRM
    Thanks for you time and efforts
    Regards,

    Hi,
    Initially create a view or identify the table to create generic extractions, remaining process is same in all data bases such as CRM........
    GENERIC EXTARCTIONS:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/generic%2bextraction
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
    Generic Delta:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Assign points if these are useful.
    Rgs,
    I.R.K

  • Transporting active version of datasource from DEV to PRD

    Hi,
    When I transport a 3.x datasource from DEV to PRD, the version I am getting in PRD is 'modified'. In DEV we have both modified and active versions and there's no difference between them. When I try to activate the modified version, it says that I have to maintain the transfer rules associated with the datasource. Then it takes me to the transfer rules display but I am not sure what to do next...how to activate the datasource. How do I get the active version from DEV to PRD?
    Thanks

    Hi,
    Pls Refer this link for details about transporting BI Objects
    http://help.sap.com/saphelp_nw04s/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps,
    Regards
    CSM Reddy

  • Best way to access JNDI configured DataSource from outside container

    I'm not sure if this is the right forum category, but it seemed like a good place to start.
    I have a DB2 database on an OS/390 mainframe that is configured as a JNDI datasource in WebSphere (WSAD) 5.1.x. I can get connections and do database transactions within my web-application just fine.
    Part of my project needs a cron managed stand-alone application to do some database clean up work. It essentially needs to query one database, and then based on the results stick some data into the DB2 database. Easy enough right?
    The issue here is that our Security department will not under any circumstances give us the passwords and users for either database. They give these only to the server admins who configure WSAD. We also can't use a properties file. The server admins either won't touch any properties file (it is considered "code" and they don't want to be responsible for problems) or they won't have access to the contents of the ears or jars we give them. This basically leaves us with our JNDI datasource as the only datasource we could access (because the admins will have it configured with a username and password). There is also no way to infer a valid username/password from the owner of the web-app since it will live on an NT box and the NT user won't have mainframe rights.
    There is also no possibility of bending these rules no matter how stupid or cumbersome they are.
    So my question is, what is the best method in which to gain access to this JNDI DataSource or a Connection from this DataSource? Can I even get a DataSource from a JNDI lookup? Is JMS/RMI or some other acronymn that I don't know about the only way to acomplish this?
    We're using Struts MVC -> Spring -> Hibernate in the webapp, if that helps.
    Thanks in advance.

    You seem to be asking: "how can a standalone app get a valid DB2 connection by leveraging the live objects in a WSAD application"?
    While this is pretty far from my area of expertise, I don't think you can. While both JMS and RMI (and other technologies) can export some types of Java objects, they have to be objects that implement the java.io.Serializable interface. Connections cannot be serialized because these objects (normally) encapsulate a live TCP/IP connection. I don't see any fundamental reason a DataSource object couldn't be serialized other than security, but that very reason means that no reasonable implementation is going to be serializable; if it were serializable, you could almost certainly extract the value of the username and password from the serialized object. In other words, what you're really trying to do is get around security and Java's security is probably robust enough to prevent it.
    If the DB credentials only live in the WSAD world, that's where the database work has to be done. However, there's no reason the work can't be driven by a servlet or JSP that is in turn invoked from a cron-driven script or application. Personally, I do such "event notifier" scripts in Perl; Java is a bit heavy for "start up, post to URL, shutdown", but if you have more work going on you could certainly use Java. If actually doing the work in the WSAD application is not acceptable, then you're probably stuck.

Maybe you are looking for

  • Firefox crashes as soon as Flash video tries to load and Safari shows the error "Plug-in Failure"

    I am unable to use Youtube or view Flash video on any sites. Firefox crashes/quits as soon as a video tries to load and Safari shows the error "Plug-in Failure". I have uninstalled Flash, downloaded a fresh version and installed, but no joy. I am usi

  • CRS HOME & 9iR2 RAC ORACLE_HOME Different Owners

    Facts: 2 Node Cluster, Sun T2000 O/S: Sun Sparc Solaris 64 bit 5.10 3rd Party Clusterware - Veritas Storage Foundation for RAC (SFRAC) 5.0 MP3 CRS: 10.2.0.4 CRS is owned by oracle:dba (with the exception of anything owned by root) 9iR2 (9.2.0.8) RAC

  • No sound in swf file

    I need to resize an flv file. I opened it in Flash and embedded it as a movie clip in the timeline. I also embedded into the timeline frame sequence. I was able to resize the file successfully. When I preview publish it as a swf file, it plays with s

  • ** Exception Throw in Fork Step - How to inform ?

    Hi Friends, Customer sends 2 IDoc DEBMAS, ADRMAS. The conditions is when both the IDocs is having the same customer no we need to send to the outside system.  (DEBMAS - E1KNA1M - KUNNR) equals to (ADRMAS - E1ADRMAS - OBJ_ID). I have designed BPM for

  • Opinions please: Multiple libraries

    Hi, Please give me your opinion if you have some experience of libraries What's the best solution for multiple libraries. I can see there are a number of solutions. I have not the money to buy them all or spend ages trying them all out, and I don't k