10 Replies Latest reply on Dec 14, 2010 8:50 AM by jaikiran

    Exception while trying to rebind a temporary hornetq queue ..any solution

    srimanta.maji

      Dear All,

       

      I am using jboss 6 as messaging server and jms1.1 api to create a temporary queue and then rebind it.

      But it is generating exception like

       

      Exception in thread "main" javax.naming.NamingException: Failed to serialize object:HornetQTemporaryQueue[60b8ac20-1c9e-4fef-a17c-699cbc8b0573], org.hornetq.jms.client.HornetQSession
      at org.hornetq.jms.referenceable.SerializableObjectRefAddr.<init>(SerializableObjectRefAddr.java:63)
      at org.hornetq.jms.client.HornetQDestination.getReference(HornetQDestination.java:254)
      at org.jnp.interfaces.NamingContext.bind(NamingContext.java:619)
      at org.jnp.interfaces.NamingContext.bind(NamingContext.java:598)
      at javax.naming.InitialContext.bind(InitialContext.java:400)
      at com.sanzibb.jboss6.QueueExample.example(QueueExample.java:29)
      at com.sanzibb.jboss6.QueueExample.main(QueueExample.java:80)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      Please suggest me a better solution

       

      Thanks