User: mnf999  
  Date: 01/12/19 00:20:28

  Modified:    src/main/org/jboss/ejb/plugins/jms JMSContainerInvoker.java
  Log:
  
  
  Revision  Changes    Path
  1.37      +16 -9     
jboss/src/main/org/jboss/ejb/plugins/jms/JMSContainerInvoker.java
  
  Index: JMSContainerInvoker.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jms/JMSContainerInvoker.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- JMSContainerInvoker.java  2001/12/19 05:58:00     1.36
  +++ JMSContainerInvoker.java  2001/12/19 08:20:28     1.37
  @@ -51,15 +51,13 @@
   *
   * @author    <a href="mailto:[EMAIL PROTECTED]";>Peter Antman</a> .
   * @author    <a href="mailto:[EMAIL PROTECTED]";>Rickard Öberg</a>
  -* @author    <a href="mailto:[EMAIL PROTECTED]";>Sebastien Alborini </a>
  +* @author    <a href="mailto:[EMAIL PROTECTED]";>Sebastien Alborini
  +*      </a>
   * @author    <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
   * @author    <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
  -* @version   $Revision: 1.36 $
  -* <p><b>20011219 marc fleury</b>
  -* <ul>
  -* <li> use of the container invoker here is silly and a good example of why the 
proxy generation is not mixed with invokers now
  -*</ul>
  +* @version   $Revision: 1.37 $
   */
  +
   public class JMSContainerInvoker
   implements ContainerInvoker, XmlLoadable
   {
  @@ -199,12 +197,13 @@
      
      // ContainerInvoker implementation
      
  -   /**
  +/*
      * Gets the EJBHome attribute of the JMSContainerInvoker object
      *
      * @return   The EJBHome value
      */
      public Object getEJBHome()
  +
      {
         throw new Error("Not valid for MessageDriven beans");
      }
  @@ -237,6 +236,7 @@
      * @return    The EntityEJBObject value
      */
      public Object getEntityEJBObject(Object id)
  +
      {
         throw new Error("Not valid for MessageDriven beans");
      }
  @@ -249,17 +249,20 @@
      * @return    The StatefulSessionEJBObject value
      */
      public Object getStatefulSessionEJBObject(Object id)
  +
      {
         throw new Error("Not valid for MessageDriven beans");
      }
      
      /**
  +
      * Gets the StatelessSessionEJBObject attribute of the JMSContainerInvoker
      * object
      *
      * @return   The StatelessSessionEJBObject value
      */
      public Object getStatelessSessionEJBObject()
  +
      {
         throw new Error("Not valid for MessageDriven beans");
      }
  @@ -392,7 +395,7 @@
         {
            serverSessionPoolFactoryJNDI = "java:/" + serverSessionPoolFactoryJNDI;
         }
  -   
  +
      
      
      }
  @@ -404,15 +407,18 @@
      * @throws Exception  Failed to initalize.
      */
      public void create() throws Exception
  +
      {
         log.debug("initializing");
         
         // Set up Dead Letter Queue handler
         
         if (useDLQ) {
  +
            dlqHandler = new DLQHandler();
  -         dlqHandler.importXml(mdbConfig);
  +         dlqHandler.importXml(dlqConfig);
            dlqHandler.create();
  +
         }
         
         // Store TM reference locally - should we test for CMT Required
  @@ -584,9 +590,10 @@
         Object credential)
      throws Exception
      {
  +
         Invocation mi =
         new Invocation(id, m, args, tx, identity, credential);
  -      
  +
         // Set the right context classloader
         ClassLoader oldCl = Thread.currentThread().getContextClassLoader();
         Thread.currentThread().setContextClassLoader(container.getClassLoader());
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to