Hauer,
This is the code that is executing on each request. At this point in time, we haven't
even began caching off the context and such. One thing that I did notice, is that we
are binding the clients to one port using the org.jboss.mq.il.uil2.localAddr and
org.jboss.mq.il.uil2.localPort system properites from the client side. I am not sure
if this would make a difference, since we are doing this for uil as well. I haven't
had a chance to test taking these properties out. I believe we were originally
setting these when trying to get through our firewall.
InitialContext iniCtx = new InitialContext( env );
QueueConnectionFactory qcf = (QueueConnectionFactory)
iniCtx.lookup( QUEUE_CONNECTION_FACTORY );
QueueConnection conn =
qcf.createQueueConnection(USERID,PASSWORD);
Queue que = (Queue) iniCtx.lookup(EVENT_QUEUE);
QueueSession session = conn.createQueueSession(false,
QueueSession.AUTO_ACKNOWLEDGE);
conn.start();
QueueSender send = session.createSender(que);
ObjectMessage om = session.createObjectMessage( message );
om.setStringProperty ("MessageType", messageType );
send.send(om);
send.close();
conn.stop();
session.close();
conn.close();
Thanks,
Billy
-----Original Message-----
From: Sebastian Hauer [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:23 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JMS behind a firewall.
Hi William,
> connection after sending the message. When we use the UIL
> invocation layer, the exception does not occur. The client
> is a servlet that establishes a connection each time, sends a
> message then closes out the connection. Are clients only
> allowed to establish one connection with the UIL2 layer?
>
> - Destroying failedjavax.jms.JMSException: The destination
> is being used.
> at
> org.jboss.mq.server.JMSDestinationManager.closeDestination(JMS
> DestinationManager.java:804)
> at
> org.jboss.mq.server.jmx.DestinationMBeanSupport.destroyService
> (DestinationMBeanSupport.java:122)
Not that I know of, you should be able to open as may connection as you
want.
Can you show some code how you open and use the connection?
Regards,
Sebastian
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user