Re: Unable to create MessageProducer

2007-11-13 Thread jack
Hi: Thank you very much! I have solved the problem. The reason is that I didn't convert the object to primitive type. Now I have converted the object to byte[].It's OK. 2007/11/13, jack <[EMAIL PROTECTED]>: > > > *I have read your letter, but I have create a MessageProducer, please look > at th

Re: Unable to create MessageProducer

2007-11-13 Thread jack
*I have read your letter, but I have create a MessageProducer, please look at the code below, and I have use Spring2.0* ** ** public class OrderMessageProducer { *private JmsTemplate template;* private Queue destination; public void setTemplate(JmsTemplate template) { this.template = templ

Re: Unable to create MessageProducer

2007-11-13 Thread James Strachan
failover is just used by the brokerURL property of the connection factory. Btw session and producers are cheap objects to keep around they are just a bit slow to create on demand. For sending the PooledConnectionFactory should help On 12/11/2007, TOPPER_HARLEY <[EMAIL PROTECTED]> wrote: > > >"Its

Re: Unable to create MessageProducer

2007-11-12 Thread TOPPER_HARLEY
>"Its normally a glitch in the network - or that the broker died." : I'm pretty sure the broker was OK since a new client could get a connection & session and create a temp queue. I previously registered another query ( http://www.nabble.com/Temp-queue-deleted-when-thread-interrupted-tf4393533s23

Re: Unable to create MessageProducer

2007-11-12 Thread James Strachan
On 12/11/2007, TOPPER_HARLEY <[EMAIL PROTECTED]> wrote: > >"It could just be the socket has been dropped.": > Is socket dropping a common occurence or simply related to the quality of > the network one is running on (my TCP level knowledge isn't great). Its normally a glitch in the network - or th

Re: Unable to create MessageProducer

2007-11-12 Thread TOPPER_HARLEY
>"It could just be the socket has been dropped.": Is socket dropping a common occurence or simply related to the quality of the network one is running on (my TCP level knowledge isn't great). Would vm: style for the brokerURL prevent this since it would be insice JVM? This is our setup: We have a

Re: Unable to create MessageProducer

2007-11-12 Thread James Strachan
Without more information on how you are using the JMS client its hard to know really. It could just be the socket has been dropped. You night wanna enable failover... http://activemq.apache.org/how-can-i-support-auto-reconnection.html On 10/11/2007, TOPPER_HARLEY <[EMAIL PROTECTED]> wrote: > > Hi