User: chirino 
  Date: 01/06/23 19:15:12

  Modified:    src/main/org/jbossmq/server StartServer.java
  Log:
  Noticed that I did not have to bind the INVM il with a NonSerializableFactory
  if I placed the IL in the java:/ JNDI context.
  I also adjusted the dist/client so it contains all the jars needed by a client.
  
  Revision  Changes    Path
  1.7       +4 -16     jbossmq/src/main/org/jbossmq/server/StartServer.java
  
  Index: StartServer.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmq/src/main/org/jbossmq/server/StartServer.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- StartServer.java  2001/06/22 04:04:43     1.6
  +++ StartServer.java  2001/06/24 02:15:12     1.7
  @@ -50,7 +50,7 @@
    *   @author Vincent Sheffer ([EMAIL PROTECTED])
    *   @author Hiram Chirino ([EMAIL PROTECTED])
    *
  - *   @version $Revision: 1.6 $
  + *   @version $Revision: 1.7 $
    */
   public class StartServer implements Runnable
   {
  @@ -235,22 +235,10 @@
                                
registerService(invocationLayerFactory.distributedConnectionFactory,
                                new 
ObjectName("JMS:service=DistributedConnectionFactory,type="+name));
   
  -                             //(re)bind the connection factories in the JNDI 
namespace
  -                             try {
  -                                     
ctx.rebind(topicConnectionFactoryJNDI,invocationLayerFactory.spyTopicConnectionFactory);
  -                                     
ctx.rebind(queueConnectionFactoryJNDI,invocationLayerFactory.spyQueueConnectionFactory);
  -                                     
ctx.rebind(xaTopicConnectionFactoryJNDI,invocationLayerFactory.spyXATopicConnectionFactory);
  -                                     
ctx.rebind(xaQueueConnectionFactoryJNDI,invocationLayerFactory.spyXAQueueConnectionFactory);
  -
  -                             // If the object could not be stored, it could be 
because it is only meant to
  -                             // be used for intra JVM usage...  Lets try to bind it 
using 
  -                             } catch ( javax.naming.CommunicationException ignore ) 
{
  -                                 // Try to store factorys as NonSerializable 
objects.
  -                                     
NonSerializableFactory.rebind(ctx,topicConnectionFactoryJNDI,invocationLayerFactory.spyTopicConnectionFactory);
  -                                     
NonSerializableFactory.rebind(ctx,queueConnectionFactoryJNDI,invocationLayerFactory.spyQueueConnectionFactory);
  -                                     
NonSerializableFactory.rebind(ctx,xaTopicConnectionFactoryJNDI,invocationLayerFactory.spyXATopicConnectionFactory);
  -                                     
NonSerializableFactory.rebind(ctx,xaQueueConnectionFactoryJNDI,invocationLayerFactory.spyXAQueueConnectionFactory);
  -                             }
  +                             
ctx.rebind(topicConnectionFactoryJNDI,invocationLayerFactory.spyTopicConnectionFactory);
  +                             
ctx.rebind(queueConnectionFactoryJNDI,invocationLayerFactory.spyQueueConnectionFactory);
  +                             
ctx.rebind(xaTopicConnectionFactoryJNDI,invocationLayerFactory.spyXATopicConnectionFactory);
  +                             
ctx.rebind(xaQueueConnectionFactoryJNDI,invocationLayerFactory.spyXAQueueConnectionFactory);
   
                        }
   
  
  
  

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

Reply via email to