Multiple connections in one BC4J Project

I want to access several Databases from one BC4J-Project.
For example I want to write an application, which collects data from one database, does some computation and stores the results in a second database.
I would prefer to use BC4J-Components for both, the source and the target database, but unfortunately I can select only one connection per BC4J-Project.
Has anyone got an idea, how I can access more than one database-connection from one BC4J-Project without having to write all the JDBC-Stuff on my own? JDev-Team, can you please give a hint?

Among other things, the BC4J Configuration defines the name of the JDBC connection to use. To solve your problem, you can create two Configurations one for each database. The JDBC connection value will be the only different element between these two Configurations. To create a BC4J Configuration in JDeveloper, right click on the AppModule node and then click Configurations...,
Use oracle.jbo.client.Configuration class to create AppModules connected to the database you want.,
import oracle.jbo.*;
import oracle.jbo.client.Configuration;
String am = "demo.DemoModule"; // Fully-qualified application module name
// Configuration name with JDBC connection to source database
String cf1 = "DemoModuleSourceDb";
ApplicationModule amSrc = Configuration.createRootApplicationModule(am,cf1);
// Configuration name with JDBC connection to dest database
String cf2 = "DemoModuleDestDb";
ApplicationModule amDest = Configuration.createRootApplicationModule(am,cf2);
Note that the AM name can also be different if you want.
Hope this helps,
Sathish.
I want to access several Databases from one BC4J-Project.
For example I want to write an application, which collects data from one database, does some computation and stores the results in a second database.
I would prefer to use BC4J-Components for both, the source and the target database, but unfortunately I can select only one connection per BC4J-Project.
Has anyone got an idea, how I can access more than one database-connection from one BC4J-Project without having to write all the JDBC-Stuff on my own? JDev-Team, can you please give a hint?

Similar Messages

  • Multiple connections in one project

    Hi,
    Is there perhaps some kind of a document describing a 'best practice' for using multiple connections in a ADF BC application. One connects to an oracle DB another to a SQLServer.
    I suppose I need to create two different services? Anybody having experience with this?
    Regards,
    Koen Verhulst

    Among other things, the BC4J Configuration defines the name of the JDBC connection to use. To solve your problem, you can create two Configurations one for each database. The JDBC connection value will be the only different element between these two Configurations. To create a BC4J Configuration in JDeveloper, right click on the AppModule node and then click Configurations...,
    Use oracle.jbo.client.Configuration class to create AppModules connected to the database you want.,
    import oracle.jbo.*;
    import oracle.jbo.client.Configuration;
    String am = "demo.DemoModule"; // Fully-qualified application module name
    // Configuration name with JDBC connection to source database
    String cf1 = "DemoModuleSourceDb";
    ApplicationModule amSrc = Configuration.createRootApplicationModule(am,cf1);
    // Configuration name with JDBC connection to dest database
    String cf2 = "DemoModuleDestDb";
    ApplicationModule amDest = Configuration.createRootApplicationModule(am,cf2);
    Note that the AM name can also be different if you want.
    Hope this helps,
    Sathish.
    I want to access several Databases from one BC4J-Project.
    For example I want to write an application, which collects data from one database, does some computation and stores the results in a second database.
    I would prefer to use BC4J-Components for both, the source and the target database, but unfortunately I can select only one connection per BC4J-Project.
    Has anyone got an idea, how I can access more than one database-connection from one BC4J-Project without having to write all the JDBC-Stuff on my own? JDev-Team, can you please give a hint?

  • Multiple connections in one app

    Hi,
    I have a web app and am using JDev 10.1.3.2 with ADFBC. Some of the data will come from SQL2000 while other info will come from Oracle 10g. My UI will require presentation of a mix. But I am only able (it appears) to use one db connection in one project. What's the best way to address using multiple datasources?
    Thanks!
    Ginni

    hi ginnim
    Maybe this blog story by Steve Muench could be of some help:
    "How Granular Should My Application Modules Be?"
    http://radio.weblogs.com/0118231/stories/2005/05/27/howGranularShouldMyApplicationModulesBe.html
    success
    Jan Vervecken

  • Multiple Connections in one transaction?

    Hello,
    we use the OC4J 9.0.3 with the fellowing DataSource configuration:
    <data-source
    class="oracle.jdbc.pool.OracleConnectionCacheImpl"
    name="OracleDS"
    location="jdbc/OracleCoreDS"
    xa-location="jdbc/xa/OracleXADS"
    ejb-location="jdbc/OracleDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="xxx"
    password="xxx"
    url="jdbc:oracle:thin:@10.50.40.17:1521:vbstest"
    inactivity-timeout="30"
    max-connections="30"
    />
    In our project we use CMP/BMP-Entitybeans and CMR. During a complex update we got a SQL-Exception with the message, that a foreign key constrain has been violated (primary key does not exist, even it has been inserted in the same transaction). Because we know, that the same code runs on JBoss 3.0, we have assumed that OC4J use more than one connection and so we have enabled the connection debug.
    The result is, that OC4J created in one transaction more that 6 connections. All beans using the same datasource.
    Is there is a way to configure this beavior? Or someone have a idea, why OC4J use more than one connection in one tranaction?
    Here the connection debug log:
    2003-03-18 10:42:31,162 DEBUG (10.50.40.115-ruethja-0) [VDDBean_PersistenceManager11] Connection: [Connection : com.evermind.sql.OrionCMTConnection@a1fa8e]
    2003-03-18 10:42:31,602 DEBUG (10.50.40.115-ruethja-0) [DienststelleBeanImpl_PersistenceManager73] Connection: [Connection : com.evermind.sql.OrionCMTConnection@7a6aa8]
    2003-03-18 10:42:32,433 DEBUG (10.50.40.115-ruethja-0) [VorgangBeanImpl_PersistenceManager41] Connection: [Connection : com.evermind.sql.OrionCMTConnection@1af986c]
    2003-03-18 10:42:32,483 DEBUG (10.50.40.115-ruethja-0) [VDDBean_PersistenceManager11] Connection: [Connection : com.evermind.sql.OrionCMTConnection@1d372d7]
    2003-03-18 10:42:32,674 DEBUG (10.50.40.115-ruethja-0) [VorgangBeanImpl_PersistenceManager41] Connection: [Connection : com.evermind.sql.OrionCMTConnection@8b64b3]
    2003-03-18 10:42:32,724 DEBUG (10.50.40.115-ruethja-0) [DienststelleBeanImpl_PersistenceManager73] Connection: [Connection : com.evermind.sql.OrionCMTConnection@1e0e2ba]

    could you post the source of session bean may be i can help you then
    regards,
    ashish saraf

  • (CHaRM) multiple landscapes in one maintenance project

    Dear solman experts,
    I know that it is possible to have one global maintenance project supporting multiple landscapes with the scenario CHaRM, instead of one maintenance project for one landscape. My question is what are the specific configurations to keep in mind when performing the configuration? And what are the consequences e.g. Can I still use the Change Document types urgent and normal correction or is it limited to only the normal correction due to complexity?
    I hope someone can help me this.
    Thanks in advance.
    Regards,
    Ricky

    Hi
    Yes it is possible................ with maintenance project you get normal, admin and urgent correction types
    only with implementation projects you get normal & admin only and no urgent corrections
    Secondly you have to create logical component for each system landscape and add all of them to your single project
    e.g
    SAP ECC landscape LC1 Dev 100 QA 200 PRD 300
    SAP BI landscape Lc2 dev 100 qa 200 prd 300
    etc
    Note one logical component can store only one system landscape information not all systems
    so add all of them in one project and activate charm.
    now whenever the ticket is created ....developer can choose the system in which they want to create a TR ......and based upon LC it knows which is right Quality and prd.
    Morver never forget .....Solman domain controller is master and it uses the same TMS setup which you for satellite system without charm.
    hope its clear now
    regards
    prakhar

  • Multiple connection in one form, is it possible?

    Im trying to access two different database (P.O.7 and the other is an ODBC Compliant) in one form.
    First thing i did was to run the wizard on each block using different login (1 for my PO7 and also the other) and it was successful, but when I try to execute the form, it just cant recognized the other block! since im only connected to other datasource....
    Any suggestion on what should i do with this....

    Check out the EXEC_SQL command under help in Forms
    The EXEC_SQL package allows you to access multiple Oracle database servers on several different connections at the same time. Connections can also be made to ODBC data sources via the Open Client Adapter (OCA), which is supplied with Developer. To access non-Oracle data sources, you must install OCA and an appropriate ODBC driver.
    The EXEC_SQL package contains procedures and functions you can use to execute dynamic SQL within PL/SQL procedures. Like the DBMS_SQL package, the SQL statements are stored in character strings that are only passed to or built by your source program at runtime. You can issue any data manipulation language (DML) or data definition language (DDL) statement using the EXEC_SQL package.

  • How can I make multiple quizzes within one Captivate project?

    Hi guys! Really liking Captivate 5.5, especially the way random question slides can lift questions out of a question pool...very elegant!
    Sadly though, I've come up against a bit of a wall. In my project, I want to have 3 separate quizzes that all use the same question pool; a 10, 30 and 50 question-long quiz. Each one needs to have its own results page.
    It's easy enough to see what I mean by looking at the screenshot below:
    The idea was to have about 105 slides in total, with slides 10 - 20 being the 10 quiz slide, 21 - 51 being the 30 question quiz and 52 - 102 being the 50 question quiz.
    There are three invisible buttons placed over those 10, 30, 50 text boxes. In the picture, the '10 question' button would jump to slide 10, the '30 question' button would jump to slide 21, and the '50 question' button would jump to slide 52, jumping the user to the start of their designated tests.
    Though I can create the 10 random question "block" easy enough, when it comes to adding the 30 question "block" it just adds the new random questions to the existing random questions. I want three separate quizzes, each with their own results screens please. (I don't want to daisy-chain to external projects, because the results of each test need to be used within the homepage.)
    It just adds them on to the existing block!! Argh!!
    Little bit ticked off with Adobe...the reason their products are so incredible is because they put no constraints on the user, and you can use their tools to create things even the developers never dreamed of. Like in Photoshop for example, I bet when the dropshadow fx was created, the developers never realised that it would be used to give a metallic 'stamped' look to text by turning it to white and applying it just inside the text.
    Captivate, though amazing most of the time, has a nasty habit of stomping on my toes. You can't set grade boundaries and have quizzes give out grades A+ to F- for example. You can only have 'pass' and 'fail', thus making it rather pointless for use in schools, contrary to how the program is advertised. Another example would be when I wanted to create a replay button. I thought that a button that jumped to the slide it was on would be a simple, no-BS replay button, but for some reason you can't make a button jump to its current slide. I downloaded a widget that worked in the end, but I wish Adobe would get off my back and let me do what I want!
    Anyway, if you could help me out here it would be grand

    I must say I have a little sympathy for the Captivate developers on this occasion.  As you say, they've created an application that does so much, that when you eventually run into a hard boundary of some kind, the effect is somewhat jarring.  However, every application, no matter how good, has limits.  I'm probably one of the worst offenders when it comes to asking the Adobe Captivate Development Team for enhancements (I think I've logged over 70 enhancement requests for Captivate 6 alone).
    In your case, you want to have three different quizzes in one project file, each with it's own separate Quiz Results page.  Lilybiri's blog explains how to set up your own faux Quiz Results pages using system variables and custom user variables, but you're going to find this to be quite a lot of trouble.  Even if YOU want to consider these as three separate quizzes, as far as Captivate is concerned they're just one big quiz with 50 questions.  So Captivate will calculate it's internal results based on a 50 question quiz, even if your users select the 10 question version.  So achieving a final Pass/Fail result is going to be problematic at best.
    As Lilybiri suggested, your better strategy would be to break this up into separate modules so that you can get your three separate quiz results (all done in standard Captivate) as well as correct results based on the actual number of questions done by the user.
    As far as grades A-F is concerned, there's nothing to stop you from using Advanced Actions and User Variables to calculate the user's score as a grade.  You need a user variable that stores the user's grade (e.g. var_Grade). And you need a fairly complex Conditional Advanced Action (e.g. caa_CalculateGrade) with several clauses each of which goes something like:
    If
    cpQuizInfoPointsscored is lesser or equal to [highest score for a particular grade]
    AND
    greater or equal to [lowest score for a particular grade]
    Actions
    Assign var_Grade with [the appropriate grade for that range of scores]
    Your conditional action will need one of these clauses for each separate grade.  Once your variable has been assigned a grade based on the user's score, you can display it in a text caption somewhere on the quiz results page or on a slide thereafter with suitable commendations/ commiserations.

  • Can I use more than one database connections in a jdeveloper project?

    I use jdeveloper version 9.0.4.0 (build 1407),Can I use more than one database connections in one jdeveloper project?

    9.0.4 is a fairly old version, so you may only find a few people who know how it worked.
    Assuming you're using ADF BC, once known as BC4J, once know as JBO, in the project, and that the architecture hasn't changed much, then the answer is only 1 connection per project.
    Programmatically you're free to use as many connections via JEE as you see fit, but ADF BC is limited to one connection.
    CM.

  • Multiple Web Services in one Jdeveloper project

    Hi all,
    I'm currently trying to implement a series of web services, all relating to one application. I'm using the top-down approach, where I generate the web service from a WSDL file, and add my implementation to the generated classes. The WSDL file imports all sorts of XML Schemas (xsd-files) and Jdeveloper correctly generates all the necessary java-classes for me. Lets call the first web service I create WS-1.
    This all works fine and I'm a happy panda. I can call the web service, it works, I can modif the wsdl and regenerate the web service to e.g. change the input etc. All this works.
    Just until the point where I want to create a second web service (lets call this WS-2). This new web service doesn't use all the XML Schemas that the first web service does, it is more simple with regards to in-/output. The problem arises when I modify WS-2 and Jdeveloper regenerates the Web service files (.java and the files in the WEB-INF/wsdl-directory). When I do this, it deletes the imported xsd-files that WS-1 uses (removes them from WEB-INF/wsdl).
    And when I regenerate WS-1 to get my xsd-files in again, then when I regenerate WS-2 it imports all the unnecessary xsd-files into the wsdl for WS-2.
    Something tells me, that there is a connection or shared library between all web services in one Jdeveloper project. That they all imports and uses the xsd-files in WEB-INF/wsdl.
    Is this true? Can't I have multiple web services (and wsdl-files) using different types (schema definitions) in the the same Jdeveloper project?
    One solution I can think of, is to have all my web services in different projects under the same application. But is this really necessary?
    I'm using Jdeveloper 10.1.3.3.0.

    Hi,
    pure from a coder instinct I think I would prefer them to be in separate projects for better reuse and clean separation. If I need project 1 to access aclass from Project 2, I can check the dependency check box in the project properties. Is there any business requirement that makes you think having all of these in a single project will help ?
    Frank
    Btw.: I agree that JDeveloper shouldn't constraint developers from doing what they want and if this is a limitation the feel free to file a bug

  • Shall I use one datasource for multiple connection pool?

    Hi,
    I need to clarrify that, Shall I use one Datasource for multiple connection pool in distributed transaction?
    Thanks with regards
    Suresh

    No. If its transactions across multiple databases you should use different datasources.

  • Multiple TOCs for One Project

    Is it possible to split the topics in one help project into
    two toc (hhc) files? I have a master project that merges about 53
    chm files. Some of the slave projects are rather large and over the
    years have had several types of information added to them. The
    information in the projects are related to each other, but they
    need to be organized separately in the master TOC. Splitting the
    projects themselves is not a good solution. I would like to have
    multiple hhc files for the projects so that the topics can easily
    be inserted in their logical place in the master TOC.

    Hi,
    I am TW working jointly with another TW on a huge multifirm
    project for a same client. He is well versed in RH, while I am a
    beginner (with using RH) not with TW. He and I each produce large
    parts of what will be merged into a single huge context sensitive
    .chm file. Having experimented a bit with possibilities such as the
    ones you are exploring, I thought we could use it for our project.
    But the other TW felt we would have problems down the road.
    Just to confirm what John says. But then, I also am not
    adding anything positive by way of solution. Hope somebody else
    reacts to these two successive negative answers, and comes up with
    help for you.
    Daniel Garneau, CTM, CL
    Technical Writer, Canada

  • Multiple Quizzes in One Project

    I'm developing a project that teaches 4 different standards,
    then has a overall assessment quiz at the end of the course.
    The problem I'm running into is that the "pre" quiz after
    each of the four standards cannot be independently "scored" without
    adding to the total score for the project. It's as if you can only
    have one quiz total slide per project, and that total slide can't
    be duplicated for individual quizzes.
    Any suggestions? I guess I have to break up each of the
    standards into their own projects, then present the final
    assessment as another independent project.
    Thanks
    JimmyD

    Welcome to our community, JimmyD
    I think you are spot on. There is currently no way within
    Captivate to have multiple quizzes in the same project. I'm not
    even sure if that would be possible from a technical standpoint.
    But I've seen a few folks ask about it here. Because of that, I
    would strongly encourage you and anyone else that sees a need for
    this capability to alert the Captivate Development team by
    completing a Wish Form.
    Click
    here to view the WishForm/Bug Reporting Form
    Cheers... Rick

  • SQL Developer cannot execute multiple queries in one connection

    Hi,
    Using : SQL Developer 1.2.29.98, Oracle Database 9i on Windows XP.
    Currently I have TOAD and PL/SQL Developer to handle things related to Oracle Database.
    I found this SQL Developer tools as an interesting tool which might replace PL/SQL Developer (I assume).
    I opened two SQL Worksheets and tried to execute 2 queries (time consuming one) simultanously, suddenly it freezes (the window become grayed). Just like TOAD, we cannot smoothly execute multiple queries on single connection on SQL Developer
    I can monitor the query process using TOAD (Session Browser) and found both queries are running while SQL Developer window become grayed and seems not functioning. After the queries have been finished, I mean both of them, the SQL Developer window become normal and "alive" again showing the expected results.
    Well, however PL/SQL Developer could handle this. Executing multiple queries in single application is just its unbeatable features.
    We can view the query result once its finished instead of until the others being processed, by just only switch the SQL Windows.
    Is it true that SQL Developer doesn't support executing multiple queries?
    Or is it a feature which we should request?
    Or we have to activate this feature by doing some changes on configuration / preferences?
    (Do we need to open two SQL Developer instances? what a memory consuming solution).
    Regards,
    Buntoro

    SQLDeveloper connections are single threaded and also rather single minded (in that you can't do much else while a long query is running.)
    There is an existing feature request http://apex.oracle.com/pls/otn/f?p=42626:39:3685254426061901::NO::P39_ID:4202 for which you can vote.
    The workaround is to have multiple connections. Not brilliant but it works.

  • Having multiple J2EE stacks connected to one CRM ABAP instance for CRM IPC

    Hello Experts,
    The situation we were looking at is this.
    We have 3 distinct teams doing Java development for CRM IPC configurators
    Team A - IPC/Ecommerce
    Team B - UI
    Team C - Order Wrapper
    They each wanted to do development in their own landscape (Java Stack)
    Additionally, two more landscapes are needed:
    a landscape for end 2 end testing of the configuration scenarios
    another for a Performance Assessment
    To get 5 full dual stack CRM instances was deemed unlikely.
    Trying to explore if multiple J2EE's, can be connected to one CRM ABAP system.
    It seems we can not, as the CRM ABAP to JEE comminucation is via RFC and there is excatly one RFC_Destination defined per CRM (across all clients). Is this correct?
    Thanks
    Rocky

    May be you can wordsmith your requirement to make it clear what each team is doing. Also, please mention what version of CRM / IPC you are talking about.
    From what you have said, I guess IPC/E-Commerce is E-Commerce enhancement. If NWDI is in the picture, you have one track for this enhancement.
    The UI - I assume is IPC UI. This is also a Java based web application that shares the same Java stack with the E-Commerce application.
    What is Order Wrapper? - If it a custom web application you guys are into, I still don't see why they can't use the same Java "stack".
    In the development lifecycle, it is sufficient to have only one IPC environment for each phase. The development team needs only one, unless they have a valid reason to have their own Java stack. I bet they need only one.
    If the developers are asking about "Sandbox", they can have their own NetWeaver Developer Workplace in their laptop / desktop.
    Easwar Ram
    http://www.parxlns.com

  • 'SPROXY' - Multiple PI Systems connected to one ECC System for ABAP Proxies

    Dear Experts
    I am currently facing an issue when I want to connected multiple PI instances to one ECC client for
    ABAP Proxy purposes.
    In transaction 'SPROXY', in the Enterprise Service Brower, only one PI instance is shown and accessable.
    Can this setting be changed to allow multiple PI systems in this Enterprise Service Browser?
    Thanks for your ideas.
    Mathias

    Hi,
    Check these replies.
    R/3 connected to multiple XI instances
    'SPROXY' - Multiple PI Systems connected to one ECC System for ABAP Proxies
    Multiple XI Instances
    Multiple XI instances or multiple app server
    Thanks,
    Vijaya.
    Edited by: Vijaya Lakshmi Palla on Jun 4, 2008 11:43 AM

Maybe you are looking for

  • IPhone 4 won't turn on when plugged into computer nor charger

    My refurbished iPhone 4 has the latest iOS 5.1.1 update and my mom's computer has iTunes version 10.6.3.25. However, recently it has been having issues holding a charge and now as of yesterday it won't turn on period. When it does it's only for a spl

  • To convert Sap Script output to PDF format and send it via email.

    Hi Friends, Could any one please tell me, how to convert the Sap Script output to PDF format and send it via email. If any one have the code, kindly mail me to [email protected] Thanks & Regards, John

  • Streaming music from i-tunes to my PS3 w/out disabling firewall

    I wanted to know if any of you have been able to stream media from your i-tunes library to an external server without disabling your firewall? Right now the only way I can do it is if I turn the firewall completely off. If I enable only the port dire

  • Photomerge panoramic won't open and gives "error 364" message

    I shot my first panoramic set this morning and tried to load into the panoramic photomerge feature on PSE 6.0, but when I select that, it says "internal error: 364" and will not do anything. It gives me the "send error report" option and essentially

  • Help on ABAP Proxy

    Hi All, We have an ABAP Proxy implemented for posting goods movement and it is calling BAPI function module to post good movement. We have got a requirement that if BAPI returns any error, this error message send back to SAP XI. data call proxy Legac