Can EntityBean have two Database connection?

assume:
There is two database wihich has AAA table, and AAA table has same
structure, so I want to use an EntityBean to use AAA table, then how can
I program for this?

Then how to tell the entity beans to choose which datasource to use during runtime?
Let say i have 2 users. Each user maintains their own session.
User A wants to access BMP AAA with datasource jdbc/dsA, but at the same time
user B would like to acess the same BMP AAA but with datasource jdbc/dsB.
Can BMP cater this? Thanks for your reply.

Similar Messages

  • Can i have two internet connections connected to two airport extremes separately without disturbing the home sharing option.

    can i have two internet connections connected to two airport extremes separately without disturbing the home sharing option. i want to have both the airport extremes to use a single imac for streaming music or video to my apple tv's at different places where one apple tv is in the range of one airport extreme.it's not a problem if both airport extremes have different wifi id's with separate internet.The imac which i use for streaming the music and videos is only in the range of only one airport extreme.is it possible if i can stream music or videos to my apple tv which is not in the range of same airport extreme which i use for imac but in the range of other airport extreme.
    Finally what i need is i want to use two internet networks as my highest possible internet bandwidth is about 1mbps.and i know that i cant mix both the networks and make it as 2mbps.

    Yes, that is possible. Please check out the following Apple Support article for details on how.

  • HT204053 Can I have two Iphones connected to one icloud account and if so, how do I change the icloud user name on the phone

    Can I have two Iphones connected to one icloud account and if so, how do I change the icloud user name on the phone

    Welcome to the Apple Community.
    Yes you can use one iCloud account between multiple devices.
    What do you mean 'change the iCloud user name'.

  • How can I combine two databases, from two computers, to have one combined database of messages?

    My old XP computer recently died and I had to build a new Windows 8.1 machine. While I was down I used a laptop as a temporary replacement. Now my new machine is running fine and receiving e-mail, but I now have two databases--one on the new machine and one on the laptop. Both are based on a recent backup, so they are lengthy--except that the new machine's database has a hole in it for the period I was on the laptop and the laptop's database also has gaps. How can I combine two databases into one that includes the messages from both machines?
    Thanks in advance,
    profsimonie

    Thanks for your reply. My profile folder did not contain any MBOX files. I found them in another folder on another drive. The Import-Export tools simply transferred each folder to the current one as a sub-folder. Then I had to use ctrl-a to select everything in the folder and move them manually to the current folder (such as inbox). Then I could use the other utility you mentioned to remove the duplicates. This had to be done, one folder at a time, to combine each folder. It worked, but I had about thirty-five folders to deal with. The whole process took most of two days to complete. I wish there was a simple way to blend everything together in one action, but I could not find an add-on that would do this.
    Frank Simonie

  • TS1591 I just bought a second iPod touch (4th gen), but when I connect the second iPod to my computer it is not recognizing it. How can I have two iPod's set up????

    So I had an iPod touch and everything with it is fine. I just bought a second one for my daughter...exactly the same as my iPod. This second one was bought used, but was reset completely before I plugged it into my computer. My problem is... my iTunes does not recognize the second touch as a device! I can't get it to sync, so I can't get any music or anything onto the device. How can I have two iPod touches on my computer? Is there something special that I have to do to get my computer to recognize this second touch as a different device?? PLEASE HELP!!!  

    - If you are using the same USB port and the same cable and have iTunes version 10.7 or later on the computer there is something wrong with the iPod.
    - Does the second iPod work?
    - Does it charge?
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.

  • Can you have two iphones with separate iclouds on the same itunes account, can you have two iphones with separate iclouds on the same itunes account

    I have one itunes account with mulitple libraries for each device (one iphone, 4 ipods).  The one iphone is connected via the cloud.  everytime a new song or app is added to the account it is placed in all of the libraries.  I want to add another iphone to the acccount when I tried it replaced the contacts with the contacts on the iphone already on the account.  How do I prevent that from happening and can I have two iphones on the same account and use the cloud on both
    thanks

    iTunes will remember the settings for each device after you set them up for the first time.
    How to use multiple iPods, iPads, or iPhones with one computer -> Method two

  • Currently I have two iPads connected to the same Apple ID and one connected to Game Center. I want to connect the second iPad to Game Center so that I do not lose my progress on apps like Clash of Clans.

    Currently I have two iPads connected to the same apple iPad. One is connected to game center(iPad air) one the other(iPad 2) is not connected to Game Center. How can I connect the iPad 2 Clash of Clan progress to game center when I already have another clash from iPad air connected?

    You cannot transfer content between two accounts. The sooner you make the conversion, the better. Just pick the new one and start using it(buying music etc).
    *A lot of people open new accounts when their email changes or they have a new email. You can just access your apple id account and change the primary email that you use to log in along with other details.

  • Can I have two address books on one computer

    Hi,
    I have my standard address book I use and love. I am an artist and forever having to make slide labels. I have used many programs and databases to do this task. To my surprise address book would accomplish this amazing well. I just don't want to combine my art label information with my address stuff? So can I have two address files on one mac?
    cc

    CC,
    you can add a new user account on your Mac (open system preferences / accounts) and start fresh there with an empty AddressBook.
    If you want to fill this with a part of your original AB, select those and export as vCards. Drop this export file in your shared folder so you can access that from the new user account. Open AB ther and import the vCards

  • Can I have two LANs with the same IP route to each other

    Hi there,
    I have a customer who has a televantage voip network on a private 192.68.0.0/24 network but has two sites connected via a wireless tower that wants to enable QOS over between the two sites by using a 2621XM router at each end. I've enabled QOS on both routers for voice and video but haven't deployed this yet since I'm not sure if I need to change one of the sites networks to a different network number since I'll have the routes in place with a 192.168.1.0 on the WAN side. If both remote networks stay with the same number scheme of 192.168.0.0/24 will they be able to find each other when requesting where a remote 192.168.0.0 host is or do I need to change of the offices networks to a 192.168.2.0 network to make this work? Sounds kind of basic but before deploying I wanted to get some input...thanks.

    Routers cannot route unless the address blocks for each interface are different.
    If you have two sites connected by any kind of link, and you'll use one site as a gateay to the Internet, then you'll need at least four different addresses/ blocks:
    The 'b' site LAN, i.e., fa/0/0:192.168.0.0/24
    The 'b' site WAN (interconnecting link), i.e., fa0/1: 192.168.1.1/30
    The 'a' site WAN (interconnecting link), i.e., fa0/1:192.168.1.2/30
    The 'a' side LAN, i.e., fa0/0:192.168.2.0/24
    (assumes that your wireless link is acting as a bridge or non-routing link) - the fa0/1 device connects to the wireless devices).
    If you use the same router on the 'a' side for the interconnecting link for both the 'a' LAN and the Internet gateway, then the third interface would be your Internet WAN address.
    The 'b' side LAN interface is your 'b' side default gateway for you clients
    The 'a' side LAN interface is the 'a' side default gateway for your clients
    Set a default gateway on the 'a' router to the ISPs Default gateway / next hop address.
    If you're using a third router for an Internet gateway, then the LAN interface address becomes the default gateway for the clients on that LAN, and you'll need to set up a static route pointing to the other LAN in the routers that connect the two LANs..
    A routing protocol may be useful but, depending on your actual bandwidth available, it's probably better to just set up static routes (no routing protocol bandwidth utilization).
    The /30 for the WAN link gives some economy of address usage, but it may also secure the link better, since there are no additional addresses for the intruder to use; they'd have to spoof one of the two valid addresses (.1 & .2) as well as crack your encryption (and / or other security).
    There's an armload of other possible configurations / topologies / address schemes, I believe this one would be reasonably common.
    The bottom line is that a router can only route from one address block to another. In order to pass traffic between two segments with the same address block, you need a bridge / switch, or some other layer one/two device (like a wireless transceiver pair).
    Good Luck
    Scott

  • Can I have two apple TV boxes in the same home / wifi area, ar there any issues i should be aware of?

    can I have two apple TV boxes in the same home / wifi area, are there any issues i should be aware of?

    I was in a hotel a few month a ago.  The hotel also had a portal page you have to sign in.  Of course the ATV didn't a web browser and could not sign in to the portal and connect to the Internet, so your iTunes didn't work.  (But your ATV should be connected to the router at that point already, just the portal won't open the port to pass through your ATV's traffic)
    So what I did was to use AirVideo app on my iPad and AirVideo server on my Mac. Selected the movie on  my iPad using the AirVideo app and then selected my AirPlay device on my iPad to AppleTV.  Because this setup didn't require iTunes, so there was no need for a live Internet connection, and just a connection to the hotel router was enough.  It was very easy.
    (Of course, you can subsititude the iPad with an iPhone here too)

  • Can i use single database connection in a hole java application?

    can i use single database connection in a hole java application?.I have so many forms to use database connection.

    Theoretically you can. Not only theoretically. I've seen lots of application which only uses one database connection (they were using, oracle or mysql)
    The first reply given here assumed that the answer to
    your question depends only on the design of your
    application. That is not true.Yes it's true. Nothing in the original questions says that you aren't allowed to open or close the single connection that you have. It's looks more like the OP is interested in sharing a connection (i.e having a singleton or a connection pool with only one connection)
    It does also depend on the behaviour of the database
    in the background.
    Most databases have a time out for connections that
    are idle Not a problem. Most implementations of connection pools and applications which keeps a connection open have a timer which calls e.g. select * from dual (if you are using oracle) when the connection has been idle for X minutes.
    (some, like db2 on z/OS, even cancel
    connections, that are not idle, if they are open a
    certain amount of time or have reached a given limit
    of cpu seconds.)You would also have that problem if you had a connection pool with several connections.
    In essence: If you have no control over the time
    your application runs (and therefore your connection
    is open) or over type or the configuration of the
    database you are accessing, you can't do it.See above.
    The closest thing to what you want would be using
    PooledConnections, iif those are supported for the
    database you want to access.Not true.
    Kaj

  • Can we have two R/3 Source Systems(Dev & Test) in BW Development....?

    Hi All,
    Till now we have only BW Development box..
    Our Landscape for R/3 side is R/3 Development, Testing and Production.....
    Already we have connected R/3 Development with BW Development... It is working fine as now... We have finished our task at Development...
    My doubt is <i><b>Can we Configure R/3 Testing to BW Development</b></i>....eventhough R/3 Development is already configured with BW Dev....
    <b>Can we have two R/3 Source Systems(Dev & Test) in BW Development....?</b>
    Please help me out in this issue....
    Your help will be appriciated...
    Regards,
    Kiran Telkar

    Hi Kiran,
    You can create second source system which will point to SAP R/3 Quality .
    If you have transported all datasource activation requests to QA environment then all datasources are available in R3QA as well.
    After creating source system , replicate datasources.
    Only thing you need to do is to replicate efforts of assigning source system (R3QA)-> creating transfer rule -> Create info package and load data.
    Hope that helps.
    Regards
    Mr Kapadia
    Assigning points is the way to say thanks in SDN.

  • How can I have two differents versions of provider working in a Server

    Hi... I'm a ASP Classic developer. I'm working with Oracle 10g and I'm using the Oracle Provider 10.1 but now I need to change of version to 10.2 Release. So I install the 10.2 Release Version in same host where I have de 10.1 version.
    For do the connection to Oracle 10g DB I do something like this:
    Connection.asp -->
    <%
         Set Cn = Server.CreateObject("ADODB.Connection")
         Cn.Open "Provider=OraOleDB.Oracle; Data Source=DBTest; User ID=Test; Password=Test;"
    %>
    I have to Tnsnames.ora files (one for 10.1 and other for 10.2 Release). I this 2 files I descrive de Oracle Service Named DBTest like this:
    C:\oracle\product\10.1.0\Client_1\network\ADMIN\tnsnames.ora
    -->
    DBTEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DBtest)
    C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora
    -->
    DBTEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DBtest)
    However when I try to connect to DB I got the next exception:
    OraOLEDB (0x80004005)
    ORA-12154: TNS:could not resolve the connect identifier specified
    Two cuestion:
    --> Can I have two versions or Oracle Provider working in a server???
    --> How can I specify to ASP page the Oracle Provider than must to use???
    Tks 4 help

    I'm not an ASP developer, but if you are able to set $ORACLE_HOME environment variable through ASP you can then switch providers..

  • I have lost password to my network- I have two macs connected to it but need to find the password to connect my ipad2

    I have two macs connected to my airport but have lost the password so I cannot connect my ipad2! How can I find the password or reset
    - does anyone know?

    Open Keychain Access on one of the Macs then select Passwords on the left.
    Type   base station   in the search field top right corner of that window.
    Then right or control click the base station keychain then click Get Info
    Select the Attributes tab.
    Click: Show password

  • How can I create a database connection to Cloudscape database in 9iJDeveloper?

    How can I create a database connection to Cloudscape database in
    9iJDeveloper?
    thanks.

    Hi,
    I assume you have a JDBC driver for Cloudscape.
    1. In the IDE System Navigator, expand the Connections Node.
    2. Right-click on the Database Connection and choose New
    Connection .. .
    3. Click pass the welcome screen.
    4. In Step 1, name your connection and choose "3rd party JDBC
    Driver"
    5. Follow the rest of the steps and provide username/password,
    class name and URL, test and you should be ready to go.
    Good luck.

Maybe you are looking for