commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ozeigerm...@apache.org
Subject cvs commit: jakarta-commons-sandbox/transaction/src/java/org/apache/commons/transaction/memory/jca MapManagedConnectionFactory.java MapManagedConnection.java
Date Tue, 25 May 2004 15:43:02 GMT
ozeigermann    2004/05/25 08:43:02

  Modified:    transaction/src/java/org/apache/commons/transaction/memory/jca
                        MapManagedConnectionFactory.java
                        MapManagedConnection.java
  Log:
  Fixed managed connection init
  
  Revision  Changes    Path
  1.2       +3 -3      jakarta-commons-sandbox/transaction/src/java/org/apache/commons/transaction/memory/jca/MapManagedConnectionFactory.java
  
  Index: MapManagedConnectionFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/transaction/src/java/org/apache/commons/transaction/memory/jca/MapManagedConnectionFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MapManagedConnectionFactory.java	25 May 2004 14:28:49 -0000	1.1
  +++ MapManagedConnectionFactory.java	25 May 2004 15:43:02 -0000	1.2
  @@ -69,7 +69,7 @@
           ConnectionRequestInfo cxRequestInfo)
           throws ResourceException {
   
  -        return new MapManagedConnection();
  +        return new MapManagedConnection(cxRequestInfo);
       }
   
       /**
  
  
  
  1.2       +11 -8     jakarta-commons-sandbox/transaction/src/java/org/apache/commons/transaction/memory/jca/MapManagedConnection.java
  
  Index: MapManagedConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/transaction/src/java/org/apache/commons/transaction/memory/jca/MapManagedConnection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MapManagedConnection.java	25 May 2004 14:28:49 -0000	1.1
  +++ MapManagedConnection.java	25 May 2004 15:43:02 -0000	1.2
  @@ -57,6 +57,15 @@
       protected List listeners = new ArrayList();
       protected PrintWriter out;
   
  +    public MapManagedConnection(ConnectionRequestInfo cxRequestInfo) {
  +        name = ((MapConnectionSpec) cxRequestInfo).getName();
  +
  +        map = MemoryMapResourceManager.getInstance().lookup(name);
  +        xares = new MapXAResource(map);
  +        tx = new MapLocalTransaction(map);
  +
  +    }
  +
       Map getMap() {
           return map;
       }
  @@ -74,12 +83,6 @@
        * @see ManagedConnection#getConnection(Subject, ConnectionRequestInfo)
        */
       public Object getConnection(Subject subject, ConnectionRequestInfo cxRequestInfo) throws
ResourceException {
  -
  -        name = ((MapConnectionSpec) cxRequestInfo).getName();
  -
  -        map = MemoryMapResourceManager.getInstance().lookup(name);
  -        xares = new MapXAResource(map);
  -        tx = new MapLocalTransaction(map);
   
           if (connection == null) {
               connection = new MapConnection(this);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message