Different weblogic JNDI Connections sharing the same dbms session

Hi,
we have setup JDBC Datasource on the weblogic server. Creating connection using JNDI lookup is sharing the same session across different connections, which is causing invalid data generation in global temp tables. The data in the global temp table is accessed accross db sessions.
I have created a test case, using JDBC connection, the global temp table data is not accessible across session (this is correct behavior).
where as using JNDI connection the data from the temp table is accessed across different connections. (This is not expected behavior)
I tried setting statement cache = 0, Remove Infected Connections Enabled = true / false but no use.
is there any other setup in the weblogic to avoid db session sharing across connections??
Thank you,
Ranga

I am using a single thread, This can be easily reproducible on any machines.
@ Sequence to follow
@ public static void main(String[] args) {
@ for (int i =0; i < 3; i++)
@ try{
@ conn = getJNDIConnection();
@ printSessionDetials();
@ insertValuesToTempTable();
@ QueryRecordsFromTempTable();
@ }finally
@ conn.close();
@ Test Results:
@ JNDI connection found: jdbc/xdo120DBDS
@ V$Session Details....
@ SessionId:299:serial#:909:Seq#:31:dbmsSessionId:012B038D0001
@ Number of Records:1
@ connection is closed.....
@ =====================================
@ JNDI connection found: jdbc/xdo120DBDS
@ V$Session Details....
@ SessionId:299:serial#:909:Seq#:38:dbmsSessionId:012B038D0001
@ Number of Records:2
@ connection is closed.....
@ =====================================
@ JNDI connection found: jdbc/xdo120DBDS
@ V$Session Details....
@ SessionId:299:serial#:909:Seq#:45:dbmsSessionId:012B038D0001
@ Number of Records:3
@ connection is closed.....
@ Process exited with exit code 0.

Similar Messages

  • How come my brother and i can't connect in the same game online using my WET54GS5?

    When i first got my WET54GS5 my brother and i could connect in the same online session using two ps2's that are both connected to the WET54GS5 which is linked up to my WRT54G V 5 router flawlessly. Now all of a sudden whenever we try to connect to the same game online the one that is already in that session gets disconnected. There have even been times where one got connected and was using the other persons settings (example: Jared and Justin log on to the same game at the same time, Jared can't connect, but Justin can however Justin is now playing as Jared's character.)We can connect to other games under the same setup just whenever we want to play in the same game we can't. It seldom works though but only like twice out of ten times. I'm wondering what the issue is here and if anyone has any suggestions on how to get us connected to the same game with no worries. And if your curious both playstation 2's are running star wars battlefront 2. Message Edited by JJbro1 on 06-17-2008 09:47 PM
    Message Edited by JJbro1 on 06-17-2008 09:48 PM

     Try to figure out or make sure QoS is enabled on both devices (referring to bridge and router) and set to AUTO mode or fair mode. Also ensure there is no manual settings on the PS2s for ip (this applies to most modern game systems as well)
     Udated gaming systems are designed to attempt taking full advantage of bandwidth available, by enabling QoS, or similar named technology depending on the brand of the network device you will prevent your gaming system from hogging all the network bandwidth and stomping out the other game system. They will be forced to equally share the bandwidth and eliminate this kind of situation. I sometimes need 7 game systems online at once and I ran in to this problem a lot,, QoS enabled and never had it again.

  • Howto block p2p traffic of clients connected to the same ssid on different wlc

    Hi all,
    I use two wlc 4400 (4.2.x version) with a mobility domain and one ssid, both wlc are connected to a cisco l2 switch infrastructure. On the wlc I use the p2p blocking action 'drop' (http://www.cisco.com/en/US/docs/wireless/controller/5.2/configuration/guide/c52wlan.html#wp1209597) to isolate the clients from each other. Does anybody know if only unicast traffic is blocked or also multicast and broadcast traffic like arp requests?
    Concerning blocking p2p traffic of clients connected to the same ssid but different controllers I found the following statement in the LAP FAQs (http://www.cisco.com/en/US/products/hw/wireless/ps430/products_qanda_item09186a00806a4da3.shtml):
    ===
    Q. In autonomous APs, Public Secure Packet Forwarding (PSPF) is used to avoid client devices associated to this AP from inadvertently sharing files with other client devices on the wireless network. Is there any equivalent feature in Lightweight APs?
    A. The feature or the mode that performs the similar function of PSPF in lightweight architecture is called peer-to-peer blocking mode. Peer-to-peer blocking mode is actually available with the controllers that manage the LAP. If this mode is disabled on the controller (which is the default setting), it allows the wireless clients to communicate with each other through the controller. If the mode is enabled, it blocks the communication between clients through the controller. It only works among the APs that have joined to the same controller. When enabled, this mode does not block wireless clients terminated on one controller from the ability to get to wireless clients terminated on a different controller, even in the same mobility group.
    ===
    Does anybody know what's the best practise to prevent this inter wlc client traffic? I already read about using acls on the wlc dynamic interfaces, or private vlans on the l2 switch vlans where the dynamic interfaces are connected to. Is it allowed to completely isolate the wlc from each other on these dynamic interfaces with acls or private vlans or do the wlc need to see each other on this interfaces (e.g. heart beat)?
    Many thanks in advance,
    Thorsten

    Hi Sasha,Thorsten
    The bug is Junked and I believe which is what you are running into with your tests:
    CSCtr60787    WLC P2P Blocking Set to Forward-UpStream Doesn't Work.
    Bugtoolkit : http://tools.cisco.com/Support/BugToolKit/action.do?hdnAction=searchBugs
    To answer your original query :
    ACL is only solution to block client communication on same ssid between 2 wlcs. 5508 works better with ACLs then 44xx platform.
    ARP requests will be forwarded to upstream router just like any other traffic. WLC won't proxy arp for clients on same vlan.
    Gateway arp's I believe should be handled by WLC . ( Don't quote me on this but I am pretty sure it is ) ..If it was not, then how would client know about gw ?
    Multicast traffic is not applicable for p2p.
    Your ACL can be as simple as this for the scenario :
    WLC 1 - clientvlan = 10
    WLC 2 - clientvlan = 10
    and you want to restrict users from wlc1-wlc1, wlc1-wlc2, wlc2-wlc2 for same vlan10.
    Basically in that case the ACL should look like on both WLCs :
    1. Permit statement to talk to gateway.
    2. Deny to subnet.
    3. Permit all.
    4. If DHCP/DNS other services are on same subnet then you would need to add a permit
    statement before the deny.
    5. Attach the ACL to SSID or dymanic interface.
    Thanks..Salil
    CSCtr60787    WLC P2P Blocking Set to Forward-UpStream Doesn't Work.

  • Why can't Apple TV's and iOS devices see home sharing on my Windows 7 computer when iTunes libraries on other computers on the same network and connected to the same Home Sharing can?

    I have never previously had any problems with Home Sharing, I have always found it to be completely reliable as advertised. I have 2 computers in the house, (one MacBook and one Windows Desktop) connected to the same Home Sharing account, connected to the same BT Home Hub 4. My situation is that I have nearly 2TB of data of which I would like to share with the home wirelessly, in my mind the desktop is the logical place for this to be shared from.
    When running, iTunes on this desktop broadcasts to other iTunes libraries, but no other iOS devices or Apple TV's connected to the same Home Sharing account cannot see it.
    I have tried turning Home Sharing off, and then turning it back on, closing iTunes, restarting the computer, going to Network and Sharing Centre and unticking IPv6 in the network adapter properties, even completely wiping the computer and reinstalling Windows 7.
    One of the Apple TV's in the house was recently purchased by my parents with the promise from me that everything would work seamlessly... so far it isn't and I am frustrated that the Apple technology that I have come to rely on isn't working as expected.
    One thing that has occurred to me upon writing this is that it is a very large amount of data, and I have not attempted to share this with another computer that is currently working and broadcasting it's Home Share fine.
    I am sorry if I have ommitted any important details, any further questions don't hesitate to ask. I would be so grateful of any suggestions, my parents are depending on me.

    I have found with AppleTV that it is the IPV6 on the computer you want to access is the problem.  The issue is that Homegroup on Win 7 or Win 8 requires IPV6 to work, but AppleTV won't work with IPV6.  (So maybe double check you have IPV6 turned off)
    So you have to make a choice - Homegroup or AppleTV.... but you can't have both, until Apple brings ATV up to date. (crazy that it does not recognise IPV6 - c'mon Apple!)
    You can set up sharing individually in Win 7 or 8 and have the ATV access files that way.
    Having said that, there is always the exception.. I have an old HP home server running Win8 and it services ATV - but is part of the Homegroup... have no idea why it works on both, but no other machine on the home network will talk to both ATV and Homegroup at the same time!

  • I have 2 Macs, connected to the same Wifi network. But sometimes, the shared computers does not appear on the left hand menu of the toolbar for me to access shared folders between the computers. Am I doing something wrong?

    I recently bought a MacBook Air for work. Whilst at home, both my Macbooks are connected to the same Wifi network. Sometimes, the 2 Macbooks are connected and I can access the shared folders, which is great. However, every now and again, the connection seems to be lost. Is there something I need to set up so that every time both Macbooks are switched on and connected to my Wifi, it will automatically be linked?
    Any help is much appreciated!

    I have found with AppleTV that it is the IPV6 on the computer you want to access is the problem.  The issue is that Homegroup on Win 7 or Win 8 requires IPV6 to work, but AppleTV won't work with IPV6.  (So maybe double check you have IPV6 turned off)
    So you have to make a choice - Homegroup or AppleTV.... but you can't have both, until Apple brings ATV up to date. (crazy that it does not recognise IPV6 - c'mon Apple!)
    You can set up sharing individually in Win 7 or 8 and have the ATV access files that way.
    Having said that, there is always the exception.. I have an old HP home server running Win8 and it services ATV - but is part of the Homegroup... have no idea why it works on both, but no other machine on the home network will talk to both ATV and Homegroup at the same time!

  • HT2729 I have downloaded a video on my iPhone but want to watch it on my iPad which both are connected to the same iTunes account but it hasn't shared to my iPad !?? When I try to download on my iPad says I've already purchased and would I like to buy aga

    I have download a video on my iPhone but want to watch it on my iPad which both are connected to the same iTunes account but it hasn't shared to my iPad !?? When I try to download on my iPad says I've already purchased and would I like to buy again ?

    Movies are not part of the automatic downloads feature. Apps, music and books only.
    If you live in the U.S. you can download many Movies again for free using the same Apple ID that you bought the movie with. If you do not live in the U.S, that feature is not available. Not all Movies are available at this time either.
    You can transfer the movie to iTunes on your computer and then sync it to the iPad if you like.

  • AirPort Express wireless connection, when I surf the news sites so I linked to **** pages. And must close the window. If I use my iPhone with Internet sharing the same computer, then I have no problem. I believe that it is in AirPort Express, and wou

    AirPort Express wireless connection, when I surf the news sites so I linked to **** pages. And must close the window. If I use my iPhone with Internet sharing the same computer, then I have no problem.
    I believe that it is in AirPort Express, and would have to clean it. How do you do that?

    You need to use the Express in router mode.. I think you are trying to use it in bridge mode.. but you need to give us a lot more details.. screenshots might help more than anything.

  • "Shared" tab on Finder when connected to the same wifi

    I have this concern about the "Shared" tab on Finder wherein every time I connect to the same wifi as someone else, this "Shared" tab with our computer's name appears. Its just a privacy concern because this means that whenever I connect to the wifi they would know that I'm connected.

    Go to the Sharing system preferences and disable any shared services you have enabled, and this should prevent your Mac from being auto-discovered on the network. Specifically do this for Screen Sharing and File Sharing to prevent your system from showing up in the Finder sidebar of another Mac; however, others like printer sharing will also have your Mac be discoverable in ways, though not directly through the Finder.

  • Sharing the same account mapping in 2 different locations

    I am using FDM (version 11.1.1.3 and 11.1.2.1).
    Hi Expert,
    I would like to ask about sharing the same mapping in multiple locations. Currently, I have 3 (or more later) locations in FDM. I have a set of account mapping which I would like to maintain it as a master copy and apply this account mapping to all 3 of my locations in FDM. I figured that I need to upload the account mapping everytime switching between locations.
    I know that for logic group, I can assign the same logic group to multiple locations by updating the properties in "Locations" under "MetaData".
    Is it possible to do the same thing for account mapping? e.g. upload only 1 set of account mapping and assign multiple location to it?
    Thank you!

    Choose one of the locations and assign it as the Parent location for the other 2 locations on the Locations metadata screen. These locations will then share the mapping of the parent location and you only need to maintain the mappings in the parent location.

  • Multiple APEX instances sharing the same Oracle Home?

    Can someone tell me if it is possible to have multiple APEX installations where the database instances are sharing the same Oracle Home? If so, how would this be set up?
    So, if I have development and test running on the same home, I want a separate APEX instance for each. We can do this when different Oracle homes are used (separate httpd running) but not for the same home.
    Thanks

    Thanks - We have tried putting 2 dad entries in file, but not sure how you connect. You only specify a port number, so how does it connect that to a db???

  • Multiple connections for the same user.

    I have EJB A and EJB B. A and B use a JCA connector that
              I have written. I have matchManagedConnections set so that if user U has not used EJB A or EJB B, then a new ManagedConnection is created. If user U has used A or B then that user is given a new virtual connection created from an existing ManagedConnection. Now the problem is that if user U access' A for the first time and then access' B BEFORE A has closed the connection, then a new ManagedConnection is created for user U. Therefore in this case user U gets 2 ManagedConnections to the EIS that we are using. Eventually one of the ManagedConnections is distroyed but I would like to eliminate this in the first place. How do a get Weblogic to see that a user has a ManagedConnection before that user is done with the connection.

    You can't have multiple roles on multiple connection, as you are connecting to the same website (different sub directories) ultimately.
    Here is the workaround:-
    You can create a new user account on your machine and can manage different roles.
    Hope it helps.

  • If i have multiple iPhones and Mac Mini sharing the same Apple ID, can I use Facetime between the devices?

    if i have multiple iPhones and Mac Mini sharing the same Apple ID, can I use Facetime between the devices?

    Yes, but if you want these devices to have complete capability of calling each other they each must have their own separate, individual e mail address.  If they don't have individual e mail addresses, the i phones will be able to call each other because you'll be using their  individual phone numbers -- the Mac mini will be able to call the i phones, but, the iphones will not be able to call the Mac mini.  This is because the iphones will be using the mini's e- mail address to make the call, and if they have the same e mail address, they will think they are calling themselves, so the call will not connect.
    So, the way I see it is,  if you keep all of the email addresses the same, the only thing you'll loose is the ability of the iphones to call the mini.
    EDIT:  Thinking about it, my first sentence needs to be modified.  Your iphones can share an email address but it must be different from the Mac mini address.
    This isn't rocket science, but it can make your head spin. LOL

  • With out using Weblogic libraries to maintain the same functionality

    Hi,
    Please tell the solution of my problem.Here application developed in Weblogic,now we are migrating that applicationin jboss.Here one java servlet program is there which is using Weblogic libraries to get the connection pool .
    How can change the code without using Weblogic libraries to maintain the same funtionality. Is there any alternate method to get the connection pools in Jboss.
    Here I am attaching the code ,please go througth the code and provide me the correct solution.
    package gsk.servlets;
    import java.io.*;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import javax.naming.Context;
    import javax.naming.NamingException;
    import javax.management.*;
    import javax.management.InstanceNotFoundException;
    import javax.management.InvalidAttributeValueException;
    import javax.management.Notification;
    import javax.servlet.*;
    import javax.servlet.http.*;
    //Below lines are commnented by Anupama on 29-09-05 to avoid using Weblogic libraries.
    //import weblogic.jndi.Environment;
    //import weblogic.management.MBeanHome;
    //import weblogic.management.MBeanCreationException;
    //import weblogic.management.*;
    //import weblogic.management.runtime.*;
    //import weblogic.management.configuration.*;
    //import weblogic.management.RemoteNotificationListener;
    //import weblogic.management.logging.WebLogicLogNotification;
    //import javax.management.Notification.*;
    //below lines are added by Anupama T on 29-09-05 to run the same functionality without using Weblogic libraries
    import org.jboss.management.*;
    import org.jboss.jdbc.*;
    import org.jboss.naming.*;
    import org.jboss.management.j2ee.MBean;
    import javax.management.AttributeChangeNotification;
    import javax.management.JMException;
    import javax.management.MalformedObjectNameException;
    import javax.management.MBeanServer;
    import javax.management.NotificationListener;
    import javax.management.ObjectName;
    import org.jboss.logging.Logger;
    import org.jboss.system.ServiceMBean;
    import gsk.adip.portal.GKMProperties;
    import gsk.adip.dbconnectionservice.DatabaseConnector;
    * @author jjc18400
    * The ConnectionsManager class acts as a Servlet that listens and
    * responds to events that are thrown by WebLogic MBeans. In particular,
    * it listens for failures in WebLogic connection pools, and attempts to
    * restore these pools.
    public class ConnectionsManager extends HttpServlet implements NotificationListener {
         private static Context ctx;
         private static MBean managedHome;
         private static MBean adminHome;
         private static String SERVER_NAME;
         private static String DOMAIN_NAME;
         private static MBeanServer myServer;
         private JDBCConnectionPoolRuntimeMBean connectionPoolMBean;
         private JDBCConnectionPoolMBean jdbcConnPoolMBean;
         private JDBCConnectionPoolMBean myPool;
         private static ResultSet rset = null;
         public void init(ServletConfig config) throws ServletException {
              super.init(config);
              System.out.println("Initializing the ConnectionsManager servlet.");
              SERVER_NAME = GKMProperties.getProperty("GKM_SERVER_NAME");
              DOMAIN_NAME = GKMProperties.getProperty("DOMAIN_NAME");
              findMBeans();
              testConnectionPool("GENNETConnectionPool");
              try {
                   //findConnPool("GENNETConnectionPool").addNotificationListener(this, null, null);
                   RemoteMBeanServer rmbs = adminHome.getMBeanServer();
                   WebLogicObjectName oname =
                        new WebLogicObjectName("TheLogBroadcaster", "LogBroadcasterRuntime", DOMAIN_NAME, SERVER_NAME);
                   rmbs.addNotificationListener(oname, this, null, null);
              catch (IllegalArgumentException e) {}
              catch (MalformedObjectNameException e) {}
              catch (InstanceNotFoundException e) {}          
         public void handleNotification(Notification notification, Object obj) {
              WebLogicLogNotification wln = (WebLogicLogNotification)notification;
              System.out.println("\nWebLogicLogNotification");
              System.out.println(" type = " + wln.getType());
              System.out.println(" message id = " + wln.getMessageId());
              System.out.println(" server name = " + wln.getServername());
              System.out.println(" timestamp = " + wln.getTimeStamp());
              System.out.println(" message = " + wln.getMessage() + "\n");
         private void testConnectionPool(String poolName) {
              JDBCConnectionPoolMBean aPool = findConnPool(poolName);
              JDBCConnectionPoolRuntimeMBean aRuntimeMBean = findRuntimeMBean(poolName);
              /*while(aRuntimeMBean.getPoolState()) {
                   try {
                        Thread.sleep(6000);
                        System.out.println("Thread is sleeping.");
                   catch (InterruptedException ie) {
              retargetConnPool(aPool);
         private JDBCConnectionPoolRuntimeMBean findRuntimeMBean(String aPoolName) {
              JDBCConnectionPoolRuntimeMBean aRuntimeMBean = null;
              if (managedHome != null) {
                   try {
                        aRuntimeMBean = (JDBCConnectionPoolRuntimeMBean)managedHome.
                                  getRuntimeMBean(aPoolName, "JDBCConnectionPoolRuntime");
                   catch (InstanceNotFoundException e) {
                        System.out.println("Unable to find the JDBCConnectionPoolRuntimeMBean: " + e);
                        aRuntimeMBean = null;
              return aRuntimeMBean;
         private JDBCConnectionPoolMBean findConnPool(String poolName) {
              if (adminHome != null) {
                   try {
                        myPool = (JDBCConnectionPoolMBean)adminHome.getMBean(poolName, JDBCConnectionPoolMBean.class);
                   catch (InstanceNotFoundException e) {
                        System.out.println("Unable to find the JDBCConnectionPoolMBean: " + e);
                        myPool = null;
              return myPool;
         private void retargetConnPool(JDBCConnectionPoolMBean aPool) {
              //System.out.println("The connection pool: " + aPool.toString() + " is not responding.\nAttempting to retarget the pool...");
              try {
                   System.out.println("Attempting to remove " + myServer.toString() + " from the connection pool target list.");
                   aPool.removeTarget(myServer);
                   System.out.println("Removal successful: " + aPool.getTargets().toString());
                   aPool.addTarget(myServer);
                   System.out.println("Addition successful: " + aPool.getTargets().toString());
              catch (InvalidAttributeValueException e) {
                   System.out.println(e.toString());
              catch (DistributedManagementException e) {
                   System.out.println(e.toString());
         public void doPost(HttpServletRequest req, HttpServletResponse resp)
                   throws ServletException, IOException {
              String poolName = (String)req.getParameter("poolName");
              String dataSource = (String)req.getParameter("dataSource");
              //System.out.println("req.getAttribute(poolName) is: " + poolName);
              //System.out.println("req.getAttribute(dataSource) is: " + dataSource);
              String message = runTestQuery(dataSource);
              getConnectionPoolMBean(poolName);
              resp.setContentType("text/html");
              PrintWriter out = resp.getWriter();
              out.println("<html>");
              out.println(" <head><title>The ConnectionsManager Responds:</title></head>");
              out.println(" <body>");
              out.println(" <h1>" + message + "</h1>");
              out.println(" </body>");
              out.println("</html>");
         public void destroy() {
              System.out.println("Destroying the ConnectionsManager servlet.");
         public String getServletInfo() {
              return "This servlet monitors and corrects errors in WebLogic connection pools.";
         /**private void runTests() {
              while (false) {
                   rset = testConnection();
                   if (rset == null) {
                        resetConnectionPool();                    
                   try {
                        wait();
                   catch (InterruptedException e) {}
         private String runTestQuery(String dataSource) {
              String statusMessage = "";
              Connection conn = null;
              Statement stmt = null;
              ResultSet rset = null;
              //String aPoolName = "GENNETConnectionPool";
              String aSql = "select * from dual where 1 = 1";
              try {
                   conn = DatabaseConnector.getDatabaseConnection(dataSource);
                   System.out.println("Established database connection.");
                   if (conn != null) {
                        conn.setAutoCommit(false);
                        stmt = conn.createStatement();
                        rset = stmt.executeQuery(aSql);
                        statusMessage = "The connection \'" + dataSource + "\' is OK.";
              catch (Exception e) {
                   try {
                        conn.rollback();
                   catch (Exception e1) {}
                   e.printStackTrace();
                   statusMessage = "The connection \'" + dataSource + "\' has failed.\n" + e.toString();
              finally {
                   try {
                        if (stmt != null) stmt.close();
                        if (conn != null) conn.close();
                   catch (Exception e) {
                        e.printStackTrace();
                   return statusMessage;
         public void resetConnectionPool() {
         private void findConnPoolRuntimeMBean(String poolName) {
              try {
                   connectionPoolMBean = (JDBCConnectionPoolRuntimeMBean)managedHome.getRuntimeMBean(poolName, "JDBCConnectionPoolRuntime");
              catch (InstanceNotFoundException e) {
                   System.out.println("Unable to find the JDBCConnectionPoolRuntimeMBean: " + e);
         private void findMBeans() {
              Environment env = new Environment();
              try {
                   ctx = env.getInitialContext();
                   managedHome = (MBeanHome)ctx.lookup(MBeanHome.JNDI_NAME + "." + SERVER_NAME);
                   System.out.println(MBeanHome.JNDI_NAME + "." + SERVER_NAME + " -- managedHome found successfully.");
                   adminHome = (MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
                   System.out.println(MBeanHome.ADMIN_JNDI_NAME + " -- adminHome found successfully.");
                   myServer = (ServerMBean)adminHome.getMBean(SERVER_NAME, ServerMBean.class );
                   System.out.println(MBeanHome.ADMIN_JNDI_NAME + " -- " + SERVER_NAME + " instance found successfully.");
                   ctx.close();
              catch (NamingException e) {
                   System.out.println("Naming Exception: " + e);
                   managedHome = null;
                   adminHome = null;
              catch (InstanceNotFoundException e) {
                   System.out.println("Unable to find the JDBCConnectionPoolMBean: " + e);
         public String displayHomeName() {
              getConnectionPoolMBean("GENNETConnectionPool");
              if (managedHome != null) {
                   return new String("MBeanHome found successfully.");
              else return new String("MBeanHome not found.\nSee WL Console for error.");
         private void getConnectionPoolMBean(String poolName) {
              String thisPoolName = poolName;
              connectionPoolMBean = null;
              if (managedHome != null) {
                   try {
                        connectionPoolMBean =
                             (JDBCConnectionPoolRuntimeMBean)managedHome.getRuntimeMBean(thisPoolName, "JDBCConnectionPoolRuntime");
                        if (connectionPoolMBean != null) {
                             System.out.println("JDBCConnectionPoolRuntime found successfully.");
                             System.out.println("connectionPoolMBean.toString() is: " + connectionPoolMBean.toString());
                             System.out.println("connectionPoolMBean.getFailuresToReconnectCount() is: " + connectionPoolMBean.getFailuresToReconnectCount());
                             System.out.println("connectionPoolMBean.getPoolState() is: " + connectionPoolMBean.getPoolState());
                   catch (InstanceNotFoundException e) {
                        System.out.println("Unable to find the JDBCConnectionPoolRuntimeMBean: " + e);
                        connectionPoolMBean = null;
              // Obtain MBeanHome for the administration server.
              /*JDBCConnectionPoolMBean mbean = (JDBCConnectionPoolMBean)home.
                        getConfigurationMBean(poolName, "JDBCConnectionPoolConfig");
              mbean.setConnLeakProfilingEnabled(true);
              mbean.setSqlStmtParamLoggingEnabled(true);
              mbean.setSqlStmtMaxParamLength(maxLen);*/
              /*try {
                   mypool = (JDBCConnectionPoolMBean)mbh.getMBean( "mypool",
                   JDBCConnectionPoolMBean.class );
              catch( javax.management.InstanceNotFoundException e ) {
                   mypool = (JDBCConnectionPoolMBean) mbh.createAdminMBean( "mypool",
                        "JDBCConnectionPool", "mydomain" );
                   mypool.addTarget( myserver );
                   mypool.setDriverName( "org.gjt.mm.mysql.Driver" );*/
              if (adminHome != null) {
                   try {
                        myPool = (JDBCConnectionPoolMBean)adminHome.getMBean(poolName, JDBCConnectionPoolMBean.class);
                   catch (InstanceNotFoundException e) {
                        System.out.println("Unable to find the JDBCConnectionPoolMBean: " + e);
              if (myPool != null) {
                   //System.out.println("myPool.getMaxCapacity() is: " + myPool.getMaxCapacity());
                   try {
                        myPool.setMaxCapacity(10);
                        System.out.println("Before: myPool.getMaxCapacity() is: " + myPool.getMaxCapacity());
                        myPool.setMaxCapacity(100);
                        System.out.println("After: myPool.getMaxCapacity() is: " + myPool.getMaxCapacity());
                   catch (InvalidAttributeValueException e) {
                        System.out.println("Max Capacity is an invalid value.");
                   //System.out.println("myPool.getMaxCapacity() is: " + myPool.getMaxCapacity());
    }

    Hy, i've got the same problem as you. Did you find out a solution.
    If so, please contact me. Thanks a lot.
    Lorenzo

  • ACE20 - Loadbalancing across 3 virtual servers sharing the same address

    I have 3 virtual servers sharing the same IP, just using different ports.
    192.168.1.1:8000 = server1
    192.168.1.1:8001 = server2
    192.168.1.1:8002 = server3
    I would like to loadbalance across all 3 with the following probe, looking for the URL.
    http://192.168.1.1:8000/index.php
    http://192.168.1.1:8001/index.php
    http://192.168.1.1:8002/index.php
    The config I have in place doesn't seem to be working...  I probably configured this entirely wrong... not sure.
    I need to understand what I missed.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++
    probe http WEB1-http-probe
       interval 30
       passdetect interval 5
       request method get url /index.php
       expect status 200 200
       connection term forced
    probe http WEB2-http-probe
       interval 30
       passdetect interval 5
       request method get url /index.php
       expect status 200 200
       connection term forced
    probe http WEB3-http-probe
       interval 30
       passdetect interval 5
       request method get url /index.php
       expect status 200 200
       connection term forced
    ! RSERVER
    rserver host 192.168.1.1-rs
       ip address 192.168.1.1
       inservice
    ! SERVERFARM
    serverfarm host WEB-sf-HTTP
       rserver  192.168.1.1-rs 8000
          probe WEB1-http-probe
          inservice
       rserver  192.168.1.1-rs 8001
          probe WEB2-http-probe
          inservice
       rserver  192.168.1.1-rs 8002
          probe WEB3-http-probe
          inservice
    ! STICKYGROUP
    sticky ip-netmask 255.255.255.255 address source StickyGroup_WEB-HTTP
       timeout 60
       replicate sticky
       serverfarm WEB-sf-HTTP
    ! CLASS-MAP
    class-map match-any WEB-cm-HTTP
        2 match virtual-address 192.168.200.1 tcp eq 80
    ! POLICY-MAP
    policy-map type loadbalance first-match WEB-pm-HTTP
      class class-default
        serverfarm WEB-sf-HTTP
    policy-map multi-match POLICY
       class WEB-cm-HTTP
         loadbalance vip inservice
         loadbalance policy WEB-pm-HTTP
         loadbalance vip icmp-reply active
    When I check the status of the RSERVER, the probes all indicate "FAIL"

    Found my problem...
    I failed to put in the "port" statement under the probe.
    After doing this and then verifying the RSERVER status, all the probes now show as OPERATIONAL.
    probe http WEB1-http-probe
    port 8000

  • 2  Mac's sharing the same itunes library?

    2 Mac’s sharing the same itunes library?
    I would like to use the same existing itunes music folder I have on a external drive, connected to one of my machines?
    I can share without any problem the drive from my laptop and can share/view the other machines itunes music through itunes on my laptop, but can not set the music folder on my laptops Itunes to be the same as on the machine that the external drive is connected to.
    I have heard and seen this operation before but how do I do it ?

    You lost me on which machine is which and where the library is stored. If the library is on an external drive connected to Computer 1 and you want to access it on Computer 2 then:
    1. Connect to computer 1 using the Finder on Computer 2 and mount the external drive
    2. Open iTunes on Computer 2
    3. Select iTunes -> Preferences
    4. Select the Advanced tab
    5. Select Change next to iTunes Music Folder Location
    6. Navigate to the folder where the music is stored.
    7. Quit iTunes
    8. Open iTunes with the OPTION key held down.
    9. When prompted navigate to the Library file on Computer 1.
    That should do it. As always, back up the Library file before you start this process. I would also recommend you back it up regularly as if you have a network issue while accessing the library file remotely, it could corrupt it.

Maybe you are looking for

  • Call id on TV, feature is on the box but can't get it to work, at least a NY issue...

    I was told a bunch of things from a bunch of places.. Story 1: source: some ad I read) Call-id on TV needs either digital voice or a regular fios pots phone + fios internet.  I have the latter & the feature does show up on the box but when I try to e

  • How to know the last reboot date of a server B-series ?

    Hi, The question is in the title ! So, is it possible to know the last reload/reset date or the update time of a server blade B-series ? I could not find this piece of information in the GUI (or via a show command) Many thanks Nicolas.          

  • Duplicate Artists

    I've been having a problem with my music library for a while. I was hoping 7 would fix it, but it hasn't. The problem is that a single artist will appear multiple times, as in this screenshot: http://img135.imageshack.us/img135/2865/picture1dk4.png I

  • Print color different than screen color

    I'm a novice InDesign user. I need someone to explain to me in the most simple of terms how to get my documents printed in-house on a simple laser printer to print in the same colors as what I see on my screen when working in InDesign. Exporting to P

  • Do I have to make Oracle XE listener working before I install Oracle APEX?

    Hi, guys: I have a question: Do I have to make Oracle XE listener working before I install Oracle APEX 4.2? I have installed Oracle XE 11g on windows 7, however, I got problem to run Oracle XE listener, though Oracle XE itself is running. Since my pu