Multiple DB connection question.

I have a MDB that currently processes a message and updates a Oracle DB say Database A. Now we want that MDB to check some flags on a different Oracle database instance, say Database B before it updates the Database A.
Basically, the during the processing of a message the MDB has to access Database A, Database B and Database A again in that order. My question is whatever I am trying to do is reccommended? Since I need connection to Database A again after I do some woek with Database B, can I still keep that connection around or do I have to close that right away?
I am using wls 8.1.
Any suggestions?
Thanks
JB

<p>The short answer is that you can keep both connections around at the same time, without any issues. Just be careful with any cleanup where you close connections, and make sure that both get dealt with regardless of any exceptions that might occur.</p>
<p>But depending on the number of MDBs in your configured pool, it might be a more efficient use of database connections to create a smaller pool of stateless session beans to hold those database connections and expose utility methods for the queries (which could use prepared statements)</p>
Kevin Powe<br>
Senior Consultant
Message was edited by:
kevinpowe

Similar Messages

  • Multiple VPN connection question

    I want to connect two on-premise locations to azure.  The hardware in these locations only support static routing so per the documentation I can only connect on site to site tunnel to the vpn connection in azure.
    Im curious what my options are, can I add two vpn's in azure and make it all work that way?  Also if I wanted could I simply run a VM (windows rras, linux, etc) inside my VNET and make it a VPN server that can accept two tunnels?
    thanks

    Hi Chris,
    Please be advised that for a Multi-Site VPN, you need to have a VPN Device that is compatible with Dynamic Routing.
    You could refer the following link for details about Multi-Site VPN:
    http://msdn.microsoft.com/en-us/library/azure/dn690124.aspx
    And the following link for the list of Azure Compatible VPN Devices and the Routing Configurations they support:
    http://msdn.microsoft.com/en-us/library/azure/jj156075.aspx#bkmk_VPN_Devics
    Also, please be advised Microsoft Azure Virtual Machines do not support Remote Access and Routing Roles.
    You could refer the following link for details:
    http://support.microsoft.com/kb/2721672
    Regards,Malar.

  • Our home network has multiple devices connected by iCloud. Having problem with Calendar. On one iMac, all the events are duplicated. How can I correct that problem? Under the Calendar accounts, I had my Apple id listed and also just iCloud.

    Our home network has multiple devices connected by iCloud: 2 iMacs, 2 iPhone 4s, 1 MacPro Laptop, and 1 iPad 2.  When using Calendar, all the events were
    duplicated on my husbands iMac.  On his computer, under Calendar accounts, I had included iCloud and also my iCloud ID.  I thought that because I had two accounts listed that were connected to iCloud, that might be the cause of the duplication.  When I deleted ithe calendars from one of the accounts, it resulted
    in deleting all of the events on all of our network devices!
    I have since entered some new events into Calendar from my iMac and from my iPhone.  These appear correctly on all devices except my husband's iMac where they are again all duplicated.
    I have two questions: 1)  How can I eliminate the duplicated events on my husband's computer and 2) How do I retrieve the old wiped out Calendar events from
    Time Capsule.  I don't know how to find Calendar in the Time Capsule.  If I find the Calendar information in Time Capsule, how do I transfer it to my current Calendars?
    I was obtaining phone help from one of the Apple techs at Apple Support, but our call was disconnected part way through.  Didn't know how to reconnect with the tech.
    Thanks for any help.

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • Vexing Connection Questions!

    I recently secured my previously unsecured wireless network (WPA/WPA2). Previously, both routers (AEBS and AX) showed up in Airport Utility. When I implemented WPA/WPA2 (from within Airport Utility) on my Extreme, the AX disappeared from the window. Since then, I've been unable to get it working, even after trying to reset by unplugging.
    Other weird behavior: Last night and this morning wasn't able to connect to internet because of "connection timeout?" What is THAT about? Does this have anything to do with the DHCP Lease? Otherwise, I'm drawing a blank.
    Finally, in Airport Utility (the Internet section), I have questions about the Internet settings:
    Presently, I have Connection Sharing set at "Share a public IP address," but I've read that it should be set at "Distribute a range of IP addresses?" What is "Bridge Mode?"
    DHCP: Can it be left blank? It was previously set at 4 hours. Could this be reason for connection timeout?
    Finally NAT: Should "NAT Port Mapping Protocol" be checked (it is) as well as "Enable default host at?" Any advantage to having both of these checked?
    Message was edited by: WildBill

    When I implemented WPA/WPA2 (from within Airport Utility) on my Extreme, the AX disappeared from the window.
    The AX disappeared because it wasn't using encryption at that point and couldn't connect.
    The proper sequence is to configure the remote AX to use wireless encryption first. It will temporarily disappear. Then configure the AEBS to use encryption.
    Since then, I've been unable to get it working, even after trying to reset by unplugging.
    Unplugging the AX doesn't do a reset. Follow the steps in KB 108044, Resetting AirPort Express.
    Presently, I have Connection Sharing set at "Share a public IP address,"
    If you have multiple devices connecting to the AEBS (and the Internet), that is the setting you want.
    ...but I've read that it should be set at "Distribute a range of IP addresses?"
    No. That setting is only for use in the situation where your ISP gives you a pool of public IP addresses.
    What is "Bridge Mode?"
    The AEBS acts as a simple pass through. If you only have a single device connecting to the Internet and you want that device connected to the Internet this setting may be useful. It is also useful if your configuration has a router between the Internet and the AEBS.
    Should "NAT Port Mapping Protocol" be checked (it is)...
    Most people won't notice if this is checked or not.
    ...as well as "Enable default host at?"
    That setting allows you to provide a server which will be directly accessible from the Internet. Most people do not use this feature.

  • Multiple db connections for one report

    Hi all,
    I am using Oracle Reports 10g R2. Could someone tell me if Oracle Reports supports multiple database connections for one rdf file, like this (using servlet)
    http://your_web_server:port_num/reports/rwservlet?server=server_name&report=myreport.rdf& userid1=username/password@my_db1&userid2=username/password@my_db2 &desformat=pdf&destype=cache
    I am asking this question because my report needs data from two separate Oracle databases.
    Edited by: user12239004 on Apr 27, 2010 2:14 AM

    No, you can only have one login.
    However, this is simple to resolve by creating a database link in one database to the other database.

  • How to provide access to multiple users connected to a Dumb switch? (multi-auth/multi-domain)

    Good morning everybody,
    I am writing on behalf of not being able to implement a desired outcome in our company network. In fact the situation is as follows:
    What I want to do is to be able to authenticate users (802.1x authentication) in our company radius server and authorize them access by having a dynamic VLAN assignment in a multi-user environment on one and the same port of a Cisco 2960 switch. So far, the authentication and authorization has been working completely smoothly (there are no problems with itself). The concept involves the configuration of both DATA and VOICE VLANs as I there is also phone authentication implemented. In order to simulate this environment I introduce a Dumb switch connected to my Cisco 2960 Catalyst.
    What I have successfully managed to get to work so far is this:
    1) On one switch port I have tried the “authentication host-mode multi-domain” and it worked perfectly for a PC behind a telephone, or with one PC connected to a the dumb switch + the telephone connected to another port of the dumb switch. Logically it is the same situation as there is a separation in two domains – DATA and VOICE. Bellow is an output from show authentication sessions for this scenario.
    Interface  MAC Address     Method   Domain   Status         Session ID          
    Fa0/23     0021.9b62.b79b  dot1x    DATA     Authz Success  C0A8FF69000000F3008E (user1)
    Fa0/23     0015.655c.b912  dot1x    VOICE    Authz Success  C0A8FF69000000F9009F (phone)
    2) On the other hand, when I try the same scenario with the “authentication host-mode multi-auth”, the switch still separates the traffic in two domains and is able to authenticate all users, AS LONG AS they are in the same VLAN.
    show authentication sessions:
    Interface  MAC Address     Method   Domain   Status         Session ID          
    Fa0/23     0021.9b62.b79b  dot1x    DATA     Authz Success  C0A8FF69000000F3008E (user1)
    Fa0/23     b888.e3eb.ebac   dot1x    DATA     Authz Success  C0A8FF69000000F8008C (user2)
    Fa0/23     0015.655c.b912  dot1x    VOICE    Authz Success  C0A8FF69000000F9009F (phone)
    However, I cannot succeed authentication of many users from DIFFERENT VLANs, neither in multi-auth nor in multi-domain modes.
    What I want to get is an output like this:
    Interface  MAC Address     Method   Domain   Status         Session ID          
    Fa0/23     0021.9b62.b79b  dot1x    DATA     Authz Success  C0A8FF69000000F3008E (user1)
    Fa0/23     b888.e3eb.ebac dot1x    DATA     Authz Success  C0A8FF69000000F8008C (user2)
    Fa0/23     0015.655c.b912  dot1x    VOICE    Authz Success  C0A8FF69000000F9009F (phone)
    I want the switch to authenticate the users anytime they connect to itself and for them to have an instant access to the network. (I tell this because I tried scenario 1) with multi-domain mode and authentication violation replace, and it worked but, two users never had access to the “Internet” simultaneously!!!
    The configuration of the interface connected to the Dumb switch is as follows.
    interface FastEthernet0/x                                                      
     description Connection to DUMBswitch                                            
     switchport mode access                                                         
     switchport voice vlan XXX                                                      
     switchport port-security maximum 10                                            
     switchport port-security                                                       
     switchport port-security violation protect                                     
     authentication host-mode multi-auth                                            
     authentication priority dot1x                                                  
     authentication port-control auto                                               
     authentication timer reauthenticate 4000                                       
     authentication violation replace                                               
     dot1x pae authenticator                                                        
     dot1x timeout tx-period 10                                                     
     spanning-tree portfast                                                         
    The way I see it is explained in the following steps:
    - PC1 connects to the Dumb switch. This causes the Cisco switch to authenticate user1. This creates an auth. session with its MAC address linked to a domain DATA.
    - When PC2 connects to the Dumb switch, this causes the violation replace which replaces the recent authenticated MAC address with the MAC of PC2. I would like it once authenticated to appear in the authentication sessions with a link to a new DATA domain linked to the VLAN assigned from the RADIUS server.
    Is this possible? I think (in theory) this is the only way to provide authenticated access to multiple users connecting through Dumb switch to the network.
    Has anybody ever succeeded in such a configuration example and if yes, I would be love to get some help in doing so?
    Thank you
    Stoimen Hristov

    Hi Stoimen,
    I have done a setup similar to yours with the only exception being VLAN assignment. When I used dACLs only, it makes things somewhat easier as the VLAN no longer matters. Remember that the switchport is in access mode and will only allow a single VLAN across it (with the exception of the voice VLAN). I think that is the real cause of your problem.
    From what I can see, you have 2 options available to you:
    1) Use dACLs instead of VLAN assignment. This means that an access list will be downloaded from the radius server straight to the authenticated user's session. I have tested this and it works perfectly. Just Google Cisco IBNS quick reference guide and look for the section that deals with Low Impact mode.
    2) Get rid of the dumb switches and use managed switches throughout your network. Dumb switches will always be a point of weakness in your network because they have no intelligence to do advanced security features like port security, 802.1x, DHCP snooping, etc.
    Hopefully someone else will chime in with another option.
    Xavier

  • Multiple DataBase Connection in a Single Form

    hi all
    Is it Possible to have Multiple Database Connection With a Single Form
    Block a : Retriving data from a database Service a/Schema A.
    Block b : Retriving data from a Remote Database Service b / Schema B.
    If yes how to do this.
    regards
    jai
    email:[email protected]

    Sure you can access a database this way,
    but can you base a block on this database connect? No you can't.
    Frank

  • What could be causing my multiple response survey question to show a non-response in LMS report?

    I have a 10 question survey that has been running fine and providing accurate responses in reports generated from my LMS. I made a property change to a multiple response type question that is now causing the reports to show a date/time (2003-01-01  18:00:00) response instead of the actual multiple responses the user made. The change I made to the question was to change the "Numbers property from" [ a), b), c) ] to [ 1), 2), 3) ]. This property change did not affect the reported responses for the single response questions, only the multi-response. This problem occured Using Captivate 4. I then tried using the same properties in Captivate 5.5 thinking it was a bug in CP4, but got the same results. Has anyone else run into this issue? I'm going to bring this to the attention of my LMS provider, but want to make sure CP is clean first.
    Thanks,
    Dave

    First things first. I am not an LMS expert, so this is not about troubleshooting.
    However, to ensure that your course works fine on a SCORM-compliant LMS, you can upload it to cloud.scorm.com and test it out. If the course works fine there, rest assured that it will work fine on any SCORM-compliant LMS. If your LMS team comes back with an issue after this, you can counter them with this evidence that the problem is with the LMS and not your course.
    Sreekanth

  • Problem about financial reporting studio(assign multiple db connection)

    Hi,
    I need to assign multiple database connections to a grid in Oracle Hyperion Financial Reporting Studio
    To do this, I performed the following steps:
    - Open a report.
    - In a grid, select one column for which I want to change the database connection.
    - In the Column Properties sheet, click the Select Database Connection button, .
    - In the Select a Database Connection dialog box, select a database connection from the Database Connection drop-down list, then Click OK.
    - In the Map Dimensions Between... dialog box, map dimensions between the default database connection and the selected database connection. I do this by selecting a dimension from the pull-down list in the right column for each dimension in the left column.
    - Optional: Select an alias table for the new database connection.
    - Click OK.
    But after last step I have received next error:
    *; nested exception is:*
    java.lang.NullPointerException
    Can someone explain the source of this error?
    And help me please solve this problem because I didn’t receive figures in that column where I changed database connection.
    Thank you in advance!

    I'm sure that both DB connections has the same dimension hierarchy. I can open the repot, but in it I don't see figures in that column where I've changed database connection...

  • Does Airport Express support multiple ethernet connections via a switch?

    If I use the following configuration, with the Airport Express extending my network, will it handle multiple devices connected via a switch?
    Modem---Airport Extreme- - -802.11n- - -Airport Express---Switch---multiple devices (eg. network printer and iMac).
    Or do I need to use a second Airport Extreme instead?

    It works for me—even when the AirPort Express device is configured to extend the wireless network created by the AirPort Extreme router.

  • Multiple IDLE connections

    Hi,
    I have two IDLE enabled IMAP accounts and I'm trying to work out if everything is working properly as it doesn't feel like it is.
    When I check netstat it shows multiple established connections for each account which seems to many for it to be right.
    Any thoughts on what to check? Server is showing two connections which would be right.
    Thanks,
    Adam

    If you must have a 1-1 app user/connection to database user/connection, then using a DatabaseSession would probably be the easiest solution. The means that each user would create and connect to their own DatabaseSession when they login to the app. You could still share the same TopLink project instance to reduce some of the connecting/initialization overhead, but there would be no way to pool connections. Using a DatabaseSession would not allow for any shared caching across users.
    Do you need to be connected as the user for reading, or just for writing to the database? If you can use a shared user/connection for reading, then you could use a ServerSession and have a shared cache. Define the shared user in the ServerSession, and when each user connects acquire a ClientSession through the acquireClientSession(DatabaseLogin) API, which allows you to specify the user/password to connect as for writing.
    In TopLink 10.1.3 you may also wish to investigate the VPD and exclusive client connection support. This allows for some of your data to be read through a user/VPD secure connection, and other shared data to still be cached. It also allows for the user/VPD to be switched on a pooled connection.

  • Multiple WLAN connections

    Does anyone know of a way to get my PODCAST and Email applications to use multiple WLAN connections?
    I spend most of my day in one of two places, each with a different WLAN, and I'd the phone to have the sense to change WLAN connection as they become available.
    Thanks for your time.

    Depends, on what your phone is.
    If you're using an N97 or a 5800, or anything running on s60v5 for that matter, Go to Menu>Settings>Connectivity>Wireless LAN>Options>Settings>Show WLAN availability. Then you can also set how often it will set to scan for WLAN connections. This would allow the phone to scan for WLAN hotspots around you immediately. Be warned however that this will drain your battery faster.
    On an s60v3 phone, I am not very familiar but from what I know its in Menu>Tools>Connectivity>Wireless LAN>Options>Settings>Show WLAn availability.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • Multiple AWS connections

    Hi all,
    Can MCAK handle multiple AWS connections in current version?
    If not, if there is a plan let me know.
    My customer would like to use multiple AWS regions (e.g. US-East and Tokyo) because of BCP/DR.
    thanks,
    Jun Kojima         

    Yes, Multi-Cloud is designed to support multiple connections across the same or multiple platforms. You can even have multiple connections to the same AWS region using different accounts to facilitate chargeback allocation. You also have the option to specify and availability zone.
    PS. A new version of the Multi-Cloud kit will be available late February along with CIAC Enterprise Edition 3.1.1 offering full future upgradeability. For AWS, it will also support elastic IP and the management and distribution of keypairs.The current MCAK for Starter Edition is recommended for proof of concept only at this point.

  • Simulate Multiple users connecting to same session

    Hi All,
    Is there anyway we can simulate multiple users connecting to the same session in oracle using PL/SQL.
    Thanks,
    MK.

    As per the architects in our company, lots of users connect to the same session and access the database.Exactly what does this mean? A single session can service one user at a time. I would wager that the architects are envisioning (or describing) a connection pooling setup where the middle tier server maintains a relatively small number of connections to the database (each with its own session most likely) and users operate by getting a connection from the pool, making a request, and returning the connection back to the pool. At any given point, only one user can be using a connection.
    If that's the case, you would simulate this by simply executing code in a loop in PL/SQL.
    Of course, if this is the case, each connection in the connection pool would its own copy of the collection and so each connection would get its own list of order numbers. You'd have to develop some way to ensure that each session populated its collection with a different set of order numbers.
    Justin

  • Multiple http connection

    is it possible for me to make multiple http connection to server?
    I'm trying to send data for about 40kb, i send the data into 80 parts ( a part about 500 bytes)..
    is it possible to make about 80 thread in the same time??
    I do this way to reduce time consumption...
    Help me please..

    No, in this case, more threads will most likely slow down the data transfer:
    - more threads means more TCP connections, means more overhead
    - CPU scheduling will make it slower than using one thread, they can't work symultanious anyway
    - One thread is probably already capable of fully filling the network bandwidth with data

Maybe you are looking for