DBConnection pooling

We are on 9iAS and using custom pages developed using Oracle Application Framework 11.5.10. RUP3. I have posted the question in OA forums, but so far havent received any response. So I am posting the same question here.
When DBConnection is pooled, will it reset the package state? We are using PLSQL global variables and we are expecting it to be reset when user logs out. But somehow, he is getting the same DBconnection while coming back to the page, with same PLSQL variable state.
I know its not good programing practice to store state in PLSQL variable. But we are not. We are caching some frequently used setup values in global variable, and rarely when user changes the setup, these values are not reflected until we bounce the server. Is there any neat way to handle this situation?
Thanks a million in advance.
Regards
Sreeram.H

In OC4J there is a notion of physical connections and logical connections; When you acquire a connection you actually acquire a logical connection from the pool which is then coupled with a a physical connection to do your transaction.
Once a transaction finishes the logical connection is not closed, its your responsibility to close it or let it timeout by setting an inactivity-timeout property.
I am not an OA expert so maybe you should repost your question in the correct forum, OA may work differently.
Thanks,
Deepak

Similar Messages

  • How to get DBconnection from a custom servlet

    Hi all:
    In my JHeadstart Struts application, if we will using javascript to call a custom servlet program when some html event occur,
    than how can we get db connection in our Servlet because we need get some database data through this Servlet,
    we hope this Servlet can share dbconnection pool with JHeadstart that is consider for performance issue.
    thanks a lot !

    Ting Rung,
    JHeadstart is based on the Model-View-Controller (MVC) principle. This means that the Model layer is responsible for communication with the database (and thus database connection pooling). Accessing the database directly from a JSP or Servlet is against the principles of MVC. JHeadstart uses BC4J as the technology to implement the model layer. By going through an BC4J Application Module to do some database action (for example calling a stored procedure as you mentioned in another thread) you automatically get the database connection pooling.
    So, in the JHeadstart philosophy, we do not access the database from a servlet, instead we would do the following:
    - write a method on the BC4J app module that performs the database action
    - add a method to the apporpriate handler that calls this AM method
    - write a custom Struts action that calls the handler method
    Having said this, nobody will stop you from doing database access in a servlet. But JHeadstart might not be the right choice for you if you do not want to stick with the principles of MVC.
    Here is a link that provides you with some more background information about MVC, may be it can help you deciding what the best approach for your application is:
    http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html
    You can also "google" on model-view-controller if you like.
    Steven Davelaar,
    JHeadstart Team.

  • Can't access ejb with more than 1 person at the same time?

    I am using the ejb to access the database using DBConnection Pool that I find in book. The code is as follow:
    The problem is when more than one user access almost at the same time, the one who enter frst can access, but the other one can't and return context lookup error in creating EJB.
    What's the problem of it, is it the ejb concurrent access problem or database concurrent access problem?
    package login.database;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import java.util.Date;
    public class DBConnectionManager {
    static private DBConnectionManager instance;
    static private int clients;
    private Vector drivers = new Vector();
    private PrintWriter log;
    private Hashtable pools = new Hashtable();
    static synchronized public DBConnectionManager getInstance() {
    if (instance == null) {
    instance = new DBConnectionManager();
    clients++;
    return instance;
    private DBConnectionManager() {
    init();
    public void freeConnection(String name, Connection con) {
    DBConnectionPool pool = (DBConnectionPool) pools.get(name);
    if (pool != null){
    pool.freeConnection(con);
    public Connection getConnection(String name) {
    DBConnectionPool pool = (DBConnectionPool) pools.get(name);
    if (pool != null) {
    return pool.getConnection();
    return null;
    public Connection getConnection(String name, long time) {
    DBConnectionPool pool = (DBConnectionPool) pools.get(name);
    if (pool != null) {
    return pool.getConnection(time);
    return null;
    public synchronized void release() {
    if (--clients != 0) {
    return;
    Enumeration allPools = pools.elements();
    while (allPools.hasMoreElements()) {
    DBConnectionPool pool = (DBConnectionPool) allPools.nextElement();
    pool.release();
    Enumeration allDrivers = drivers.elements();
    while (allDrivers.hasMoreElements()) {
    Driver driver = (Driver) allDrivers.nextElement();
    try {
    DriverManager.deregisterDriver(driver);
    log("Deregistered JDBC driver " + driver.getClass().getName());
    } catch (SQLException e) {
    log(e, "Can't deregister JDBC driver: " + driver.getClass().getName());
    private void createPools(Properties props) {
    Enumeration propNames = props.propertyNames();
    while (propNames.hasMoreElements()) {
    String name = (String) propNames.nextElement();
    if (name.endsWith(".url")) {
    String poolName = name.substring(0, name.lastIndexOf("."));
    String url = props.getProperty(poolName + ".url");
    if (url == null) {
    log("No URL specified for " + poolName);
    continue;
    String user = props.getProperty(poolName + ".user");
    String password = props.getProperty(poolName + ".password");
    String maxconn = props.getProperty(poolName + ".maxconn", "0");
    int max;
    try {
    max = Integer.valueOf(maxconn).intValue();
    } catch (NumberFormatException e) {
    log("Invalid maxconn value " + maxconn + "for " + poolName);
    max = 0;
    DBConnectionPool pool = new DBConnectionPool(poolName, url, user, password, max);
    pools.put(poolName, pool);
    log("Initialized pool " + poolName);
    private void init(){
    InputStream is = getClass().getResourceAsStream("db.properties");
    Properties dbProps = new Properties();
    try {
    dbProps.load(is);
    } catch (Exception e) {
    System.err.println("Can't read the properties file. " +
    "Make sure db.properties is in the CLASSPATH");
    return;
    String logFile = dbProps.getProperty("logfile","DBConnectionManager.log");
    try {
    log = new PrintWriter(new FileWriter(logFile, true), true);
    } catch (IOException e) {
    System.err.println("Can't open the log file: " + logFile);
    log = new PrintWriter(System.err);
    loadDrivers(dbProps);
    createPools(dbProps);
    private void loadDrivers(Properties props) {
    String driverClasses = props.getProperty("drivers");
    StringTokenizer st = new StringTokenizer(driverClasses);
    while (st.hasMoreElements()) {
    String driverClassName = st.nextToken().trim();
    try {
    Driver driver = (Driver) Class.forName(driverClassName).newInstance();
    DriverManager.registerDriver(driver);
    drivers.addElement(driver);
    log("Registered JDBC driver " + driverClassName);
    } catch (Exception e) {
    log("Can't register JDBC driver: " + driverClassName + ", Exception: " + e);
    private void log(String msg) {
    log.println(new Date() + ": " + msg);
    private void log(Throwable e, String msg) {
    log.println(new Date() + ": " + msg);
    e.printStackTrace(log);
    class DBConnectionPool {
    private int checkedOut;
    private Vector freeConnections = new Vector();
    private int maxConn;
    private String name;
    private String password;
    private String URL;
    private String user;
    public DBConnectionPool(String name, String URL, String user, String password, int maxConn) {
    this.name = name;
    this.URL = URL;
    this.user = user;
    this.password = password;
    this.maxConn = maxConn;
    public synchronized void freeConnection(Connection con) {
    freeConnections.addElement(con);
    checkedOut--;
    notifyAll();
    public synchronized Connection getConnection() {
    Connection con = null;
    if (freeConnections.size() > 0) {
    con = (Connection) freeConnections.firstElement();
    freeConnections.removeElementAt(0);
    try {
    if (con.isClosed()) {
    log("Removed bad connection from " + name);
    con = getConnection();
    } catch (SQLException e) {
    log("Removed bad connection from " + name);
    con = getConnection();
    else if (maxConn == 0 || checkedOut < maxConn) {
    con = newConnection();
    if (con != null) {
    checkedOut++;
    return con;
    public synchronized Connection getConnection(long timeout) {
    long startTime = new Date().getTime();
    Connection con;
    while ((con = getConnection()) == null) {
    try {
    wait(timeout);
    } catch (InterruptedException e) {}
    if ((new Date().getTime() - startTime) >= timeout) {
    return null;
    return con;
    public synchronized void release() {
    Enumeration allConnections = freeConnections.elements();
    while (allConnections.hasMoreElements()) {
    Connection con = (Connection) allConnections.nextElement();
    try {
    con.close();
    log("Closed connection for pool " + name);
    } catch (SQLException e) {
    log(e, "Can't close connection for pool " + name);
    freeConnections.removeAllElements();
    private Connection newConnection() {
    Connection con = null;
    try {
    if (user == null) {
    con = DriverManager.getConnection(URL);
    else {
    con = DriverManager.getConnection(URL, user, password);
    log("Created a new connection in pool " + name);
    } catch (SQLException e) {
    log(e, "Can't create a new connection for " + URL);
    return null;
    return con;

    Hi,
    static synchronized public DBConnectionManager getInstance() {
    The word "synchronized" will allow only one user at a time to access the getInstance() method which returns DBConnectionManager. Suggest u read some stuff on the same
    As I am not sure which App server ur using, u cld do the following
    1. Create a Conection Pool in ur App Server itself (Weblogic/Websphere/Jboss way)
    2. Create a DataSource which maps to this Connection Pool.
    3. Use the DataSource object which handles poolong of Connections to access the database
    4. As mentioned above, Read notes/documents on "Synchronized" and "Vector" before you use this word in any code of EJB. This will solve ur problem. Read topic called "Collection Framework".
    Seetesh

  • Abap+Java sap mmc java info unavailable

    Hi there,
    windows 2003 EE, Mscs clusters
    oracle 10g
    Abap+java
    system usage type :PI
    my abap system is up but not java and it says j2ee info unavailable.my database is up and i can connect to it.but when i try to use config tool it says error in connecting to DB and mmc i dont see any java workprocess at all.please help, because i have the same problem on both nodes of the cluster.Below im pasting the  config tool error info
    com.sap.engine.frame.core.configuration.ConfigurationException: Error while conn
    ecting to DB.
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.createConnection(DBConnectionPool.java:360)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.<init>(DBConnectionPool.java:125)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceH
    andler.<init>(PersistenceHandler.java:38)
            at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init
    >(ConfigurationCache.java:149)
            at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBoots
    trapImpl.init(ConfigurationManagerBootstrapImpl.java:236)
            at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBoots
    trapImpl.<init>(ConfigurationManagerBootstrapImpl.java:49)
            at com.sap.engine.configtool.visual.ConfigTool.loadClusterData(ConfigToo
    l.java:99)
            at com.sap.engine.configtool.visual.ConfigTool.initScan(ConfigTool.java:
    87)
            at com.sap.engine.configtool.visual.ConfigTool.<init>(ConfigTool.java:82
            at com.sap.engine.configtool.visual.ConfigTool.main(ConfigTool.java:961)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81
    Caused by: java.sql.SQLException: Io exception: The Network Adapter could not es
    tablish the connection
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :112)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :146)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :255)
            at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
            at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    420)
            at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
            at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:35)
            at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
            at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(Nativ
    eConnectionFactory.java:215)
            at com.sap.sql.connect.OpenSQLDataSourceImpl.createPooledConnection(Open
    SQLDataSourceImpl.java:608)
            at com.sap.sql.connect.OpenSQLDataSourceImpl.getPooledConnection(OpenSQL
    DataSourceImpl.java:285)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.createConnection(DBConnectionPool.java:302)
            ... 14 more
    regards
    raj

    Hi Raj,
    Idially, Java part will be invisible from SAP MMC if the installation for ABAP+Java (ofcourse it's possible to have visible with insntallation options available) and the Java part of it is controlled by ABAP start/stop requests.
    Otherwise, If you are able to login to the system (ABAP), please use SMICM where you can check whether Java status, if requir you can go for Java alonoe Restart also.
    Raj, Please give me points if it helps you.
    Thanks
    Chandra

  • Problem in forwarding to a JSP file

    Here is my code. I'm not able to forward to another jsp when I click on the modify button. If I display anything using alert inside the modify function, it is displaying. But when I include the forward statement, the entire screen becomes blank. What could be the reason.
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.util.*,com.gh.db.*" errorPage="Error.jsp" %>
    <html>
    <head>
    <TITLE>Guest Houses of DOS</TITLE>
    </head>
    <%@ include file="StdValidations.js" %>
    <script Language="text/JavaScript">
    function ClearFields()
         document.UserAdmin.Ln.value = "";
         document.UserAdmin.Nm.value = "";
         document.UserAdmin.SecNm.value = "";
         document.UserAdmin.submit1.disabled=false;
         document.UserAdmin.submit2.disabled=false;
         document.UserAdmin.submit3.disabled=false;
         document.UserAdmin.submit4.disabled=true;
         document.UserAdmin.option1.value="";
         document.UserAdmin.option3.value="";
         document.UserAdmin.option2.value="";
    function EnterTo()
              document.UserAdmin.option1.value ="Add";
              document.UserAdmin.submit1.disabled=true;
              document.UserAdmin.submit2.disabled=true;
              document.UserAdmin.submit3.disabled=true;
              document.UserAdmin.submit4.disabled=false;
              document.UserAdmin.submit;
    function Save()
         alert(document.UserAdmin.option1.value);
         if ((document.UserAdmin.option1.value == "Add"))
    if ((document.UserAdmin.Ln.value != "") &&(document.UserAdmin.Nm.value != "") && (document.UserAdmin.SecNm.value != ""))
         document.UserAdmin.option3.value = "Save";
         return true;
    else
         alert("Input ALL Values");
         return false;
    function valid(form)
         if (document.UserAdmin.option3.value == "")
              this.disabled=true;
              return false;
    function Modify()
         <jsp:forward page="ModifyUser.jsp" />
    </script>
    <body>
    <form name="UserAdmin" method="post" action="UserAdmin.jsp" onSubmit="return valid(this);">
    <br><br><br>
    <center>
    <%
         String choice1="",choice3="";
         String Ln="",Nm="",SecNm="",Rl="";
         DBconnection pool = DBconnection.getInstance();
         Connection con = pool.getConnection();
         con.setAutoCommit(false);
         Statement st1 = con.createStatement();
         int NoofRows;
         choice1 = request.getParameter("option1");
         if (choice1 == null) choice1 = "";
         choice3 = request.getParameter("option3");
         if (choice3 == null) choice3 = "";
         if ((choice1.equals("Add")) && (choice3.equals("Save")))
         %>
              <script> alert("done");</script>
         <%
         Ln = request.getParameter("Ln");
         if (Ln == null) Ln = "";
         Nm = request.getParameter("Nm");
         if (Nm == null) Nm = "";
         SecNm = request.getParameter("SecNm");
         if (SecNm == null) SecNm = "";
         try
         st1.executeUpdate("insert into TableUser (LoginName,Name,SectionName,Password) values ('" + Ln + "', '" + Nm + "','" + SecNm + "','" + Ln + "')");
              choice1="";
              choice3="";
              con.commit();
         catch(Exception e)
         e.printStackTrace();
         %>
         <script> alert("Record Already Exists : <%= e %>"); </script>
         <%
         %>
         <script> ClearFields(); </script>
         <%
    %>
    <%      
         String LoginName= "";
         String Name= "";
         String SectionName= "";
         try
              LoginName = session.getAttribute("LoginName").toString();
              Name = session.getAttribute("Name").toString();
              SectionName = session.getAttribute("SectionName").toString();     
         catch(NullPointerException npe)
              %>
              <jsp:forward page="LoginHere.jsp" >
              <jsp:param name="SessionMode" value="Session Expired try again to log on" />
              </jsp:forward>
              <%
    %>
         <table width="80%" bgcolor="#F6F8C4">
              <tr >
              <td align="center">
                   <img src="Images/Title.gif">
                   <img src="Images/gh1.jpg" ></br>
              </td>
              </tr>
              </tr>
                        <tr>
                        <td>
                        </td>
                        <td align="right">
                             <font face="Times New Roman, Times, serif" size="+1">Logout</font>
                        </td>
              </tr>
         </table>
         <table width="80%" bgcolor="#B6C7E5">
         <tr >
         <td align="center">
              <font face="Comic Sans MS" color="6D3C1E" size="+1">User Addition</font>
         </td>
         </tr>
         </table>
         <table width="80%" bgcolor="#B6C7E5">
              <tr >
              <td >
              <font face="Times New Roman, Times, serif" size="+1">Name:  <%= Name %></font>
              </td>
              <td align="right">
                   <font face="Times New Roman, Times, serif" size="+1">SectionName:  <%= SectionName %></font>               
              </td>
              </tr>
         </table>
              <table width="80%" bgcolor="#B6C7E5">
              <tr>
              <td align="center">
              <INPUT name="img" type="Image" value="Assign Role" src="Images/Role.jpg">
              </td>
              <td>
              <table width="80%" bgcolor="#B6C7E5">
                   <tr>
                   <td width="60%" align="right">
                   <P >     Login Name :     <INPUT id=text1 name=Ln> </P >
                   <P >     User Name :     <INPUT id=text2 name=Nm> </P>
                   <P >     Section Name :    <INPUT id=text3 name=SecNm> </P>
                   <p>
                   <INPUT name="submit2" type="button" value="Modify" onclick="Modify();">
                   <INPUT name="submit1" type="button" value="Add" onclick="EnterTo();">                                                  
                   <INPUT name="submit3" type="button" value="Delete" onclick="Delete();"></p>
                   </td>
                   <td align="left">
                   <INPUT name="submit4" class="Button" type="submit" value="Save" disabled="true" onclick="Save();" ></br></br>
                   <INPUT name="reset1" type="reset" value="Clear" onClick="ClearFields()" > </br>
                   </td>
                   </tr>
                   </table>
              </td>
              </tr>
              </table>
              <table width="80%" bgcolor="#B6C7E5">
              <tr>
              <td align="center">
                   </br>
                   <img src="Images/Home.jpg">
              </td>
              </tr>
              </table>     
              <input type=hidden name= "option1"> <br>
              <input type=hidden name= "option3"> <br>
              <input type=hidden name= "option2"> <br>
              <% if (st1 != null) st1.close();
                   if (con != null)
                        con.rollback();
                        con.setAutoCommit(true);
                        pool.returnConnection(con);
              }     %>
    </table>
    </center>
    <input name="HomePage" type="hidden">
    </form>
    </body>
    </html>

    Hi snma,
    This is probably happening because you commited the response twice. Maybe you�ve used the ActionForward object, to forward the response and after forward it, you�ve tried to re-forward using the jsp tag.
    the HttpServletResponse has a isCommited() method that can check if the response was commited .

  • Weblogic Load Testing intermittent problem!

    Hi All,
    We are running weblogic 5.1 sp8 to load testing, and using following
    setting:
    Weblogic.system.executeThreadCount=20;
    Weblogic.system.nativeIO.enable=ture;
    dbConnection Pool=20
    while we increased 60 concurrent users, HPUX 11i started to hung
    intermittent, can not ping this box. after a while, return back to perform.
    checked weblogic.log, found following error:
    <ListenThread> listen failed, failure count...
    java.net.SocketException: "No buffer space available".
    Any idea for this case?
    Thanks

    No, I haven't seen that before.
    <ListenThread> listen failed, failure count...
    java.net.SocketException: "No buffer space available".I suggest that you go through the JDK sources to find out where that message
    comes from and work back from there to see how to avoid the problem.
    Peace,
    Cameron Purdy
    Tangosol Inc.
    << Tangosol Server: How Weblogic applications are customized >>
    << Download now from http://www.tangosol.com/download.jsp >>
    "yubenjb" <[email protected]> wrote in message
    news:3b7b5137$[email protected]..
    Yes, we have followed BEA and HP suggestions to do all. but still happened
    to this special case. The HP console still can operate, but there is noany
    inbound/outbound network traffic at that time. means that can not pingfrom
    this server to outside, meanwhile, others also can not ping this server .
    Any advice from you?
    "Cameron Purdy" <[email protected]> wrote in message
    news:3b718de4$[email protected]..
    Did you up the kernel params as suggested by HP and by BEA?
    Peace,
    Cameron Purdy
    Tangosol Inc.
    << Tangosol Server: How Weblogic applications are customized >>
    << Download now from http://www.tangosol.com/download.jsp >>
    "yubenjb" <[email protected]> wrote in message
    news:3b70bbfc$[email protected]..
    Hi All,
    We are running weblogic 5.1 sp8 to load testing, and using following
    setting:
    Weblogic.system.executeThreadCount=20;
    Weblogic.system.nativeIO.enable=ture;
    dbConnection Pool=20
    while we increased 60 concurrent users, HPUX 11i started to hung
    intermittent, can not ping this box. after a while, return back toperform.
    checked weblogic.log, found following error:
    <ListenThread> listen failed, failure count...
    java.net.SocketException: "No buffer space available".
    Any idea for this case?
    Thanks

  • Reg connection to java

    hi guys i am trying to use the offline config tool- i am getting the following error
    help appreciated
    thanks
    ERROR: Error while connecting to DB.
    com.sap.engine.frame.core.configuration.ConfigurationException: Error while conn
    ecting to DB.
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.createConnection(DBConnectionPool.java:364)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.<init>(DBConnectionPool.java:129)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceH
    andler.<init>(PersistenceHandler.java:38)
            at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init
    >(ConfigurationCache.java:149)
            at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBoots
    trapImpl.init(ConfigurationManagerBootstrapImpl.java:236)
            at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBoots
    trapImpl.<init>(ConfigurationManagerBootstrapImpl.java:49)
            at com.sap.engine.services.configuration.gui.ToolLauncher.main(ToolLaunc
    her.java:39)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81
    Caused by: com.sap.sql.log.OpenSQLException: Could not load class com.microsoft.
    sqlserver.jdbc.SQLServerDriver.
            at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
            at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(Nativ
    eConnectionFactory.java:143)
            at com.sap.sql.connect.OpenSQLDataSourceImpl.createPooledConnection(Open
    SQLDataSourceImpl.java:608)
            at com.sap.sql.connect.OpenSQLDataSourceImpl.getPooledConnection(OpenSQL
    DataSourceImpl.java:285)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.createConnection(DBConnectionPool.java:306)
            ... 11 more
    Caused by: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLSer
    verDriver
            at com.sap.engine.offline.FileClassLoader.findClass(FileClassLoader.java
    :691)
            at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java
    :600)
            at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java
    :578)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:141)
            at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(Nativ
    eConnectionFactory.java:134)

    Hi Ibrahim,
    The described problem seems to be a general topic, it's not VAR specific.
    If you wish, I could forward it the [SAP Solution Manager Forum|SAP Solution Manager;, which is accessible for all users.
    Best regards,
    Ruediger

  • Urgent: Cannot start a Java only dialog instance

    We have a JAVA only EP7(CI+DB) running well.
    We have installed a dialog instance (Java only) for above CI.
    However anyway we cannot start the DI.
    Here is the log:
    more jvm_bootstrap.out
    Bootstrap MODE:
    <INSTANCE GLOBALS>
    determined by parameter ID0069640.
    Exception occurred:
    com.sap.engine.bootstrap.SynchronizationException: Database initialization faile
    d! Check database properties!
    at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.j
    ava:422)
    at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:144)
    at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:814)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81
    == Caused by: ==----
    com.sap.engine.frame.core.configuration.ConfigurationException: Error while conn
    ecting to DB.
    at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.createConnection(DBConnectionPool.java:360)
    at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.<init>(DBConnectionPool.java:125)
    at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceH
    andler.<init>(PersistenceHandler.java:38)
    at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init
    (ConfigurationCache.java:149)
    at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBoots
    trapImpl.init(ConfigurationManagerBootstrapImpl.java:236)
    at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBoots
    trapImpl.<init>(ConfigurationManagerBootstrapImpl.java:49)
    at com.sap.engine.bootstrap.Synchronizer.<init>(Synchronizer.java:60)
    at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.j
    ava:419)
    at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:144)
    at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:814)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81
    Caused by: java.sql.SQLException: Io exception: Connection reset
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :255)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    420)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
    at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(Nativ
    eConnectionFactory.java:215)
    at com.sap.sql.connect.OpenSQLDataSourceImpl.createPooledConnection(Open
    SQLDataSourceImpl.java:608)
    at com.sap.sql.connect.OpenSQLDataSourceImpl.getPooledConnection(OpenSQL
    DataSourceImpl.java:285)
    at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.createConnection(DBConnectionPool.java:302)
    ... 15 more
    Bootstrap module> Problem occurred while performing synchronization.
    velssi03:pd5adm 76>
    We found some notes but no fix.
    Please help! Points guaranteed. Thanks!!

    Check whether environment variables are correctly set.
    -Pinkle

  • Reg configtool

    hi guys i am trying to use the offline config tool- i am getting the following error
    help appreciated
    thanks
    ERROR: Error while connecting to DB.
    com.sap.engine.frame.core.configuration.ConfigurationException: Error while conn
    ecting to DB.
    at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.createConnection(DBConnectionPool.java:364)
    at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.<init>(DBConnectionPool.java:129)
    at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceH
    andler.<init>(PersistenceHandler.java:38)
    at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init
    (ConfigurationCache.java:149)
    at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBoots
    trapImpl.init(ConfigurationManagerBootstrapImpl.java:236)
    at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBoots
    trapImpl.<init>(ConfigurationManagerBootstrapImpl.java:49)
    at com.sap.engine.services.configuration.gui.ToolLauncher.main(ToolLaunc
    her.java:39)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81
    Caused by: com.sap.sql.log.OpenSQLException: Could not load class com.microsoft.
    sqlserver.jdbc.SQLServerDriver.
    at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
    at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(Nativ
    eConnectionFactory.java:143)
    at com.sap.sql.connect.OpenSQLDataSourceImpl.createPooledConnection(Open
    SQLDataSourceImpl.java:608)
    at com.sap.sql.connect.OpenSQLDataSourceImpl.getPooledConnection(OpenSQL
    DataSourceImpl.java:285)
    at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
    Pool.createConnection(DBConnectionPool.java:306)
    ... 11 more
    Caused by: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLSer
    verDriver
    at com.sap.engine.offline.FileClassLoader.findClass(FileClassLoader.java
    :691)
    at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java
    :600)
    at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java
    :578)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(Nativ
    eConnectionFactory.java:134)

    Hi,
    Config tool tries to connect to the database when you run the config tool script "configtool.bat" (windows)
    As per you above input the config tool trying to define a connection with the database which is failing
    ERROR: Error while connecting to DB.
    com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.
    I hope you are running the config tool script using <SID>adm user, which has the authority to use the same.
    For more information on Config tool see
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/d1cf8d09a94ae79319893c2537d3a0/frameset.htm
    Rgds
    Radhakrishna D S

  • DBConnect Connection pooling

    We are trying to use DBConnect installed on DB2 UDB on SAP to do real-time stored procedure calls to an oracle data base to return real-time data by executing a the oracle stored procedure that returns the  real-time values.
    We want to make sure that DB Connect will support connection pooling when installed on SAP?
    Any help would be appreciated!
    More specifically documentation would also be helpful.

    Hi Ron,
    You're right, it is not possible to create a DataSource based on a DBConnect source system sp returning a result set; but we used our brains and some creativity in implementing an extraction framework based on external databases.
    Roughly; we don't use the DBConnect source system as such; instead we create function modules based extractors. The DataSource is defined, hmmm..., on the MyBW source system itself... This lets believe BW that is datamarting itself and offers lots of technology (delta based extraction for instance).
    The extractor is getting the data from the external database; could be a stored procedure or anything returning data.
    We even pushed the development to a point that the extractor code itself is generated on the fly based on some customizing entries we maintain in BW in order to define where to find the data for which BW datatarget. As a result we have ONE function module for extracting Master data, delta based.
    The benefits are many: data cleansing and preparation is performed in ONE external RDBMS easy to deal with (MSSQL); we never load a flat file in BW.
    This PreStaging System (PSS) as I call it sometimes even loops back to the Oracle R/3 and BW RDBMSs enabling us unlimited scenarios without spending too much effort in implementation. Any legacy system data will go through the PSS before reaching BW. The PSS serves as well data migration for R/3 when we roll out new implementations.
    BW operations run smoothly and our business requirements become easy to implement.
    In summary you're correct, you can't create a DataSource based on a stored procedure; I believe that this is because the schema/structure in the external system is not known  "a priori"... However I would have expected SAP to develop this technology a step further and allow it. I can also think that may not be possible on all RDBMS platforms...
    But if there is a problem, there's always a solution...
    Olivier.

  • Create A Connection Pool In the ServletContextListener

    The Specification says that we should create the connection pool in the ServletContextListener. I have the code for creating a connection pool (see below). How do I create it in the ServletContextListener?
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    public class DBConnection
       public static Connection getDBConnection() throws SQLException
          Connection conn = null;
          try
             InitialContext ctx = new InitialContext();
             DataSource ds = ( DataSource ) ctx.lookup( "java:comp/env/jdbc/MySQLDB" );
             try
                conn = ds.getConnection();
             catch( SQLException e )
                System.out.println( "Open connection failure: " + e.getMessage() );
          catch( NamingException nEx )
             nEx.printStackTrace();
          return conn;

    I use the connection pool feature provide by the server I use. Is this what I should do? Please confirm.
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    import javax.servlet.*;
    public class CreateResources implements javax.servlet.ServletContextListener
         public void contextInitialized(ServletContextEvent sce)
              public static Connection getDBConnection() throws SQLException
                   Connection conn = null;
                   try
                        InitialContext ctx = new InitialContext();
                        DataSource ds = ( DataSource ) ctx.lookup( "java:comp/env/jdbc/MySQLDB" );
                        try
                             conn = ds.getConnection();
                        catch( SQLException e )
                             System.out.println( "Open connection failure: " + e.getMessage() );
                  catch( NamingException nEx )
                        nEx.printStackTrace();
                  return conn;
         public void contextDestroyed(ServletCotnextEvent sce)
    }

  • SOA 11.1.1.3.0 - Connection Pool has been suspended during weak load

    Hi,
    I have a SCA with different BPEL, all uses several db adapters.
    Each db adapter has retry count set to 1.
    Each bpel has the following properties:
        <property name="bpel.config.transaction" many="false">required</property>
        <property name="bpel.config.inMemoryOptimization">true</property>
        <property name="bpel.config.completionPersistPolicy">off</property>When I do a simple load testing (with 10 concurrent threads invoking the same SCA webservice) my connection pool is suspended.
    Here is my connection pool configuration:
    <?xml version='1.0' encoding='UTF-8'?>
    <jdbc-data-source xmlns="http://xmlns.oracle.com/weblogic/jdbc-data-source" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/jdbc-data-source http://xmlns.oracle.com/weblogic/jdbc-data-source/1.0/jdbc-data-source.xsd">
      <name>DEV__DB</name>
      <jdbc-driver-params>
        <url>jdbc:oracle:thin:@10.17.5.50:1521:orcl</url>
        <driver-name>oracle.jdbc.xa.client.OracleXADataSource</driver-name>
        <properties>
          <property>
            <name>user</name>
            <value>DEV_</value>
          </property>
        </properties>
        <password-encrypted>{AES}UiaJC9d4Fl7jWHkcrYttu5E+wpOB4Jw1QKwTSA0ARtE=</password-encrypted>
        <use-xa-data-source-interface>true</use-xa-data-source-interface>
      </jdbc-driver-params>
      <jdbc-connection-pool-params>
        <initial-capacity>0</initial-capacity>
        <max-capacity>100</max-capacity>
        <capacity-increment>1</capacity-increment>
        <shrink-frequency-seconds>900</shrink-frequency-seconds>
        <highest-num-waiters>2147483647</highest-num-waiters>
        <connection-creation-retry-frequency-seconds>10</connection-creation-retry-frequency-seconds>
        <connection-reserve-timeout-seconds>10</connection-reserve-timeout-seconds>
        <test-frequency-seconds>300</test-frequency-seconds>
        <test-connections-on-reserve>true</test-connections-on-reserve>
        <ignore-in-use-connections-enabled>true</ignore-in-use-connections-enabled>
        <inactive-connection-timeout-seconds>0</inactive-connection-timeout-seconds>
        <test-table-name>SQL SELECT 1 FROM DUAL</test-table-name>
        <login-delay-seconds>0</login-delay-seconds>
        <statement-cache-size>100</statement-cache-size>
        <statement-cache-type>LRU</statement-cache-type>
        <remove-infected-connections>true</remove-infected-connections>
        <seconds-to-trust-an-idle-pool-connection>0</seconds-to-trust-an-idle-pool-connection>
        <statement-timeout>-1</statement-timeout>
        <jdbc-xa-debug-level>10</jdbc-xa-debug-level>
        <pinned-to-thread>false</pinned-to-thread>
      </jdbc-connection-pool-params>
      <jdbc-data-source-params>
        <jndi-name>jdbc/soSvilDB</jndi-name>
        <global-transactions-protocol>TwoPhaseCommit</global-transactions-protocol>
      </jdbc-data-source-params>
      <jdbc-xa-params>
        <keep-xa-conn-till-tx-complete>true</keep-xa-conn-till-tx-complete>
        <need-tx-ctx-on-close>false</need-tx-ctx-on-close>
        <xa-end-only-once>false</xa-end-only-once>
        <keep-logical-conn-open-on-release>false</keep-logical-conn-open-on-release>
        <resource-health-monitoring>true</resource-health-monitoring>
        <recover-only-once>false</recover-only-once>
        <xa-set-transaction-timeout>false</xa-set-transaction-timeout>
        <xa-transaction-timeout>0</xa-transaction-timeout>
        <rollback-local-tx-upon-conn-close>false</rollback-local-tx-upon-conn-close>
        <xa-retry-duration-seconds>300</xa-retry-duration-seconds>
        <xa-retry-interval-seconds>60</xa-retry-interval-seconds>
      </jdbc-xa-params>
    </jdbc-data-source>Here is the error:
    [2011-04-22T12:36:52.026+02:00] [OJDL] [NOTIFICATION:16] [ODL-52001] [oracle.core.ojdl.FileLogWriter] [org: Oracle] [host: soa.linux55.reply] [nwaddr: 10.17.5.69] [tid: [ACTIVE].ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oracle] deleting log file: soa_server1-diagnostic-179.log, size: 10485438 bytes
    [2011-04-22T12:36:51.985+02:00] [soa_server1] [ERROR] [] [oracle.soa.mediator.serviceEngine] [tid: [ACTIVE].ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000Ixwm9CqEcLH5yvs1yW1DgLRV000081,0] [WEBSERVICE_PORT.name: AlarmsRetrieverPortType_pt] [APP: soa-infra] [composite_name: AlarmRetreiverProject] [component_name: AlarmRetrieverMediator] [component_instance_id: 6E8716B06CCC11E0AF65F721A176C6C2] [J2EE_MODULE.name: fabric] [dcid: 0f2f96dd491b9522:5032bc97:12f7cbc8b1d:-7ffc-0000000000001701] [WEBSERVICE.name: AlarmRetrieverMediator_ep] [J2EE_APP.name: soa-infra] [composite_instance_id: 250014] Got an exception: oracle.fabric.common.FabricInvocationException: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}[[
    parts: {{
    summary=<summary>Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'GetTrainAlarms_dba' failed due to: Pure SQL Exception.
    Pure SQL Execute of select aa.* from <OMITTED>
    Caused by java.sql.SQLException: Internal error: Cannot obtain XAConnection weblogic.common.resourcepool.ResourceDisabledException: Pool DEV__DB is Suspended, cannot allocate resources to applications..
         at weblogic.common.resourcepool.ResourcePoolImpl.reserveResourceInternal(ResourcePoolImpl.java:357)
         at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:332)
         at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:440)
         at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:317)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:93)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:61)
         at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:1670)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1438)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:439)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:396)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:355)
         at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:126)
         at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:94)
         at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
         at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:327)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:295)
         at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.reconnect(DatasourceAccessor.java:558)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.reconnect(DatabaseAccessor.java:1437)
         at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.incrementCallCount(DatasourceAccessor.java:303)
         at oracle.tip.adapter.db.DBConnection.getTopLinkSQLConnection(DBConnection.java:335)
         at oracle.tip.adapter.db.transaction.DBTransaction.beginInternal(DBTransaction.java:126)
         at oracle.tip.adapter.db.puresql.PureSQLInteraction.executePureSQL(PureSQLInteraction.java:165)
         at oracle.tip.adapter.db.DBInteraction.executePureSQL(DBInteraction.java:1178)
         at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:255)
         at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.executeJcaInteraction(JCAInteractionInvoker.java:303)
         at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeJcaReference(JCAInteractionInvoker.java:519)
         at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeSyncJcaReference(JCAInteractionInvoker.java:492)
         at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAEndpointInteraction.performSynchronousInteraction(JCAEndpointInteraction.java:472)
         at oracle.integration.platform.blocks.adapter.AdapterReference.request(AdapterReference.java:166)
         at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
         at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
         at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:155)
         at sun.reflect.GeneratedMethodAccessor925.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy284.request(Unknown Source)
         at oracle.fabric.CubeServiceEngine.requestToMesh(CubeServiceEngine.java:797)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:262)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.__invoke(InvokeHandler.java:1073)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.handleNormalInvoke(InvokeHandler.java:526)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.handle(InvokeHandler.java:127)
         at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:70)
         at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:162)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2465)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1133)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:73)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:219)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:327)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4350)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4282)
         at com.collaxa.cube.engine.CubeEngine._createAndInvoke(CubeEngine.java:713)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:545)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:108)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvokeParticipate(CubeEngineBean.java:186)
         at sun.reflect.GeneratedMethodAccessor930.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
         at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:88)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.wls.JpsWeblogicEjbInterceptor.runJaasMode(JpsWeblogicEjbInterceptor.java:61)
         at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:106)
         at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:106)
         at sun.reflect.GeneratedMethodAccessor833.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy282.syncCreateAndInvokeParticipate(Unknown Source)
         at com.collaxa.cube.engine.ejb.impl.bpel.BPELEngineBean_51369e_ICubeEngineLocalBeanImpl.syncCreateAndInvokeParticipate(BPELEngineBean_51369e_ICubeEngineLocalBeanImpl.java:328)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.callCreateAndInvoke(DeliveryHandler.java:788)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:528)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:487)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:162)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.request(CubeDeliveryBean.java:607)
         at sun.reflect.GeneratedMethodAccessor933.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
         at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:88)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.wls.JpsWeblogicEjbInterceptor.runJaasMode(JpsWeblogicEjbInterceptor.java:61)
         at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:106)
         at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:106)
         at sun.reflect.GeneratedMethodAccessor833.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy279.request(Unknown Source)
         at com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.request(BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.java:462)
         at oracle.fabric.CubeServiceEngine.request(CubeServiceEngine.java:358)
         at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
         at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
         at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:155)
         at sun.reflect.GeneratedMethodAccessor925.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy284.request(Unknown Source)
         at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.request2Mesh(MediatorServiceEngine.java:1063)
         at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:202)
         at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:94)
         at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:74)
         at oracle.tip.mediator.service.SyncRequestResponseHandler.process(SyncRequestResponseHandler.java:79)
         at oracle.tip.mediator.service.ActionProcessor.onMessage(ActionProcessor.java:64)
         at oracle.tip.mediator.dispatch.MessageDispatcher.executeCase(MessageDispatcher.java:140)
         at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCase(InitialMessageDispatcher.java:495)
         at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases(InitialMessageDispatcher.java:393)
         at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processNormalCases(InitialMessageDispatcher.java:276)
         at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases(InitialMessageDispatcher.java:251)
         at oracle.tip.mediator.dispatch.InitialMessageDispatcher.dispatch(InitialMessageDispatcher.java:148)
         at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.process(MediatorServiceEngine.java:860)
         at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.request(MediatorServiceEngine.java:716)
         at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
         at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
         at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:155)
         at sun.reflect.GeneratedMethodAccessor925.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy284.request(Unknown Source)
         at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.doMessageProcessing(WebServiceEntryBindingComponent.java:1169)
         at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.processIncomingMessage(WebServiceEntryBindingComponent.java:768)
         at oracle.integration.platform.blocks.soap.FabricProvider.processMessage(FabricProvider.java:113)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1168)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:996)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:562)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:222)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:186)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:430)
         at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:477)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary>
    ,detail=<detail>Internal error: Cannot obtain XAConnection weblogic.common.resourcepool.ResourceDisabledException: Pool DEV__DB is Suspended, cannot allocate resources to applications..
         at weblogic.common.resourcepool.ResourcePoolImpl.reserveResourceInternal(ResourcePoolImpl.java:357)
         at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:332)
         at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:440)
         at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:317)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:93)
    </detail>
    ,code=<code>0</code>}
    oracle.tip.mediator.infra.exception.MediatorException: ORAMED-03303:[Unexpected exception in case execution]Unexpected exception in request response operation "process" on reference "DEV_bpel_client". Possible Fix:Check whether the reference service is properly configured and running or look at exception for analysing the reason or contact oracle support.
         at oracle.tip.mediator.service.SyncRequestResponseHandler.handleFault(SyncRequestResponseHandler.java:215)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: oracle.fabric.common.FabricInvocationException: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}I configured it using the Oracle User Guide For Technology Adapters, paragraph 2.21, but I still have the issue.
    Please can someone help me out?

    Also, the strange thing is that if I monitor the Datasource (that has a 100 conn. capacity) I see that it is not overloaded:
    Server Sorted Ascending      Enabled      State      JDBC Driver      Active Connections Average Count      Active Connections Current Count      Active Connections High Count      Connection Delay Time      Connections Total Count      Curr Capacity High Count      Current Capacity      Failed Reserve Request Count      Failures To Reconnect Count      Highest Num Available      Leaked Connection Count      Num Available      Num Unavailable      Prep Stmt Cache Add Count      Prep Stmt Cache Current Size      Prep Stmt Cache Delete Count      Prep Stmt Cache Hit Count      Prep Stmt Cache Miss Count      PrepStmt Cache Access Count      Reserve Request Count      Wait Seconds High Count      Waiting For Connection Current Count      Waiting For Connection Failure Total      Waiting For Connection High Count      Waiting For Connection Success Total      Waiting For Connection Total
    soa_server1     false     Suspended     oracle.jdbc.xa.client.OracleXADataSource     0     9     9     19049     36     10     9     81     0     10     0     0     9     18     18     0     0     18     18     380     0     0     0     0     35     0

  • Closing pooled connections?? one at a time?

    I've got an interesting need;
    I've writen a custom UserManager for form based authentication.
    class ValidateLoginManager extends AbstractUserManager
    Authentication is to a legacy DB (Oracle) where all users have
    been added as
    Oracle users. So I've created a separate JNDI data source in
    data-sources.xml
    for pooling connections that I'll only use for authentication
    (just a gut decission).
    The container calls:
    boolean checkPasswd (username, passwd) {
    boolean authenticated = false;
    try {
    dbConnection = this.datasource.getConnection(username,
    passwd);
    authenticated = true;
    } finally {
    if (dbConnection != null)
    dbConnection.close();
    return authenticated;
    This works great, since Oracle authenticates the connection
    against it's user DB.
    But the conn.close() does not close the session on the DB and
    soon all MTS tasks are used up in idle sessions.
    Any thoughts on forcing the connection to drop open sessions?
    thanks, curt

    Hi Curt,
    For my custom usermanager I use a datasource specified in my data-sources.xml like this:
    <data-source
         class="com.evermind.sql.DriverManagerDataSource"
         name="xyz"
         location="jdbc/OracleSecurityDS"
         xa-location="jdbc/xa/OracleXADS"
         ejb-location="jdbc/OracleDS"
         connection-driver="oracle.jdbc.driver.OracleDriver"
         url="jdbc:oracle:thin:@127.0.0.0:1521:xyz"
         inactivity-timeout="30"
    />
    When you lookup the datasource using JNDI, make sure you use the name bound to the location specified in the "location" attribute and not the "ejb-location" attribute (as you usually do in your Ejbs).
    I hope this helps.
    - nik.
    I've got an interesting need;
    I've writen a custom UserManager for form based authentication.
    class ValidateLoginManager extends AbstractUserManager
    Authentication is to a legacy DB (Oracle) where all users have
    been added as
    Oracle users. So I've created a separate JNDI data source in
    data-sources.xml
    for pooling connections that I'll only use for authentication
    (just a gut decission).
    The container calls:
    boolean checkPasswd (username, passwd) {
    boolean authenticated = false;
    try {
    dbConnection = this.datasource.getConnection(username,
    passwd);
    authenticated = true;
    } finally {
    if (dbConnection != null)
    dbConnection.close();
    return authenticated;
    This works great, since Oracle authenticates the connection
    against it's user DB.
    But the conn.close() does not close the session on the DB and
    soon all MTS tasks are used up in idle sessions.
    Any thoughts on forcing the connection to drop open sessions?
    thanks, curt

  • AppM File Passivation SQL92 Flavor for DB2 and causes Pool connection Leaks

    I am porting an ADF application to WebSphere and DB2 and noticed AM passivation goes from file to database. I have bc4j setup to use file passivation. When this happens I am noticing Connection are not being returned to pool. Has anyone experienced these 2 issues (Connection leaks and AM passivation to database)
    bc4j settings below are in place.
    -Djbo.doconnectionpooling=true
    -Djbo.txn.disconnect_level=1
    ADF Version: 11.1.1.59.23 ::: JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
    Server Info: IBM WebSphere Application Server/7.0
    Host Operating System is AIX, version 7.1
    Java version = JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460sr9-20110624_85526 (JIT enabled, AOT enabled)
    J9VM - 20110624_085526
    JIT - r9_20101028_17488ifx17
    GC - 20101027_AA_CMPRSS, Java Compiler = j9jit24, Java VM name = IBM J9 VM
    BC4J is configured to perform file passivation instead of database. The temp files (BC59c10e3cBCD) are being created, but the application occasionally passivates to database.
    ConsoleDiagno C Establish database connection
    3 oracle.jbo.server.DBTransactionImpl establishNewConnection [15306] Before getNativeJdbcConnection='com.ibm.ws.rsadapter.jdbc.WSJccSQLJConnection
    3 oracle.jbo.server.DBTransactionImpl establishNewConnection [15307] After getNativeJdbcConnection='com.ibm.db2.jcc.am.gf
    3 oracle.jbo.pcoll.JDBCPersistManager handleControlTableExists [15308] **createControlTable** tabname=PCOLL_CONTROL already exists
    3 oracle.jbo.pcoll.JDBCPersistManager holdTableName [15309] **holdTableName** tabName=PS_IDMKRAppMod locked in controltab
    3 oracle.jbo.pcoll.PCollManager resolveName [15310] **PCollManager.resolveName** tabName=PS_IDMKRAppMod
    3 oracle.jbo.server.DBTransactionImpl closeTransaction [15311] *** closing jdbc connection now **** (com.ibm.db2.jcc.am.gf@4cb14cb1)

    Yes there are nested AMs in this case. I have a SQL92 flavor with Type Map set to Java, and running against a DB2 database. I have used reference site
    http://www.oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html
    to properly configure my projects and setting and jbo options. What I am looking for is verification on the correct setting when this combination is used. I have dumped the runtime setting below. Are there any obvious problems below that may cause this behavior?
    [1135] {{ begin Loading BC4J properties
    [1136] -----------------------------------------------------------
    [1137] BC4J Property jbo.default.language='en' -->(MetaObjectManager) from System Default
    [1138] BC4J Property jbo.default.country='US' -->(MetaObjectManager) from System Default
    [1139] Skipping empty Property jbo.default.locale.variant from System Default
    [1140] BC4J Property DeployPlatform='LOCAL' -->(SessionImpl) from Client Environment
    [1141] Skipping empty Property ConnectionMode from System Default
    [1142] Skipping empty Property HostName from System Default
    [1143] Skipping empty Property ConnectionPort from System Default
    [1144] BC4J Property jbo.locking.mode='optimistic' -->(MetaObjectManager) from Client Environment
    [1145] BC4J Property jbo.txn.disconnect_level='1' -->(SessionImpl) from System Property
    [1146] Skipping empty Property ApplicationPath from System Default
    [1147] BC4J Property AppModuleJndiName='oracle.documaker.idocumaker.model.shared.app.IDMKRAppModuleAM' -->(SessionImpl) from Client Environment
    [1148] Skipping empty Property java.naming.security.principal from System Default
    [1149] Skipping empty Property java.naming.security.credentials from System Default
    [1150] Skipping empty Property jbo.user.principal from System Default
    [1151] BC4J Property jbo.simulate.remote='false' -->(SessionImpl) from System Default
    [1152] BC4J Property jbo.security.context='oracle.security.jazn' -->(MetaObjectManager) from System Default
    [1153] Skipping empty Property jbo.object.marshaller from System Default
    [1154] BC4J Property jbo.use.pers.coll='true' -->(SessionImpl) from Client Environment
    [1155] BC4J Property jbo.pers.max.rows.per.node='70' -->(SessionImpl) from System Default
    [1156] BC4J Property jbo.pers.max.active.nodes='30' -->(SessionImpl) from System Default
    [1157] BC4J Property jbo.validation.threshold='10' -->(SessionImpl) from System Default
    [1158] BC4J Property jbo.sparse.array.threshold='20' -->(SessionImpl) from System Default
    [1159] BC4J Property jbo.pcoll.mgr='oracle.jbo.pcoll.pmgr.DB2PersistManager' -->(SessionImpl) from System Property
    [1160] BC4J Property jbo.txn_table_name='PS_TXN' -->(SessionImpl) from System Default
    [1161] BC4J Property jbo.txn_seq_name='PS_TXN_seq' -->(SessionImpl) from System Default
    [1162] BC4J Property jbo.txn_seq_inc='50' -->(SessionImpl) from System Default
    [1163] BC4J Property jbo.control_table_name='PCOLL_CONTROL' -->(MetaObjectManager) from System Default
    [1164] BC4J Property jbo.stringmanager.factory.class='use_default' -->(SessionImpl) from System Default
    [1165] BC4J Property jbo.domain.date.suppress_zero_time='true' -->(MetaObjectManager) from System Default
    [1166] BC4J Property jbo.domain.bind_sql_date='true' -->(MetaObjectManager) from System Default
    [1167] BC4J Property jbo.domain.string.as.bytes.for.raw='false' -->(MetaObjectManager) from System Default
    [1168] BC4J Property jbo.fetch.mode='AS.NEEDED' -->(MetaObjectManager) from System Default
    [1169] BC4J Property jbo.323.compatible='false' -->(MetaObjectManager) from System Default
    [1170] BC4J Property jbo.903.compatible='false' -->(MetaObjectManager) from System Default
    [1171] Skipping empty Property JBODynamicObjectsPackage from System Default
    [1172] BC4J Property MetaObjectContextFactory='oracle.jbo.mom.xml.DefaultMomContextFactory' -->(MetaObjectManager) from System Default
    [1173] BC4J Property jbo.load.components.lazily='false' -->(MetaObjectManager) from System Default
    [1174] BC4J Property MetaObjectContext='oracle.jbo.mom.xml.XMLContextImpl' -->(MetaObjectManager) from System Default
    [1175] BC4J Property java.naming.factory.initial='oracle.jbo.common.JboInitialContextFactory' -->(SessionImpl) from Client Environment
    [1176] BC4J Property IsLazyLoadingTrue='true' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [1177] BC4J Property oracle.jbo.usemds='true' -->(MetaObjectManager) from System Default
    [1178] BC4J Property oracle.adfm.usemds='true' -->(MetaObjectManager) from System Default
    [1179] BC4J Property ActivateSharedDataHandle='false' -->(MetaObjectManager) from System Default
    [1180] Skipping empty Property HandleName from System Default
    [1181] Skipping empty Property Factory-Substitution-List from System Default
    [1182] BC4J Property jbo.project='oracle.documaker.idocumaker.model.SQL92Model' -->(Configuration) from Client Environment
    [1183] BC4J Property jbo.max.cursors='50' -->(MetaObjectManager) from System Default
    [1184] WARNING: Property jbo.dofailoverset to null
    [1185] Skipping empty Property jbo.dofailover from null
    [1186] WARNING: Property jbo.envinfoproviderset to null
    [1187] Skipping empty Property jbo.envinfoprovider from null
    [1188] Skipping empty Property jbo.rowid_am_conn_name from System Default
    [1189] BC4J Property jbo.rowid_am_datasource_name='jdbc/xxxxxxx' -->(MetaObjectManager) from Client Environment
    [1190] WARNING: Property jbo.ampool.writecookietoclientset to null
    [1191] Skipping empty Property jbo.ampool.writecookietoclient from null
    [1192] BC4J Property jbo.doconnectionpooling='true' -->(Configuration) from System Property
    [1193] WARNING: Property jbo.recyclethresholdset to null
    [1194] Skipping empty Property jbo.recyclethreshold from null
    [1195] WARNING: Property jbo.ampool.dynamicjdbccredentialsset to null
    [1196] Skipping empty Property jbo.ampool.dynamicjdbccredentials from null
    [1197] BC4J Property jbo.ampool.resetnontransactionalstate='true' -->(SessionImpl) from System Default
    [1198] WARNING: Property jbo.ampool.sessioncookiefactoryclassset to null
    [1199] Skipping empty Property jbo.ampool.sessioncookiefactoryclass from null
    [1200] WARNING: Property jbo.ampool.connectionstrategyclassset to null
    [1201] Skipping empty Property jbo.ampool.connectionstrategyclass from null
    [1202] WARNING: Property jbo.ampool.maxpoolsizeset to null
    [1203] Skipping empty Property jbo.ampool.maxpoolsize from null
    [1204] WARNING: Property jbo.ampool.initpoolsizeset to null
    [1205] Skipping empty Property jbo.ampool.initpoolsize from null
    [1206] WARNING: Property jbo.ampool.monitorsleepintervalset to null
    [1207] Skipping empty Property jbo.ampool.monitorsleepinterval from null
    [1208] WARNING: Property jbo.ampool.minavailablesizeset to null
    [1209] Skipping empty Property jbo.ampool.minavailablesize from null
    [1210] WARNING: Property jbo.ampool.maxavailablesizeset to null
    [1211] Skipping empty Property jbo.ampool.maxavailablesize from null
    [1212] WARNING: Property jbo.ampool.maxinactiveageset to null
    [1213] Skipping empty Property jbo.ampool.maxinactiveage from null
    [1214] WARNING: Property jbo.ampool.timetoliveset to null
    [1215] Skipping empty Property jbo.ampool.timetolive from null
    [1216] WARNING: Property jbo.ampool.doampoolingset to null
    [1217] Skipping empty Property jbo.ampool.doampooling from null
    [1218] WARNING: Property jbo.ampool.issupportspassivationset to null
    [1219] Skipping empty Property jbo.ampool.issupportspassivation from null
    [1220] BC4J Property jbo.ampool.isuseexclusive='true' -->(SessionImpl) from System Default
    [1221] BC4J Property jbo.passivationstore='file' -->(MetaObjectManager) from Client Environment
    [1222] BC4J Property jbo.saveforlater='false' -->(SessionImpl) from System Default
    [1223] BC4J Property jbo.snapshotstore.undo='persistent' -->(SessionImpl) from System Default
    [1224] BC4J Property jbo.maxpassivationstacksize='10' -->(SessionImpl) from System Default
    [1225] BC4J Property jbo.txn.handleafterpostexc='false' -->(SessionImpl) from System Default
    [1226] BC4J Property jbo.connectfailover='true' -->(SessionImpl) from System Default
    [1227] BC4J Property jbo.datasource_naming_factory='oracle.jbo.server.DataSourceContextFactory' -->(MetaObjectManager) from System Default
    [1228] WARNING: Property jbo.maxpoolcookieageset to null
    [1229] Skipping empty Property jbo.maxpoolcookieage from null
    [1230] WARNING: Property PoolClassNameset to null
    [1231] Skipping empty Property PoolClassName from null
    [1232] BC4J Property jbo.maxpoolsize='4096' -->(MetaObjectManager) from System Default
    [1233] BC4J Property jbo.initpoolsize='0' -->(MetaObjectManager) from System Default
    [1234] BC4J Property jbo.poolrequesttimeout='30000' -->(MetaObjectManager) from System Default
    [1235] BC4J Property jbo.poolmonitorsleepinterval='600000' -->(MetaObjectManager) from System Default
    [1236] BC4J Property jbo.poolminavailablesize='5' -->(MetaObjectManager) from System Default
    [1237] BC4J Property jbo.poolmaxavailablesize='25' -->(MetaObjectManager) from System Default
    [1238] BC4J Property jbo.poolmaxinactiveage='600000' -->(MetaObjectManager) from System Default
    [1239] BC4J Property jbo.pooltimetolive='-1' -->(MetaObjectManager) from System Default
    [1240] BC4J Property jbo.qcpool.monitorsleepinterval='1800000' -->(SessionImpl) from System Default
    [1241] BC4J Property jbo.qcpool.maxinactiveage='900000' -->(SessionImpl) from System Default
    [1242] BC4J Property RELEASE_MODE='Stateful' -->(MetaObjectManager) from System Default
    [1243] BC4J Property jbo.assoc.consistent='true' -->(MetaObjectManager) from System Default
    [1244] BC4J Property jbo.viewlink.consistent='DEFAULT' -->(MetaObjectManager) from System Default
    [1245] BC4J Property jbo.finder.range.size='DEFAULT' -->(MetaObjectManager) from System Default
    [1246] BC4J Property jbo.passivation.TrackInsert='true' -->(MetaObjectManager) from System Default
    [1247] Skipping empty Property jbo.ViewCriteriaAdapter from System Default
    [1248] BC4J Property jbo.SQLBuilder='SQL92' -->(MetaObjectManager) from Client Environment
    [1249] BC4J Property jbo.ConnectionPoolManager='oracle.jbo.server.ConnectionPoolManagerImpl' -->(MetaObjectManager) from System Default
    [1250] BC4J Property jbo.TypeMapEntries='Java' -->(MetaObjectManager) from Client Environment
    [1251] Skipping empty Property jbo.sql92.JdbcDriverClass from System Default
    [1252] BC4J Property jbo.sql92.LockTrailer='FOR UPDATE' -->(MetaObjectManager) from System Default
    [1253] BC4J Property jbo.jdbc.trace='false' -->(MetaObjectManager) from System Default
    [1254] BC4J Property jbo.abstract.base.check='true' -->(MetaObjectManager) from System Default
    [1255] BC4J Property jbo.assoc.where.early.set='false' -->(MetaObjectManager) from System Default
    [1256] BC4J Property jbo.use.findbykey.for.assoc='true' -->(MetaObjectManager) from System Default
    [1257] BC4J Property jbo.sql92.DbTimeQuery='select sysdate from dual' -->(MetaObjectManager) from System Default
    [1258] BC4J Property oracle.jbo.defineColumnLength='skipDefines' -->(MetaObjectManager) from System Default
    [1259] BC4J Property jbo.jdbc_bytes_conversion='jdbc' -->(MetaObjectManager) from System Default
    [1260] BC4J Property jbo.tmpdir='./' -->(MetaObjectManager) from Client Environment
    [1261] Skipping empty Property jbo.server.internal_connection from System Default
    [1262] BC4J Property SessionClass='oracle.jbo.server.SessionImpl' -->(SessionImpl) from System Default
    [1263] Skipping empty Property TransactionFactory from System Default
    [1264] Skipping empty Property jbo.def.mgr.listener from System Default
    [1265] Skipping empty Property jbo.use.global.sub.map from System Default
    [1266] BC4J Property jbo.debugoutput='console' -->(Diagnostic) from System Property
    [1267] BC4J Property jbo.debug.prefix='DBG: ' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1268] BC4J Property jbo.logging.show.timing='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1269] BC4J Property jbo.logging.show.function='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1270] BC4J Property jbo.logging.show.level='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1271] BC4J Property jbo.logging.show.linecount='true' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1272] BC4J Property jbo.logging.trace.threshold='6' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1273] BC4J Property jbo.jdbc.driver.verbose='false' -->(Diagnostic) from System Default
    [1274] Skipping empty Property oracle.home from System Default
    [1275] Skipping empty Property oc4j.name from System Default
    [1276] Skipping empty Property jbo.shared.txn from System Default
    [1277] BC4J Property jbo.ejb.txntimeout='1830' -->(SessionImpl) from System Default
    [1278] BC4J Property jbo.ejb.txntype='global' -->(SessionImpl) from System Default
    [1279] BC4J Property jbo.ejb.txn.disconnect_on_completion='false' -->(SessionImpl) from System Default
    [1280] BC4J Property jbo.ejb.useampool='false' -->(SessionImpl) from Client Environment
    [1281] Skipping empty Property oracle.jbo.schema from System Default
    [1282] BC4J Property jbo.xml.validation='false' -->(MetaObjectManager) from System Default
    [1283] BC4J Property ord.RetrievePath='ordDeliverMedia' -->(MetaObjectManager) from System Default
    [1284] BC4J Property ord.HttpMaxMemory='102400' -->(MetaObjectManager) from System Default
    [1285] Skipping empty Property ord.HttpTempDir from System Default
    [1286] BC4J Property ord.wmp.classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' -->(MetaObjectManager) from System Default
    [1287] BC4J Property ord.qp.classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' -->(MetaObjectManager) from System Default
    [1288] BC4J Property ord.rp.classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' -->(MetaObjectManager) from System Default
    [1289] BC4J Property ord.wmp.codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' -->(MetaObjectManager) from System Default
    [1290] BC4J Property ord.qp.codebase='http://www.apple.com/qtactivex/qtplugin.cab' -->(MetaObjectManager) from System Default
    [1291] Skipping empty Property ord.rp.codebase from System Default
    [1292] BC4J Property ord.wmp.plugins.page='http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&' -->(MetaObjectManager) from System Default
    [1293] BC4J Property ord.qp.plugins.page='http://www.apple.com/quicktime/download/' -->(MetaObjectManager) from System Default
    [1294] BC4J Property ord.rp.plugins.page='http://www.real.com/player/' -->(MetaObjectManager) from System Default
    [1295] BC4J Property jbo.security.enforce='None' -->(SessionImpl) from System Default
    [1296] BC4J Property jbo.security.loginmodule='oracle.security.jazn.oc4j.JAZNUserManager' -->(SessionImpl) from System Default
    [1297] Skipping empty Property jbo.security.config from System Default
    [1298] BC4J Property jbo.server.useNullDbTransaction='false' -->(SessionImpl) from System Default
    [1299] BC4J Property jbo.domain.reopenblobstream='false' -->(MetaObjectManager) from System Default
    [1300] BC4J Property jbo.server.retainAssocAccessor='false' -->(SessionImpl) from System Default
    [1301] BC4J Property jbo.groovy.debug='false' -->(MetaObjectManager) from System Default
    [1302] BC4J Property oracle.adfm.DefaultEventPolicy='NONE' -->(MetaObjectManager) from System Default
    [1303] BC4J Property oracle.adfm.useRootFrameOnly='false' -->(MetaObjectManager) from System Default
    [1304] Copying unknown Client property (java.naming.factory.url.pkgs='com.ibm.ws.naming:com.ibm.ws.runtime:weblogic.corba.j2ee.naming.url:weblogic.corba.client.naming:com.ibm.ws.naming') to session
    [1305] Copying unknown Client property (jbo.applicationmoduleclassname='oracle.documaker.idocumaker.model.shared.app.IDMKRAppModuleAM') to session
    [1306] Copying unknown Client property (name='IDMKRAppModuleAMLocal') to session
    [1307] Copying unknown Client property (ApplicationName='oracle.documaker.idocumaker.model.shared.app.IDMKRAppModuleAM') to session
    [1308] Copying unknown Client property (JDBCDataSource='jdbc/xxxxxxx') to session
    [1309] Copying unknown Client property (java.naming.provider.url='corbaloc:rir:/NameServiceServerRoot') to session
    [1310] Copying unknown Client property (DBconnection='jdbc/xxxxxx') to session
    [1311] }} finished loading BC4J properties

  • Does JNDI always return the same DataSource reference for a connection pool

    Hi,
    In my project, I have a class called DBConnect which has a method called
    getConnection(). This method returns a data base Connection object from the
    pool. I am doing this to avoid replicating code.
    Here, each time a database connection is required this method looks up for
    the pool using JNDI , gets the DataSource and then gets the data base
    connection.
    What I want to know is that, can I get this DataSource reference only once,
    store it in an instance variable and use the same value for getting the
    connections when ever needed. This wud reduce the overhead of making the
    lookup each time.
    but wud this lead to probs. is there a threat of having a stale reference.
    Or is there a better way to do this.
    Thanks,
    Manohar

    Hello,
    In our EJBs, we successfully cache the DataSource object as an instance
    variable. Since bean access is synchronized, the concurrency issue Jeff
    Wang mentioned is dealt with.
    Eron
    "Manohar" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    In my project, I have a class called DBConnect which has a method called
    getConnection(). This method returns a data base Connection object fromthe
    pool. I am doing this to avoid replicating code.
    Here, each time a database connection is required this method looks up for
    the pool using JNDI , gets the DataSource and then gets the data base
    connection.
    What I want to know is that, can I get this DataSource reference onlyonce,
    store it in an instance variable and use the same value for getting the
    connections when ever needed. This wud reduce the overhead of making the
    lookup each time.
    but wud this lead to probs. is there a threat of having a stalereference.
    >
    Or is there a better way to do this.
    Thanks,
    Manohar

Maybe you are looking for

  • Calling ID to PSTN with CME vs Ericsson MD110 and E1

    Hi all, We are having problems with calling party identification in the following scenario: some IP phones managed by a 2800 CME router. This is connected to an Ericsson MD110 PBX through a E1 with QSIG signalling. There is absolutely no problem when

  • My itunes apps are not doing the sync into my iphone

    My itunes apps are not doing the sync into my iphone, what can i do?

  • GRC and New General Ledger

    Hi, I have one very general question, which is not related to any specific SAP GRC product. Do you see any connection between the SAP GRC products (e.g. Access Enforcer, Risk Management etc) and the "New General Ledger"? Are there any risk and compli

  • Spell Check in Photoshop CS5

    When I use the spell checker in Photoshop CS5 to check a text layer (in English), all I ever get is a message saying "Spell check complete" -- never any evidence of any errors being detected. It would be nice to think I'm a perfect speller, but the r

  • Which 10g release supports Solaris x86 version 10?

    Hi, I downloaded Oracle 10.1.0.3 for Solaris x86. When I installed it, I got error, saying I can only install this version on Solaris 9 x86. Do you have any idea which Oracle 10g version supports Solaris x86 version 10? Thanks L