Connect to two different connection pool

 

You should post to jdbc group.
Please post more detail about the exception.
"ahmad" <[email protected]> wrote in message
news:40d83847$1@mktnews1...
Hi, everybody,
I have two entity bean, associated with two different datasource andconnection pool, how can I look up these two entity bean, and get them from
one session bean.
>
now, when I looking up and get them, an exception throws :
Illegal attemp to connect two another connection pool.
regards
Ahmad R. Seddighi

Similar Messages

  • How to use more than one connection pool to 2 different databases ??? (Weblogic 5.1)

    Hello,
    In my application, I must use two different databases to retrieve
    informations...
    My application use EJB so I created two pool of connection named pool1 and
    pool2...
    But when I yet used the pool1 to connect to first database and I try to use
    the pool2 (to connect to the second database), an SQLException occurs :
    "java.sql.SQLException: Connection has already been created in this tx
    context for pool named <first pool's name>. Illegal attempt to create
    connection from another pool: <second pool's name>"
    I have found the answer in www.bea.com
    http://e-docs.bea.com/wls/docs61/faq/JTA.html#738373
    Anybody can help me and give me the more easy,quickly and the more efficient
    way to use two database with two different connection pool..
    Thanks..
    Dephi

    Hi
    You need to configure TxDataSource with XA connection pool.
    More information can be found here:
    http://e-docs.bea.com/wls/docs61/jta/thirdpartytx.html
    Regards,
    Slava Imeshev
    [email protected]
    "Philippe Da Cunha" <pdacunha@@webraska.com> wrote in message
    news:3bfcd6ee$[email protected]..
    Hello,
    In my application, I must use two different databases to retrieve
    informations...
    My application use EJB so I created two pool of connection named pool1 and
    pool2...
    But when I yet used the pool1 to connect to first database and I try touse
    the pool2 (to connect to the second database), an SQLException occurs :
    "java.sql.SQLException: Connection has already been created in this tx
    context for pool named <first pool's name>. Illegal attempt to create
    connection from another pool: <second pool's name>"
    I have found the answer in www.bea.com
    http://e-docs.bea.com/wls/docs61/faq/JTA.html#738373
    Anybody can help me and give me the more easy,quickly and the moreefficient
    way to use two database with two different connection pool..
    Thanks..
    Dephi

  • Two Connection Pools In One Database With Two Phisical Schema

    I have a database with 2 physical schemas. Each physical schema has a different username and password. So i must create a second connection pool. But i have the problem that physical schemas don't understand which connection pool to use. How can i coincide each physical schema to its connection pool automatically.
    Regards

    You need two Physical databases each with its own Connection Pool, within that database will be a single Physical Schema.
    Or you could have a single Database/Connection Pool if it has read access to both schemas.

  • Do I really need two connection pools when using two durable subscriptions?

    I have a Spring daemon which takes messages from two different topics and stores them in a database.
    What irritates me is that I can't get it to work with a single connection pool. I get a message that I can't create durable subscriptions without a unique client id on the connection. It's not enough that the client id be set on the listener container, I have to set it on the underlying ConnectionFactory. I though this was some kind of glitch with openMQ but activeMQ gives me exactly the same behaviour.
    This is the important part of the config
        <bean id="realCon" class="org.apache.activemq.ActiveMQConnectionFactory" p:brokerURL="discovery:(multicast://default?group=live)"
        p:clientID="DB_RECORD_CLIENT"/>
        <bean id="realCon2" class="org.apache.activemq.ActiveMQConnectionFactory" p:brokerURL="discovery:(multicast://default?group=live)"
        p:clientID="DB_LOG_CLIENT"/>
        <bean id="jmsConnectionFactory" class="org.springframework.jms.connection.CachingConnectionFactory"
        p:targetConnectionFactory-ref="realCon"/>
        <bean id="jmsConnectionFactory2" class="org.springframework.jms.connection.CachingConnectionFactory"
        p:targetConnectionFactory-ref="realCon2"/>
        <bean id="ocsMessageListener" class="com.cc.mer.ordercatcher.MessageReceived"/>
        <bean id="logMessageListener" class="com.cc.mer.ordercatcher.LogMessageReceived"/>
        <jms:listener-container
            connection-factory="jmsConnectionFactory"
            destination-type="durableTopic"
            transaction-manager="transactionManager"
            acknowledge="transacted"
            >
            <jms:listener ref="ocsMessageListener" destination="OCS_RELAYED"
                          subscription="ocs.db.recording" />
        </jms:listener-container>
        <jms:listener-container
            connection-factory="jmsConnectionFactory2"
            destination-type="durableTopic"
            transaction-manager="transactionManager"
            acknowledge="transacted"
            >
            <jms:listener ref="logMessageListener" destination="OCS_LOG"
                          subscription="ocs.log.recording" />
        </jms:listener-container>

    Thank you all for your replies.
    Yesterday, I went back to BestBuy and returned the Gigabit Ethernet Switch and exchanged it for a Belkin Share Max N300 router.  I chose this one because I want to use the router in WIRED mode and this had a 10/100/1000Mbps Gigabit Ethernet capability.  Most other routers that I looked at only had 10/100Mbps.  I also liked that it had two USB ports.
    I had to call Belkin tech support because the installer from the included CD would not install the software.  Nor would the installer that I downloaded from their web site.  I ended up actually having to be taken to the IP address' web site and from there I was able to configure everything.
    Although it took me a few hours to get all my other wireless devices onto my wireless network (I have a couple of Airport Express(es) for running "Airplay," and a wifi dongle on my TV), things now seem to be working fine. 

  • Two Connections Pools in a Single Transaction

    Hi,
    Inside my Custom Control I have to hit the databases of two different systems and do my validations. The two different DBs have two corresponding Connection pools.
    But when I run my Custom Control (flow is jsp->jpf->custom control->2 db controls), weblogic says that two different pools cannot be used inside the same transaction.
    Is there a way to work around this issue as I HAVE to call the two systems for my validations.

    Are you using a TXDatasource to get your dbms connection??
              Are both ejb's updating the same dbms same connection pool.
              If container managed ejb 2 would need to call setrollback only if you
              want it to roll back and also setrollback on ejb1.
              So something like
              ejb1 - makes dbms calls all ok
              calls ejb2 ejb2 has error
              call setrollback only in ejb2
              throw exception
              If both are on the same tx then both should rollback. I suspect you
              are not using a tx datasource.
              usha wrote:
              > Hi,
              > I have one ejb(ejb no.1) calling another ejb (ejb no.2) and few other methods
              > having database updation.
              > If any of the method gives an exception then the database changes done by ejb
              > no.2 does not roll back. Why is this happening ..?
              > This is a container managed transaction and have 'Required' transaction isolatin
              > level. I don't have any setrollbackonly as the transaction is started at ejb no.1
              > level.
              >
              > Can anyone answer my question.
              > Can anybody help me about putting
              

  • Two Schema folder, single connection pool

    Hi
    I have two schema folders in physical layer of obiee 10g. And one connection pool.
    My scenario is the schema have different login ids and in connection pool I can give only one login information.
    How can we have two schema folders under one connection pool. Please suggest.
    Thanks.

    I dont think fully qualified names will not work here please correct if I am wrong. Rather shared logon guess should work but did not in my case.
    The fully qualified names are based on the physical object names in the repository. If you are querying the same tables from which the physical layer metadata was imported, you can safely check the option. If you have migrated your repository from one physical database to another physical database that has different database and schema names, the fully qualified names would be invalid in the newly migrated database. In this case, if you do not select this option, the queries will succeed against the new database objects.
    For some data sources, fully qualified names might be safer because they guarantee that the queries are directed to the desired tables in the desired database. For example, if the RDBMS supports a master database concept, a query against a table named foo first looks for that table in the master database, and then looks for it in the specified database. If the table named foo exists in the master database, that table is queried, not the table named foo in the specified database.

  • I am trying to connect a 24" cinema display with mini display port cable to a 24" imac with a displayport - is there a cable for this as these two connections are two different sizes

    I am trying to connect a 24" cinema display with mini display port cable to a 24" imac with a displayport - is there a cable for this as these two connections are two different sizes

    Hi Gilly,
    I have no proof, but I think it will not work with an adapter, only Mini Display Port or Thunderbolt.

  • How to add two different database connections on Model

    Hi,
    In my application, I need to create View Objects on different databases. So I need to add two different database connections on the Model.
    But it seems like Model can be connected to only one database. I tried adding another project to add the second db connection. But after I created a read-only View Object in the second project, it didn't generate corresponding data control in the Data Controls panel.
    Could anyone help me on this?
    Thanks!

    Do you mean adding the second project folder in ViewController->Project Properties->Libraries and Classpath?Yes, either that or: ViewController -> Project Properties -> Dependencies
    And I didn't see the first Model project in the ViewController classpath. Otherwise it wouldn't work. The first model project IS in 'classpath'. Here's how:
    ViewController -> Project Properties -> Dependencies
    I tried this and recreated the View Object. Still didn't generate the datacontrol. No idea why you had to recreate the VO.
    Is your VO in an application module inside the SECOND project?
    After you are sure that everything is in the ViewController's classpath, just try restarting JDeveloper.
    This is very basic. has to work.

  • How to establish connection between two different IP Range

    Hi All,
    Currently in my office  there are two different ip range that we are using one for the Wi-FI(192.168.1.X) & 2nd  for local machine & servers 192.168.2.x series ip.
    In current situation if any Wi-Fi user(Laptop User) wants to communicate with local machine or server then he has to switch from Wi-Fi to Lan.
    So is there any way to provide communication between Wi-Fi & local network.
    if this happen then there will be no need to switch from Wi-Fi to Lan, Wi-Fi user who has ip range 192.168.1.x is easily communicate with local machine & server(192.168.2.x).  
    Shailendra Vishwakarma

    Thanx for the reply..
    In my office i am using Microsoft Thread management Gateway(Software Firewall).
    Can i set Security like as below,
    Users can connect Wi-fi Network but they would not able to access  internet but  they should be able to access for local network & for the internet they should go via Microsoft Thread management Gateway.
    Thanks,
    Shailendra Vishwakarma

  • I have two different apple id's, one on my computer and one on my phone. i connected my phone to sync music and i lost most of my music. i realised that the music i lost is from the apple id on my mac. how do i undo this mess? help anyone?

    i have two different apple id's, one on my computer and one on my phone. i connected my phone to sync music and i lost most of my music. i realised that the music i lost is from the apple id on my mac. how do i undo this mess? help anyone?

    The iphone will mirror the selected content of your computer.
    Make sure everything is on your computer.  Select what you want on your iphone, sync

  • I have an airport express and want to know how to set up two different wireless networks. One with 5GHZ and one with 2.4GHZ so different devices can connect to either.

    I have an airport express and want to know how to set up two different wireless networks. One with 5GHZ and one with 2.4GHZ so different devices can connect to either. I have an iphone 4 that will not connect to 5ghz.
    thank you!

    Your AirPort Express is already providing two separate 2.4 GHz and 5 GHz bands, but each band is using the same wireless network name.
    This is the default setup for the AirPort Express, which is recommended for most users. The theory here is that devices will automatically connect to the best quality signal based on their capabilities and distance in relation to the AirPort Express.
    It is possible to assign a different name to the 5 GHz band, and then "point" devices at that network to connect. Some users swear by this option.....(I am not one of them).... but you might want to give it a try to see how it works for you.
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click on the AirPort Express
    Click Edit in the smaller window that appears
    Click the Wireless tab at the top of the next window
    Click Wireless Options near the bottom of the next window
    Enter a check mark next to 5 GHz Name.....which will automatically add "5 GHz" to the network name....so you can identify it
    Click Save, then click Update and wait a full minute for the Express to restart
    Now you will need to "point" your 5 GHz capable devices at the 5 GHz network name.  2.4 GHz devices will connect to your "other" network name.

  • Can two different SRM clients systems connect to one R/3 Back-end system?

    Hello,
    Trying to developing SRM Co-Exist/Global strategy, based on the following scenario:
    1.  Two different SRM client systems, each at DIFFERENT SRM Version/Release Level.  SRM system "A" runs in Stand-Alone and Extend Classic Scenario mode.  SRM system "B" runs in Classic Scenario mode
    2.  Two different R/3 back-end systems, each with SAME R/3 4.7 Version/Release Level.
    Question 1:  Can the two (2) different SRM client systems be connected to one (1) of the R/3 back-end systems?
    Question 2:  Are there any Basis Plug-In (PI_BASIS) issues/difficulties to consider from either the SRM client or R/3 back-end side?
    Question 3:  Does each SRM client need it own unique transaction document type(s) and number range(s) definitions?
    Question 4:  Are there any other difficulties, for example, with RFC and Partner Profile related definitions and what are the steps to address/resolve difficulties?
    Please advise and thanks in advance for your feedback!
    Regards,
    Ed
    Edited by: Ed Shigo on Mar 16, 2009 6:40 AM

    Question 1: Can the two (2) different SRM client systems be connected to one (1) of the R/3 back-end systems?
    They can be connected
    Question 2: Are there any Basis Plug-In (PI_BASIS) issues/difficulties to consider from either the SRM client or R/3 back-end side?
    Make sure that you have unique consumer entries for Middleware for Material replication, RFCs etc
    Question 3: Does each SRM client need it own unique transaction document type(s) and number range(s) definitions?
    Yes you need to have them.
    Question 4: Are there any other difficulties, for example, with RFC and Partner Profile related definitions and what are the steps to address/resolve difficulties?
    Don't see any difficulties as long as the a structured approach is followed.

  • JDBC connection to two different machines from the same program

    I want to use JDBC to connect to two different databases that are on two different MySQL installations on two different machines.
    One of the installations is MySQL 4.1.12 and the other is 4.1.14-nt
    For some reason, all my statements seem to be going only to one machine, even though I am very clearly set it up to go to two different machines.
    Does anyone know whether connecting to two different installations from one program presents any unusual problems?
    Thanks.

    Unless there is some horrible defect in the MySQL JDBC driver (which I doubt!), there should be no problem and like the other poster says, please post snippits of your code so we can see what your doing...

  • TS1398 I am unable to connect to two different wifi at different locations having same name but different passwords

    I am unable to connect to two different wi if at different locations having same user name but different password one is at home other at work

    I was able to do a full reset on the router (pushing the tiny button near the power input). Then ran through the setup process and it started working on my device.

  • If have two different Mac mini at two different locations. Both are running Lion. Connecting my iPhone 4G

    Hello,
    I have two different Mac Mini at two different locations. Both systems are running Lion.
    One of the Mac Mini systems connected to my iphone G4 as well as Ipad 64-Wifi, work perfect to sunchronise. ( IO5 is present)
    I would like to run the changes i made with cloud to the other Mac mini system, but this doesn't work.
    Any one to help me?
    Tnx Hans

    Winston, CH.
    Tnx for the fast reply, but where do i find the setting for iCloud system preferences?

Maybe you are looking for

  • EAP-TLS & Unknown User Policy

    I setting up an WLC with the client using EAP-TLS (machine authentication only). We are using ACS 3.2 which is part of AD. The problem is that the ACS is being used to authorize users for Internet Access also. So if I enable the Unknown User Policy t

  • How do we know who apple people are on discussions?

    I'd like to know how we can recognise apple staff on the discussions, thanks for all your help.

  • How to move to next record of the databank file using custom code

    hi, can someone please tell me how to move to next or the previous record the Databank file. i found a funtion setcurrentdatabankrecord(), but i am not able to use it. thanks in advance...

  • Getting unauthorised error!!!!please help

    hi, i downloaded sun one web server 6.1.i have put my class files under WEB-INF folder.do we need to write web.xml file to run servlets.I have tried to run helloworld program.when i run ,i get a window (connect to local host).But if i type the userna

  • Can't get FT to work

    Wow a lot of people seem to have the same or similar problems and a lot of solutions are total chinese to me ! FT works fine on my small MacBook but refuses to work on the MBPro. Can't even acces the pref file (grayed out) The camera appears in the V