Impossible to configure multiple data sources for EJB's in a single project

Hello everyone,
I have jDev 10.1.3 installed and I'm doing some research on EJB 3.0. In the jDev help files, it is mentioned that a project can contain only one EJB module. Correct me if I'm wrong but to me, this means that there is only one data source configured for a module/project.
But what if I need 2 EJB's linked to 2 different data source in my project? Is the only solution available is to create 2 different project and add one ejb to a project and the other ejb to the second project and then add the second project as a project dependency to the first project?
Thank you for your help
Alex

Multiple Datasources may be injected into a EJB 3.0 entity bean POJO with resource injection.
http://www.onjava.com/pub/a/onjava/2006/01/04/dependency-injection-java-ee-5.html?page=3

Similar Messages

  • Multiple data sources for 1 info object

    hi all,
    i am working with ods 0fiap_003 info source overview u can see for 0comp_code
    Company Code: Attributes and Tests (Flexible Update) this is a transaction data  data source.
    G/L Account: Attributes (Flexible Update) this is a transaction data  data source
    G/L Account: Texts (Flexible Update) 0GL_ACCOUNT_TEXT   this is a transaction data  data source
    and there r master data data sources for these objects
    G/L Account  hierarchy text  attributes r available.
    so only for 0gl_account  5 data sources available.
    3 master data ds.2 flexible data trans data data sources.same for comp code.
    so how can we map for these 5 dsources  in this scenario.
    i am going to create process chains for master data(3) transaction data(1).
    should i put trans .data  info packages in the transaction data process chain
    ex: G/L Account: Attributes (Flexible Update) this one.
    plz suggest me
    regards
    sridhar

    Hi Sri,
    There can be multiple datasources assigned to a single master object. Only they should be unique per source system.
    Regarding process chain, u should include the infopackage for transaction data in trans data process chain. This is because ur job scheduling for master and transaction load would differ. So the process chains should be separate.

  • Adding multiple data sources for P6 Analytics Star 3.4

    I need to extract data from 3 data sources and put into one star. I installed the necessary software, did the necessary configurations as per the documentation provided.
    Example:
    C:\star_1\star\etl_homes\staretl
    C:\star_1\star\etl_homes\staretl02
    C:\star_1\star\etl_homes\staretl03
    When I run the staretl process for 2nd source or 3rd source, I am not sure why the startetl.properties in C:\star_1\star\etl_homes\staretl\res is getting updated (Source changes to 2nd source or 3rd source as per the run). DBLINK01 is also getting changed.
    Please advise.
    Thanks

    Hallo,
    At the moment I do not see how your problem relates to OBIEE.
    Which applications are you using (and which version of each)?
    Regards,
    Ian Bristow

  • Multiple Data Source (for FAILOVER) in Easy Connect Naming method

    Hi All,
    I was wondering if there is a way to specify multiple addresses as part of data source property in the connection string when trying to connect to Oracle with Easy Connect Naming method? this is basically for failover scenario.
    I know its straight forward, if i use Connect Descriptor. But not sure how to do it with EZConnect
    For ex. this is what I want to achieve with EZConnect
    sales.us.example.com=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (LOAD_BALANCE=off)
    (FAILOVER=ON)
    *(ADDRESS=(PROTOCOL=tcp)(HOST=sales1-server)(PORT=1521))*
    *(ADDRESS=(PROTOCOL=tcp)(HOST=sales2-server)(PORT=1521)))*
    (CONNECT_DATA=(SERVICE_NAME=sales.us.example.com)))
    I appreciate your suggestions...
    Thanks

    You might get better answers in one of the DB forums from a generic fail-over perspective as EZconnect isn't specific to ODP.NET.
    I don't know if there's a way to do it or not with EZConnect version of the connect string, but you can certainly provide the fully qualified connect string without using tnsnames.ora..
    constring = "data source=(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=off)(FAILOVER=ON)(ADDRESS=(PROTOCOL=tcp)(HOST=sales1-server)(PORT=1521))(ADDRESS=(PROTOCOL=tcp)(HOST=sales2-server)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=sales.us.example.com))); user id=scott;password=tiger"
    Hope it helps,
    Gres

  • Multiple data sources for a (advanced)datagrid?

    Hi all,
    I have two arrays of objects coming in from two different sources keyed on a single column called "id". They have the exact same column structure. I want to show these in a grouped column structure in advanced data grid. The question is can I do that without manually merging the two arrays?
    Concrete example:
    Array1: [{id:1, name:"Cooper", zip:"94536"},
                 {id:2, name:"Corolla", zip:"94404"}]
    Array2: [{id:1, name:"One", zip:"94555"},
                 {id:2, name:"Camry", zip:"94403"}]
    This will look like:
    Id
    Name
    Zip
    Source1
    Source2
    Source1
    Source2
    1
    Cooper
    One
    94536
    94555
    2
    Corolla
    Camry
    94404
    94403
    I would like to do this without creating an array like:
    [{id:1, name1:"Cooper", name2:"One", zip1:"94536", zip2:"94555"},
    {id:1, name1:"Corolla", name2:"Camry", zip1:"94404", zip2:"94403"}]
    Charts are quite good at this since you can assign different data sources to different series and the axis defines the key on which the data will be merged. However, I could not find anything similar for tables.
    Any pointers?
    Thanks so much!

    Come to think of it, is this even possible? How does a datagrid use its dataField parameter to lookup data? I am guessing data_array[row_index][col.dataField] would determine the value of a single cell at row_index and col. If so, my naive approach would require me to override the bracket operator so that the appropriate value is returned..
    e.g. when a simple array of objects is used, you have [{name:John, lastname:Smith}], datagridcolumns dataField is then set to "name". Now I will have two separate arrays:
    arr1: [{name:John, lastname:Smith}]
    arr2: [{name:Smith, lastname:John}]
    mergedarray will have a reference to both of them. Then when getKey("name", 1) is called, it will return a special key which can be used to access the name property from array 1, something like "name1". If I cannot override the bracket operator, mergedarray[0][name1] will return nothing.
    I remember reading somewhere that this kind of override is not possible. Any ideas?

  • Multiple Data Sources for XML Publisher in APPS?

    Is it possible to draw data from two different reports (i.e. two different data sources) into a single template, using XML Publisher in APPS?

    Gareth is correct if it's only ONE report. It's my understanding that it's two reports that you want to merge into one report. If this is the case then the options I gave you are still correct.
    Option 3: You could add a third option which is to keep the reports the same, set the output in the concurrent program(s) to xml. You will still have to merge the xml files and apply the format template which would require a javaConcurrentProgram.
    Option 4. You could do option three but with a twist. Create two format templates, apply them to each xml output, then use the pdfMerger utility to create a single document. This may or may not work based on your requirements.
    Ike Wiggins
    http://bipublisher.blogspot.com

  • Multiple data sources for one datagrid?

    Hello Everyone,
    I have a page that has a datagrid called dgMainGrid. I have
    it bound to an HTTPService and it updates fine. But I need to
    dynamically bind it to another HTTPService when the user clicks a
    button. How can I do that?
    Thanks,
    Anthony

    Come to think of it, is this even possible? How does a datagrid use its dataField parameter to lookup data? I am guessing data_array[row_index][col.dataField] would determine the value of a single cell at row_index and col. If so, my naive approach would require me to override the bracket operator so that the appropriate value is returned..
    e.g. when a simple array of objects is used, you have [{name:John, lastname:Smith}], datagridcolumns dataField is then set to "name". Now I will have two separate arrays:
    arr1: [{name:John, lastname:Smith}]
    arr2: [{name:Smith, lastname:John}]
    mergedarray will have a reference to both of them. Then when getKey("name", 1) is called, it will return a special key which can be used to access the name property from array 1, something like "name1". If I cannot override the bracket operator, mergedarray[0][name1] will return nothing.
    I remember reading somewhere that this kind of override is not possible. Any ideas?

  • Single .rar file for multiple data sources

    Can we configure multiple data sources into single .rar file? . Currently,
    we are creating a seperate .rar file to configure each datasource by
    'only' modifing ra.xml file. This is proving to be a tedius operation in
    some cases when the application is integrated with multiple data sources.

    Siva-
    Unfortunately, no. One of the limitations of the resource adapter spec
    is that it doesn't provide a means of specifying multiple separate named
    configurations, so you can only have a single configuration.
    If you need more flexibility, you may want to consider programatically
    building up the PersistenceManagerFactory and then binding them into
    JNDI.
    In article <cqscdo$n1o$[email protected]>, Siva wrote:
    Can we configure multiple data sources into single .rar file? . Currently,
    we are creating a seperate .rar file to configure each datasource by
    'only' modifing ra.xml file. This is proving to be a tedius operation in
    some cases when the application is integrated with multiple data sources.--
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Configure a single ODI install for multiple Data Sources in ERPI

    I am setting up multiple data sources in ERPI to point to different EBS instances. How would I go about setting up ODI to support that without multiple installations of ODI? or is multiple installs the best way to go, from an 'ease of management' perspective?
    Thanks!

    First off - Have no knowledge of ERPi - Just googled it.
    If its any help, we have multiple instances of EBS on the same box, we have seperate DWH (and ODI Work / Master Repos) environments aligned to these instances. An ODI Agent can only communicate with one ODI Work repository, hence we have Multiple Agents so we can use the EBIZ -> DWH pairs simultaneasouly.
    Maybe someone will come along and tell us how it could work differently, until then - its works for us!

  • Are Multiple (Concurrent) ABAP Data Sources for AS Java UME Possible?

    Hi All,
    We have a solution which is using a JAAS logon module for partner authentication. for reason's I won't go into we have decided that it is best to use an ABAP data source. We will also be using the same JAAS approach for other ABAP applications in the future. Ideally we would configure the same JAAS server to use ABAP UME data sources from ABAP server 1 and ABAP server 2.
    I see there are provisions in the documentation for multiple UME data sources of different types but it doesn't clearly say about different concurrent data sources. IS this even possible? If so is it wise?
    Thanks,
    Doug

    Julius,
    Thanks again for your reply. This is confusing. We have an existing .Net logon application where we centrally administer accounts and where users log in. On successful login they are issued a .net Auth cookie. Our JAAS module takes that cookie, does a web service call back to .Net and authenticates them. So authentication is done on the basis of the .Net cookie, not the java UME. We simply need a java ume to allow users to execute the application that invokes the JAAS module. The application invokes the JAAS module and if they successfully authenticate they are forwarded to the requesting SAP application. So the JAAS ume is really just needed to allow various users to run the JAAS invoking application starter. Ideally we'd use the same starter application for users of SAP Application 1,2,3, etc.
    So that's where the question came from on multiple ABAP  UME data sources for a single Java instance.
    Hope that makes sense. Regardless the answer I guess is not possible but you see the method to our madness. And yes it is madness.
    Thanks,
    Doug

  • How to change the jta-data-source for projects in EJB 3

    Hi all,
    Sorry my english! :)
    I'm learning the EJB 3.0 and I'd like to change jta-data-source for projects in JDeveloper 10.1.3.1.
    I explain:
    In the same Application, I have a project with all Entitys and Session Beans. At the moment, the persistence.xml file is there with the jta-data-source tag.
    I make a new project with JUnit (Cactus) for test the EJB's that I'd like jta-data-source reference the test database.
    I make another project, with Servlet/JSP/JSF that use EJB's with interface and I'd like jta-data-source reference another database.
    What kind of changes (workaround) I could make to solve this problem?
    Thanks a lot!
    Luciano

    Hi,
    There are COOM data source which may suits your needs.
    please check data source
    0CO_OM_WBS_6
    0CO_OM_WBS_3
    Base tables are COSP and COSS.
    Check about coom data source, if not suitable then go for custom data source.
    About table cross verify with your source team.
    Thanks

  • How to configure data source for MS SQL 2005 Server.

    Good morning,
    While creating a data source for MS SQL 2005 Server, what are the values I should use for:
    Object Factory, DataSource Type, and CPDS Class Name values ?
    Thanks
    Seenu

    seenuFour wrote:
    Hi,
    I am working on a web application, the backend of which is a MS SQL 2005 server. I am creating a data source on the application server to manage the connection pool.
    Hence I need to give the following values while creating the data source:...
    Hence you need to provide some actual detail about what the context is.
    IIS runs "web applications" but your question would have no meaning in that context. On the other hand it might have some meaning if you were running Tomcat.

  • Bursting with multiple data sources

    Hello all,
    I am working in a retail environment and we are building reports for the stores. There are several reports and they all receive the same reports. We are using BIP Entreprise with the bursting feature and it works very well.
    The problem is that there are too many reports and we would like to combine all reports of the same store within the same PDF. We use the multiple data source feature and was able to concatenate all reports together.
    Using this new report and template, we can not make the bursting functionality to work properly: the bursted report do not contain all the required report components.
    For example, I have 2 queries A and B each producing reports for 3 stores: 2, 4 and 5. Without bursting, the output is as is:
    Query A - Store 2
    Query A - Store 4
    Query A - Store 5
    Query B - Store 2
    Query B - Store 4
    Query B - Store 5
    With bursting into a file using the store number, I get the following:
    File 1 - Store 2 - Query A
    File 2 - Store 4 - Query A
    File 3 - Store 5 - Query A
    + Store 2 - Query B
    + Store 4 - Query B
    + Store 5 - Query B
    I would like to have the following output:
    File 1 - Store 2 - Query A
    + Store 2 - Query B
    File 2 - Store 4 - Query A
    + Store 4 - Query B
    File 3 - Store 5 - Query A
    + Store 5 - Query B
    The main question is: can this be done using BI Pub Enterprise? We using version 10.1.3.3.2
    If it is, can you provide me with help on how to configure either/or the requests and template to accomplish this task?
    I create an SR and Oracle Support does not have an answser and suggested that somebody in the Forum might help.
    Thanks in advance,
    Minh

    I would like to have the following output:
    File 1 - Store 2 - Query A + Store 2 - Query B
    File 2 - Store 4 - Query A + Store 4 - Query B
    File 3 - Store 5 - Query A + Store 5 - Query B
    the bursting level should be give at
    File 1 - Store 2 - Query A + Store 2 - Query B
    so the tag in the xml has to be split by common to these three rows.
    since the data is coming from the diff query, and the data is not going to be under single tag.
    you cannot burst it using concatenated data source.
    But you can do it, using the datatemplate, and link the query and get the data for each file under a single query,
    select distinct store_name from all-stores
    select * from query1 where store name = :store_name === 1st query
    select * from query2 where store name = :store_name === 2nd query
    define the datastructure the way you wanted,
    the xml will contain something like this
    <stores>
    <store> </store> - for store 2
    <store> </store> - for store 3
    <store> </store> - for store 4
    <store> </store> - for store 5
    <stores>
    now you can burst it at store level.

  • Multiple data sources with UME

    Hi,
    I want to run several (web) applications on my SAP WebAS. And these applications should have different user stores. That is, one should be a database, one a SAP ABAP System and another should be another ABAP System.
    How can I configure the UME correctly?
    Do I have to configure different data sources? Or do I have to write my own loginmodules?
    And what's the situation if I have WebDynpro Apps? There I cannot use custom loginmodules, can I?
    In the SAP Library it says that "UME can be configured to read and write user-related data from and to multiple data sources".
    http://help.sap.com/saphelp_nw04/helpdata/en/e5/618a3eacd49076e10000000a114084/frameset.htm
    Any hints?
    Best regards,
    Kilian.

    Hi Michael, hi John,
    All these 3 apps are independent, i.e. they have different users no "overlapping" users. We need for every independent, homogeneous group of users an own user store.
    As John stated, we can edit a UME configuration XML file and define multiple data sources in it. However, this is still a server-wide user store.
    Is there no way to assign an application to a user store or a UME data source and not have a server-wide user store?
    And if not where can I get a description of these "initial namespace-attribute-value triples" mentioned in the SAP Library on User-Based Data Partitioning (see http://help.sap.com/saphelp_nw04/helpdata/en/cd/eafc3f8fc2c542e10000000a1550b0/content.htm).
    Many thanks,
    Kilian

  • Creating Data Source for Variant Configuratior characteristics.

    I'm trying to create a data source for material classification that is using the Variant Configurator. In transaction CTBW I'm using the following:
    - Basis datasource = 0MATERIAL_ATTR
    - Client 150
    - Class Type 300 for Variants.
    - Obj Table = MARA
    - Data Source Type = ATTR
    I then get the following error messeage:
    "Object type is not a sheet type in the class type".
    Dose any one understand this message or how I should create the datasource for this classification?
    Thanks for your help.
    Denny

    Thank you very much for your response. Can you tell me how you found this explanation of this error? I tried searching OSS and did not find anything.
    Ok, so since 0material can have multiple values I cannot use CTBW to extract the values.
    My company is using the variant configurator on a material number 'EXTND_WARRANTY' in R/3. This material is defined as a configurable material. The Class is 'ZEW_SOFTWARE' with the following characteristics:
    -Material Number
    -License Key
    -Maintenance Length
    -Coterminous Enddate MM/DD/YYYY
    In BW reporting we need to show the material 'EXTND_WARRANTY' with the value of the characteristic Material Number.
    Can you tell me how I can accomplish this?
    Thank you.
    Denny

Maybe you are looking for

  • Safe Boot with Cocktail installed

    I recently installed Cocktail, MacScan, ClamXav, and SMART Reporter on my MacBook and iMac. Now neither will boot into Safe Mode on a startup or restart by using the shift key. Both machines are working fine but I like to Boot Safe now and then for p

  • Failed 'Archive and Install' - will CLI ditto or rsync save me?

    I've done an 'Archive and Install' that ran properly, executed the restart, and then presented a message saying the installation can not be completed because of insufficient space on the target volume. To be clear, the computer restarts in the 'Insta

  • Did setIgnoringElementContentWhitespace quit working in 1.6?!  Is it a bug?

    I'm desperate for some help here. I know it looks like a long post but it really isn't. Basically, I have some code that works find in 1.5 but now is broken in 1.6. Here is the code (error handling, etc. has been removed): File schemaFile = new File(

  • N Step Approval BADI - BBP_WFL_APPROV_BADI

    We have implemented this BADI and are having problems with the agent determination. When creating and ordering the cart the approval preview shows the correct approval agents. When clicking the 'Agents' button within the workflow log via SWI1, the me

  • Just got a 5c and giving old 3gs to wife how do I get new apple id

    new 5c showing 3g but says you are not subscribed to a mobile data network. The phone part works but not the internet. I am on monthly contract with o2 for 500mg. Unlocked phone yesterday and may have changed settings? Help