title: Commit while Open new Transaction within Transaction
body: <p>Using Ejb3.0, Weblogic 11g, JDBC</p>
  
  <p>I am invoking a method which is running remotely in another deployment EAR.</p>
  
  <p>The method in the remote deployment being invoked but it's annotated with the 
  <code>@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)</code></p>
  
  <p>the problem is that all the logic I do in the database before the remote method is being invoked wont commit till the remote method finished.</p>
  
  <p>What I willing to do is a commit to let the "before" logic take place" and when I get back after the remote call to continue normally.</p>
  
  <p>Any idea?</p>
  
  <p>Some code to explain:</p>
  
  <pre><code>@CallByReference
  @Stateless(mappedName = "ejb/OperatorProccessBean")
  @Local({ OperatorProccessBeanLocal.class })
  @Remote({ OperatorProccessBeanRemote.class })
  public class OperatorProccessBean implements OperatorProccessBeanLocal,  
   OperatorProccessBeanRemote
  {   
  
  ...
  
     SBNDispatchBeanRemote SBNDispatchBean = (SBNDispatchBeanRemote) context.lookup("ejb/SBNDispatchBean#com.mirs.sbn.dispatch.SBNDispatchBeanRemote");
      if (SBNDispatchBean == null)
      {
              logger.error(TAG + " SBNDispatchBean is null");
  
      }
      else
      {
           //until here I want all my data to be commited without waiting for the upcoming remote method to finish
           SBNDispatchBean.updateSubscriberInBlockingList(...);
      }
  ...
   }
  </code></pre>
  
  <p>Now the method <code>updateSubscriberInBlockingList()</code> is annotated with   </p>
  
  <p><code>@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)</code></p>
  
  <p>i want the data to be commited before that method being invoked.</p>
  
  <p>Thanks in advance,
  ray.</p>