Re: JMS tutorial using ActiveMQ ,Tomcat and Axis

2006-05-01 Thread James Strachan

On 4/29/06, yashhnb <[EMAIL PROTECTED]> wrote:


Hi Thanks for kind help.

now i can start do develope how message send and receive.

but some times i have got error message when i run console base producer and
consumer

[java] WARN  ActiveMQConnection - Cleanup failed
 [java] org.apache.activemq.ConnectionClosedException: The connection is
already closed


The exception tells you whats actually happening. The transport thread
is trying to close itself down after an exception has occurred but
another thread (probably your program) has already closed the
connection.

James



 [java] at
org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1030)
 [java] at
org.apache.activemq.ActiveMQConnection.cleanup(ActiveMQConnection.java:1191)
 [java] at
org.apache.activemq.ActiveMQConnection.transportFailed(ActiveMQConnection.java:1585)
 [java] at
org.apache.activemq.ActiveMQConnection.onException(ActiveMQConnection.java:1338)
 [java] at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:102)
 [java] at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:102)
 [java] at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:102)
 [java] at
org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:90)
 [java] at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:149)
 [java] at java.lang.Thread.run(Thread.java:595)

can you help me ?

thanks

--
View this message in context: 
http://www.nabble.com/JMS-tutorial-using-ActiveMQ-%2CTomcat-and-Axis-t1525151.html#a4151737
Sent from the ActiveMQ - Dev forum at Nabble.com.





--

James
---
http://radio.weblogs.com/0112098/


Re: JMS tutorial using ActiveMQ ,Tomcat and Axis

2006-04-28 Thread -=Kobye=-

[java] WARN  ActiveMQConnection - Cleanup failed
   [java] org.apache.activemq.ConnectionClosedException: The connection is
already closed

Maybe  two reason cause this.
1. your activemq is shutted down.
2.your code is error.
 If you used a cached connection,but it is closed now,and when you use
it,you do not make a check.
 I always use a new Connection,because I use it in schedule ,there is no
need for me to cache it.

 You should check your code.

 Best Wishes.
--
I love Java!
I love Sports!
I love this Game !

home:http://www.jsports.org
blog:
   http://blog.csdn.net/jsports
   http://blog.matrix.org.cn/page/jsports


Re: JMS tutorial using ActiveMQ ,Tomcat and Axis

2006-04-28 Thread yashhnb

Hi Thanks for kind help.

now i can start do develope how message send and receive.

but some times i have got error message when i run console base producer and
consumer

[java] WARN  ActiveMQConnection - Cleanup failed
 [java] org.apache.activemq.ConnectionClosedException: The connection is
already closed
 [java] at
org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1030)
 [java] at
org.apache.activemq.ActiveMQConnection.cleanup(ActiveMQConnection.java:1191)
 [java] at
org.apache.activemq.ActiveMQConnection.transportFailed(ActiveMQConnection.java:1585)
 [java] at
org.apache.activemq.ActiveMQConnection.onException(ActiveMQConnection.java:1338)
 [java] at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:102)
 [java] at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:102)
 [java] at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:102)
 [java] at
org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:90)
 [java] at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:149)
 [java] at java.lang.Thread.run(Thread.java:595)

can you help me ?

thanks 
 
--
View this message in context: 
http://www.nabble.com/JMS-tutorial-using-ActiveMQ-%2CTomcat-and-Axis-t1525151.html#a4151737
Sent from the ActiveMQ - Dev forum at Nabble.com.



Re: JMS tutorial using ActiveMQ ,Tomcat and Axis

2006-04-28 Thread -=Kobye=-

hi,
   I am Chinese,and part of my website write in Chinese.

   The following url  you can see ActiveMQ forum.
http://www.jsports.org/index.html?ctrl:cmd=nav&ctrl:windowstate=maximized&ctrl:window=default.forums.ForumsPortletWindow
   The code written in english you can read it.
--
I love Java!
I love Sports!
I love this Game !

home:http://www.jsports.org
blog:
   http://blog.csdn.net/jsports
   http://blog.matrix.org.cn/page/jsports


Re: JMS tutorial using ActiveMQ ,Tomcat and Axis

2006-04-28 Thread -=Kobye=-

hi,
you can go to my web site http://ww.jsports.org

In my web site forum(ActiveMQ),I write two article about how to use activemq
in servlet.
I think,if you can use it in servlet,you will be able to use it anywhere.


--
I love Java!
I love Sports!
I love this Game !

home:http://www.jsports.org
blog:
   http://blog.csdn.net/jsports
   http://blog.matrix.org.cn/page/jsports


JMS tutorial using ActiveMQ ,Tomcat and Axis

2006-04-28 Thread yashhnb

Hi i have to develope an appliction using ActiveMQ .
i have successfuly run the ActiveMQ example consumer and producer by using
Ant.
how i develope a JMS System which post Hello message and subscribe got this
message in java plateform

if anyone can help me its great.

thanks 
--
View this message in context: 
http://www.nabble.com/JMS-tutorial-using-ActiveMQ-%2CTomcat-and-Axis-t1525151.html#a4142226
Sent from the ActiveMQ - Dev forum at Nabble.com.