2 Replies Latest reply: Sep 5, 2014 4:16 AM by jtyreman RSS

    BPEL Accessing Connection from another Java Class

    jtyreman

      Fairly complex scenario, (11.1.1.7)

       

      We have some embedded java in our BPEL process which does the following:

       

          String host = "####";
            int port = #####;
            String db = "###";
            String user = "t####";
            String account = "######";
            String[] result;
            RSCConnection reality= null;
      
      
            try
            {
      
      
          
          reality = new RSCConnection(host, port, db, user, account);
         reality.connect();
      
      

       

      This connection is then passed into another class:

       

      Sample sam = new Sample(reality);
      
      

       

       

      This is fine however we dont want each instance to create a connection each time, instead we want all instances to access the same connection.

       

      Can anyone tell me how this is possible.

       

      The type of connection is JDBC but is not a generic data source connection....


      Thanks