1 Reply Latest reply on Mar 25, 2004 5:40 PM by Elias Ross

    performance hints when all jms traffic is within the contain

    Brian Tarbox Newbie

      If all of my jms publishers and subscribers are beans running within my container (and so, within the same jvm), are there options I can select to increase performance? I'm specifically thinking about avoiding things like serialization.

      Thank you.

      Brian Tarbox

        • 1. Re: performance hints when all jms traffic is within the con
          Elias Ross Master


          Remember to use the JVM Connection Factory "java:/ConnectionFactory" in JNDI.

          JBoss has to use serialization internally to "copy" the message to the receiver. There is no spec-compliant way to deliver the same object instance to your receiver that was sent. JBoss uses ObjectOutputStream and ObjectInputStream to clone the message.

          If you want to help performance a bit, you can turn off persistence. JBoss also has to serialize the message once to persist the message to disk.