Pool of QueueSession/TextMessage for MQ connections

          In order to improve the performance, I want to create pool of QueueSender objects.
          What potential problems the application might be exposed to, if I create pool
          of "Message" types instead of the QueueSender.
          The application will have multiple MDBs receiving Request messages on a Q1. Then
          each execution thread will be sending response back on Q2. I want to pool the
          "Mesage" objects so that multiple threads simply get from the pool , use it and
          then return back to pool.
          Thanks
          Tariq.
          

Hi Tariq,
          Since they are so simple, I doubt that the creation and garbage
          collection of JMS messages is a bottleneck in your application. More
          than likely pooling these would actually slow performance - as the
          additional locking involved in maintaining a pool would burn more CPU
          than letting the garbage collector do its job.
          On the other hand, if initializing the application contents of messages
          is CPU intensive as well as repetitive, you may want to pool your
          application objects.
          Keep in mind that messages are not thread-safe. If you choose to pool
          messages, ensure that no two application threads simultaneously get
          access to a message - unless you "wrap" the message API with your own
          synchronization logic.
          Just in case you don't already know: There is an example of pooling
          code in the "WebLogic JMS Performance Guide" white-paper on
          dev2dev.bea.com. And WebLogic 8.1, out in beta now, has built in vendor
          neutral pooling capability for JMS resources.
          Hope this helps,
          Tom, BEA
          Tariq Bhatti wrote:
          > In order to improve the performance, I want to create pool of QueueSender objects.
          >
          >
          > What potential problems the application might be exposed to, if I create pool
          > of "Message" types instead of the QueueSender.
          >
          > The application will have multiple MDBs receiving Request messages on a Q1. Then
          > each execution thread will be sending response back on Q2. I want to pool the
          > "Mesage" objects so that multiple threads simply get from the pool , use it and
          > then return back to pool.
          >
          > Thanks
          > Tariq.
          >
          

Similar Messages

  • Shall I use one datasource for multiple connection pool?

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

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

  • Any way to disable encryption of password for database connection pool?

    Dear all,
    Does anybody know how to disable the password encryption for jdbc connection pool under weblogic 8.1? I need to put clear text password in the config.xml but it seems there's no way to disable the password encryption. Any help is appreciated. Thx in advance.
    Paul

    paul wee wrote:
    Dear all,
    Does anybody know how to disable the password encryption for jdbc connection pool under weblogic 8.1? I need to put clear text password in the config.xml but it seems there's no way to disable the password encryption. Any help is appreciated. Thx in advance.
    PaulWhen you create the pool, don't give it any password at all, but when you add the
    driver properties, add
    password=mypassword
    as one of the properties.
    Joe

  • Cannot get a connection, pool error Timeout waiting for idle object

    my connection pool setting is
      maxActive="3" minIdle="2"                maxWait="10000"              removeAbandoed="true" logAbandoned="true"         removeAbandonedTimeout="30"         autoreconnection="true" 
    we have 7 people hitting the group of search functions ,
    about 3 minutes I get
    I got error like
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object         at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:104)         at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)         at Deferment.showResult.checStudent(showResult.java:135)         at Deferment.showResult.doPost(showResult.java:99)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)         at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    I just wonder
    1) Cannot get a connection, pool error Timeout waiting for idle object-> cause by connection pool leaking or other problem.
    2) Setting the maxactive to -1 ( suggestion from Google) , if I set my connection to ulimit , waht should I put on minIdle="2"
    3) How can I test my connection pool have problem or not ? is
    SHOW PROCESSLIST; tolding me someinformation? I use Mysql
    Thank you!

    I try something like ps2 = conn.prepareStatement(target);
                ps2.setString(1, UNumber); // set input parameter
                rs = ps2.executeQuery();
                sendMail = 0;//how many rows we can find.
                while (rs.next()) {
                    sendMail++;
                ps2.close();
                rs.close();
                conn.close();
      if ((count1 == 0) || (count2 == 0)) {
                    conn.rollback();
                } else {
                    conn.commit();
                    conn.setAutoCommit(true);
                ps.close();
                calstat2.close();
                conn.close();
    calstat = (CallableStatement) conn.prepareCall("{call findStudent}");
                calstat.executeQuery();
                calstat.close();
                conn.close();is that enought? what else I should do to make sure I did close all the connection, after I use it ?
    thank you

  • How to get ManagedBean for C3P0 connection pool.

    Hi there,
    How to get ManagedBean(C3P0PooledDataSourceMBean) for C3P0 connection pool, as the object name is getting constructed during run time.
    Thanks,
    Sid

    Hi there,
    How to get ManagedBean(C3P0PooledDataSourceMBean) for C3P0 connection pool, as the object name is getting constructed during run time.
    Thanks,
    Sid

  • AnyConnect: No Address Available for SVC Connection on Cisco ASA 5505

    Get Error
    The secure gateway has rejected the connection attempt.   A new connection attempt to the same or another secure gateway is needed, which requires re-authentication.   The follow message was received from the secure gateway:    No address available for SVC connection.
    ip local pool VPN 192.168.250.50-192.168.250.60 mask 255.255.255.0
    tunnel-group SSL type remote-access
    tunnel-group SSL general-attributes
    address-pool VPN
    tunnel-group Any-Connect type remote-access
    tunnel-group Any-Connect general-attributes
    address-pool VPN
    I have a VPN pool
    I can make a clientless SSL connection

    Hi,
    Maybe you are not falling into that tunnel-group SSL? By default, you will fall into the DefaultWebvpnGroup unless you choose the TG via a dropdown or directly access the group via a groupurl.
    Example: When no 'tunnel-group-list' or 'group-url' is configured:
    Accessing https:// will take you to DefaultWebvpnGroup.
    When 'tunnel-group-list enable' is configured under webvpn, you will get a dropdown of tunnel-groups to choose from [provided you have an alias defined for the group]
    When group-url is configured for a particular TG, say https:///test , on accessing that URL, you are taken to that group directly.
    So basically, you would need to check which group you are hitting. Running 'debug webvpn 255' should also show you this.
    Thanks
    Rahul

  • Design question for database connection in multithreaded socket-server

    Dear community,
    I am programming a multithreaded socket server. The server creates a new thread for each connection.
    The threads and several objects witch are instanced by each thread have to access database-connectivity. Therefore I implemented factory class which administer database connection in a pool. At this point I have a design question.
    How should I access the connections from the threads? There are two options:
    a) Should I implement in my server class a new method like "getDatabaseConnection" which calls the factory class and returns a pooled connection to the database? In this case each object has to know the server-object and have to call this method in order to get a database connection. That could become very complex as I have to safe a instance of the server object in each object ...
    b) Should I develop a static method in my factory class so that each thread could get a database connection by calling the static method of the factory?
    Thank you very much for your answer!
    Kind regards,
    Dak
    Message was edited by:
    dakger

    So your suggestion is to use a static method from a
    central class. But those static-methods are not realy
    object oriented, are they?There's only one static method, and that's getInstance
    If I use singleton pattern, I only create one
    instance of the database pooling class in order to
    cionfigure it (driver, access data to database and so
    on). The threads use than a static method of this
    class to get database connection?They use a static method to get the pool instance, getConnection is not static.
    Kaj

  • No address available for SVC connection!

    I am trying to create a SSLVPN connection using Cisco Anyconnect Client after entering username and password, I am getting following error message in attached screenshot. I already created a ip local pool vpnpool 192.168.60.10-192.168.60.15 mask 255.255.255.0 and associated with correct tunnel-group sslgroup. Everytime i attempt to connect i get error message no address available for SVC Connection.
    Any help or suggestions related to this issue will be helpful.
    Thanks,
    Ali

    Hi MKD,
    I only have one telnet session open and ASDM session to this ASA on top of that I am using CiscoAnyConnect to intiate SSL Connection. I also try to close ASDM session and reattempted again but getting same error message.
    Do you have any other suggestions?
    Forgot to mention I don't have a RDP session opened.
    Thanks,
    Ali

  • Which BC4J / JDBC pooling configurations are global for a JVM?

    There are several documents and postings saying that some of the BC4J / JDBC Pooling properties are unique for the JVM.
    So if i have 3 WAR files with 3 different settings in bc4j.xcfg (transaction factory, pooling settings) some of the settings are ignored after the first AM Pool is instanciated. This could be the reason for some "unreproducable" problems we have.
    So please provide us a list, which properties additional to the ones below are global per JVM and which are really used from the bc4j.xcfg.
    1. Getting the Connection object out of ApplicationModule says about the TransactionFactory
    Please not that this property is a static BC4J property. Meaning that the value of this property when the first ApplicationModule is created is the value which will be used. If you have multiple ApplicationPool(s) then it is necessary to define the property in all configurations, dynamically, or as a system property.
    2. http://www.oracle.com/technology/products/jdev/tips/muench/ampooling/index.html says about jbo.ampool.monitorsleepinterval
    Since there is only a single application monitor pool monitor per Java VM, the value that will effectively be used for the AM pool monitor polling interval will be the value found in the AM configuration read by the first AM pool that gets created. To make sure this value is set in a predictable way, it is best practice for all application modules to use the same Pool Polling Interval value.
    and
    3. Since the tuning parameters for all ADF database connection pools - regardless of <JDBCURL,Username> value - will be set based on the parameters found in the configuration for the first AM pool that is created. To insure the most predictable behavior, it is best practice to leave the values of the parameters in the Connnection Pooling section of the Pooling and Scalability tab at their default values - so that no entry for them is written into the bc4j.xcfg file - and to instead set the desired values for the database connection pooling tuning parameters as Java System Parameters in your J2EE container.
    Sounds like this means the parameters: jbo.initpoolsize, jbo.maxpoolsize, jbo.poolmonitorsleepinterval, jbo.poolmaxavailablesize, jbo.poolminavailablesize, jbo.poolmaxinactiveage ?
    4. And http://oracle-web.petersons.com/bc4jdoc/bc_aappmodpooling.htm tells There is one connection pool manager for each business logic tier's Java VM. Connections remain in the pool until the Java VM stops running.
    Thanks, Markus

    Just another funny observation regarding BC4J parameter settings in 9.0.5.2:
    Setting jbo.ampool.sessioncookiefactoryclass in the jboserver.properties is ignored. Setting in bc4j.xcfg works.
    rgds, Markus

  • Getting AutoCommit as true for a connection during a JTS transaction

    We have a situation where connections being retrieved from a JDBC connection pool through a JDBCTxDataSource are having their autoCommit flag set to true (which should never happen) though it is in a Disributed transaction . We have confirmed that it is a JTS connection and not a pool connection. The environment details are below
              Appserver : Weblogic version 8.1 sp5
              Database : Oracle 9i database.
              Driver : ojdbc14.jar
              We have a weblogic cluster wit two instances. The JDBC configuration for the 2 instances are below
              Primary :
              <JDBCConnectionPool
                   CapacityIncrement="5"
              ConnectionCreationRetryFrequencySeconds="240"
              CountOfRefreshFailuresTillDisable="1"
              CountOfTestFailuresTillFlush="1"
              DriverName="oracle.jdbc.driver.OracleDriver"
              InitialCapacity="75"
                   LoginDelaySeconds="1"
                   MaxCapacity="75"
              Name="xxxPool"
                   PasswordEncrypted="{3DES}PvyCca0PtiM="
              PreparedStatementCacheSize="0"
              Properties="user=xxxsm;dll=ocijdbc8;protocol=thin"
              RefreshMinutes="50"
                   ShrinkPeriodMinutes="15"
              ShrinkingEnabled="false"
                   Targets="PR_CLUSTER"
              TestConnectionsOnRelease="true"
                   TestConnectionsOnReserve="true"
              TestTableName="dual"
                   URL="jdbc:oracle:thin:@xxxxxx:1521:yyyyyy"/>
              <JDBCTxDataSource EnableTwoPhaseCommit="true" JNDIName="jdbc.xxxDB"
              Name="xxxDB" PoolName="xxxPool" Targets="PR_CLUSTER"/>
              Secondary:
              <JDBCConnectionPool
              CapacityIncrement="5"
              DriverName="oracle.jdbc.driver.OracleDriver"
              InitialCapacity="50"
              LoginDelaySeconds="1"
              MaxCapacity="50"
              Name="xxxPool"
              PreparedStatementCacheSize="0"
              Properties="user=xxxsm;dll=ocijdbc8;protocol=thin"
              RefreshMinutes="59"
              ShrinkPeriodMinutes="15"
              ShrinkingEnabled="false"
              Targets="PR_CLUSTER"
              TestConnectionsOnRelease="true"
              TestConnectionsOnReserve="true"
              CountOfTestFailuresTillFlush="1"
              CountOfRefreshFailuresTillDisable="1"
              ConnectionCreationRetryFrequencySeconds="240"
              TestTableName="dual"
              Password="sbkbl05"
              URL="jdbc:oracle:thin:@xxxxx:1521:yyyyyy"/>
              <JDBCTxDataSource EnableTwoPhaseCommit="true"
              JNDIName="jdbc.xxxDB" Name="xxxDB" PoolName="xxxPool" Targets="PR_CLUSTER"/>
              Has someone encountered this situation before? Does any configuration condition lead to this situation?
              Thanks in advance for your help

    Pramod C S wrote:
              > We have a situation where connections being retrieved from a JDBC connection pool through a JDBCTxDataSource are having their autoCommit flag set to true (which should never happen) though it is in a Disributed transaction . We have confirmed that it is a JTS connection and not a pool connection. The environment details are below
              > Appserver : Weblogic version 8.1 sp5
              Hi. Is the recipient of the autoCommit(true) connection hand-written code?
              A TxDataSource to a non-XA pool will deliver an autoCommit(true) connection
              iff the connection request is made outside (even if just before) a WLS-managed
              global tx has started.
              Joe
              > Database : Oracle 9i database.
              > Driver : ojdbc14.jar
              > We have a weblogic cluster wit two instances. The JDBC configuration for the 2 instances are below
              > Primary :
              > <JDBCConnectionPool
              >      CapacityIncrement="5"
              > ConnectionCreationRetryFrequencySeconds="240"
              > CountOfRefreshFailuresTillDisable="1"
              > CountOfTestFailuresTillFlush="1"
              > DriverName="oracle.jdbc.driver.OracleDriver"
              > InitialCapacity="75"
              >      LoginDelaySeconds="1"
              >      MaxCapacity="75"
              > Name="xxxPool"
              >      PasswordEncrypted="{3DES}PvyCca0PtiM="
              > PreparedStatementCacheSize="0"
              > Properties="user=xxxsm;dll=ocijdbc8;protocol=thin"
              > RefreshMinutes="50"
              >      ShrinkPeriodMinutes="15"
              > ShrinkingEnabled="false"
              >      Targets="PR_CLUSTER"
              > TestConnectionsOnRelease="true"
              >      TestConnectionsOnReserve="true"
              > TestTableName="dual"
              >      URL="jdbc:oracle:thin:@xxxxxx:1521:yyyyyy"/>
              > <JDBCTxDataSource EnableTwoPhaseCommit="true" JNDIName="jdbc.xxxDB"
              > Name="xxxDB" PoolName="xxxPool" Targets="PR_CLUSTER"/>
              >
              > Secondary:
              > <JDBCConnectionPool
              > CapacityIncrement="5"
              > DriverName="oracle.jdbc.driver.OracleDriver"
              > InitialCapacity="50"
              > LoginDelaySeconds="1"
              > MaxCapacity="50"
              > Name="xxxPool"
              > PreparedStatementCacheSize="0"
              > Properties="user=xxxsm;dll=ocijdbc8;protocol=thin"
              > RefreshMinutes="59"
              > ShrinkPeriodMinutes="15"
              > ShrinkingEnabled="false"
              > Targets="PR_CLUSTER"
              > TestConnectionsOnRelease="true"
              > TestConnectionsOnReserve="true"
              > CountOfTestFailuresTillFlush="1"
              > CountOfRefreshFailuresTillDisable="1"
              > ConnectionCreationRetryFrequencySeconds="240"
              > TestTableName="dual"
              > Password="sbkbl05"
              > URL="jdbc:oracle:thin:@xxxxx:1521:yyyyyy"/>
              >
              > <JDBCTxDataSource EnableTwoPhaseCommit="true"
              > JNDIName="jdbc.xxxDB" Name="xxxDB" PoolName="xxxPool" Targets="PR_CLUSTER"/>
              >
              >
              > Has someone encountered this situation before? Does any configuration condition lead to this situation?
              >
              > Thanks in advance for your help

  • ASA 5505 configured for WebVPN connecting to Citrix Web Interface

    ASA 5505 configured for WebVPN connecting to Citrix Web Interface.
    i have a ASA 5505 that I am attempting to configure for WebVPN with passthrough into Web Interface .  The user authenticates into WebVPN OK and gets the option to click on the Citrix Link (which is i add bookmark  citrix server http:// 172.30.40.5.) i enter the citrix and then for example  i want to open to outlook it can not open. (when i want to open some application no application is open)).there is no alarm at asa. how i solve this issue?
    thanks.

    Teymur,
    Can you confim that after disabling the ssl/tls on the Citrix server (secure connectivity) that you are getting exactly the same error.  It is possible that it is generating a different error.
    The bug where we have see the existing error was CSCtf06303 but that has been fixed in 8.4.1.  Can you confirm the exact version of code you are running on the ASA.
    If you have confirmed the above two notes it may be adventageous to open a TAC case as we may need to do some live additional troubleshooting.
    Thanks
    -Jay

  • Licensing for Unity Connection after Upgrade from 8.5 to 9.1.2

    I upgraded my Unity connection from 8.5.1 to 9.1.2. ( my CUCM is still on 8.5.1) . I have 200 CUWL-STD ( 2200 DLUs), and 50 CUWL-PRO (850 DLUs) . Now I am working with Cisco to get a license file for Unity Connection and apply that to my ELM. I attached my licensing page for when I was in 8.5.1 . Just want to make sure if I will be getting enough license with that license file, or possibly I need to buy more. Someone told me that if I want to have users with mailbox I need to order more licenses since every user take one CUWL license.
    Honestly i do not know how CUWL licensing work regardig to Unity or even CUCM.
    Thanks,

    Hi,
    The following link provides details of licenses usage by diff endpoints on version 9.x
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/upgrade/uct/9_1_1/CUCM_BK_U0AE00F5_00_uct-admin-guide/CUCM_BK_U0AE00F5_00_uct-admin-guide_chapter_0100.html
    HTH
    Manish

  • I am trying to install software for iTwin Connect, but after downloading the dmg file and launching the program, I receive a message saying the file can't open and to check my internet connection.  Any ideas?

    I am trying to install software for iTwin Connect, but after downloading the dmg file and launching the program, I receive a message saying the file can't open and to check my internet connection.  Any ideas?

    Many Thanks, Kurt.
    I knew I'd seen the solution you've provided somewhere - either in MacWorld or MacFormat - but couldn't remember the Gatekeeper bit!
    I shall save it somewhere VERY safe now in case this happens again …
    You have made an old man very happy and saved me from worrying that senile decay had suddenly set in. (I was 70 last week so you might understand the situation from that.)
    Best wishes
    OllyanDinah

  • What is the easiest way to check for internet connection in C#?

    Hi!
    I searched a lot but I didn't get my answer. I'm looking for the easiest way to check for internet connection. Can you help me?
    Thanks a lot.

    Hi Pouya Ebrahimzadeh,
    I suggest you could connect a site to check if it can be opened.
    Public Shared Function CheckForInternetConnection() As Boolean
    Try
    Using client = New WebClient()
    Using stream = client.OpenRead("https://msdn.microsoft.com/")
    Return True
    End Using
    End Using
    Catch
    Return False
    End Try
    End Function
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I check the Oracle enviornment variables for a connection?

    I am using Oracle JDBC 10.2.0.4 and trying to output the Oracle enviornment variables for a connection.
    I am trying to determine if the values output from sqlplus from the following two SQL select statements are different in the connection object:
    SELECT * from NLS_SESSION_PARAMETERS order by 1;
    NLS_CALENDAR GREGORIAN
    NLS_COMP BINARY
    NLS_CURRENCY $
    NLS_DATE_FORMAT MM/DD/YYYY HH24:MI:SS
    NLS_DATE_LANGUAGE AMERICAN
    NLS_DUAL_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_LANGUAGE AMERICAN
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NUMERIC_CHARACTERS .,
    NLS_SORT BINARY
    NLS_TERRITORY AMERICA
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    SELECT sys_context('userenv','language') from dual;
    AMERICAN_AMERICA.WE8ISO8859P1
    Is there a way to do this in the API or do I just need to run the SQL statements in a Class and output the values to a log?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

    So try it.
    Create a connection with no settings.
    Alter all of the (session only)
    Query again and see.
    Either the query will return the altered values or it won't.

Maybe you are looking for

  • I am unable to activate my new Samsung Galaxy Note 8 tablet to read DMR coded books I've purchased?

    I know my Adobe ID and password are correct because I can log into my adobe.com account, but when I try to use an ebook reader to open books I've downloaded to the device I get messages that I must activate the device with my adobe ID to read adobe D

  • Getting Exception during the page navigation in remote server deployed Appl

    Hi, When i am Navigating from my screen to Parent Screen after texudo service update , My application is working fine in Local System, The same applications are hosted on the weblogic server, but in separate Weblogic domains . when i run the applicat

  • Exported quicktime presentations not running properly on Windows

    I've done a presentation that has been sent out to clients who have come back with vague comments saying that part of the presentation is not visible in full screen mode? After much searching around the office I've finally found a PC that seems to be

  • Cannot install my Adobe Premiere Elements 10

    How can I resolve this errors below? Please Help... Exit Code: 7 -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 8 error(s), 7 warning(s) WARNING: DW031: Payload:{3F023875-4A52-4605-9DB6-A88D4

  • Installing Lightroom on a Mac

    I'm using the desktop version to LR5 for Windows and I'd like to install LR5 on my Macbook Air (OSX 10.9.4).  To do so, I'm asked to download Creative Cloud, but I'm confused.  I thought CC was for those who were interested in the subscription based