djencks     2004/07/18 18:32:19

  Modified:    modules/core/src/java/org/openejb/assembler
                        ContainerBuilder.java
  Log:

  Add timer support to session and mdbs. (entities still todo). Adapt to 
TransactionContextManager. Adapt to deploying with external plan.
  
  Revision  Changes    Path
  1.8       +4 -4      
openejb/modules/core/src/java/org/openejb/assembler/ContainerBuilder.java
  
  Index: ContainerBuilder.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/assembler/ContainerBuilder.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ContainerBuilder.java     16 Apr 2004 02:34:05 -0000      1.7
  +++ ContainerBuilder.java     18 Jul 2004 22:32:19 -0000      1.8
  @@ -301,7 +301,7 @@
           builder.setHomeInterfaceName(deploymentInfo.getHomeInterface().getName());

           
builder.setRemoteInterfaceName(deploymentInfo.getRemoteInterface().getName());

           builder.setTransactionPolicySource(new 
DeploymentInfoTxPolicySource(deploymentInfo));

  -        builder.setTransactionManager(OpenEJB.getTransactionManager());

  +        
builder.setTransactionContextManager(null);//OpenEJB.getTransactionManager());

   

           UserTransactionImpl userTransaction = new UserTransactionImpl();

           if (deploymentInfo.isBeanManagedTransaction()) {

  @@ -322,7 +322,7 @@
           builder.setHomeInterfaceName(deploymentInfo.getHomeInterface().getName());

           
builder.setRemoteInterfaceName(deploymentInfo.getRemoteInterface().getName());

           builder.setTransactionPolicySource(new 
DeploymentInfoTxPolicySource(deploymentInfo));

  -        builder.setTransactionManager(OpenEJB.getTransactionManager());

  +        
builder.setTransactionContextManager(null);//OpenEJB.getTransactionManager());

   

           UserTransactionImpl userTransaction = new UserTransactionImpl();

           if (deploymentInfo.isBeanManagedTransaction()) {

  @@ -345,7 +345,7 @@
           
builder.setPrimaryKeyClassName(deploymentInfo.getPrimaryKeyClass().getName());

           builder.setComponentContext(new 
ReadOnlyContextWrapper(deploymentInfo.getJndiEnc(), null));

           builder.setTransactionPolicySource(new 
DeploymentInfoTxPolicySource(deploymentInfo));

  -        builder.setTransactionManager(OpenEJB.getTransactionManager());

  +        
builder.setTransactionContextManager(null);//OpenEJB.getTransactionManager());

           builder.setJndiNames(new 
String[]{deploymentInfo.getDeploymentID().toString()});

           return (GenericEJBContainer) builder.createContainer();

       }

  
  
  

Reply via email to