[jboss-user] [Messaging, JMS JBossMQ] - Exception occurs even when connection exists
Sir, I have a JMS application running in Tomcat. I have timer task which will retrieve messages from JBossMQ Queue When I stop the JBoss,the JMS application throws the Exception in the following code snippet message = (TextMessage)messenger.receiveNoWait( destination ); Cannot subscribe to this Destination: Client is not connected; - nested throwabl e: (java.io.IOException: Client is not connected) org.jboss.mq.SpyJMSException: Cannot subscribe to this Destination: Client is no t connected; - nested throwable: (java.io.IOException: Client is not connected) at org.jboss.mq.Connection.addConsumer(Connection.java:1094) at org.jboss.mq.SpySession.addConsumer(SpySession.java:753) at org.jboss.mq.SpyQueueSession.createReceiver(SpyQueueSession.java:105) at org.apache.commons.messenger.MessengerSupport.createMessageConsumer(M essengerSupport.java:909) at org.apache.commons.messenger.MessengerSupport.getMessageConsumer(Mess engerSupport.java:871) at org.apache.commons.messenger.MessengerSupport.receiveNoWait(Messenger Support.java:285) at org.amma.atech.hmos.sms.JMSResponseHandler.run(JMSResponseHandler.jav a:81) at java.util.TimerThread.mainLoop(Timer.java:432) at java.util.TimerThread.run(Timer.java:382) Caused by: java.io.IOException: Client is not connected at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager. java:225) at org.jboss.mq.il.uil2.SocketManager.sendMessage(SocketManager.java:189 ) at org.jboss.mq.il.uil2.UILServerIL.subscribe(UILServerIL.java:463) at org.jboss.mq.Connection.addConsumer(Connection.java:1082) ... 8 more I have caught the Exception and written code to reconnect to the Application Server. But Still it is throwing the Same Exception .But it doesn't throw any exception while connecting to the server and looking up the destination. If any body Knows the Solution,please help me.. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4083776#4083776 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083776 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Removing a message from the queue
Sir, I have a JMS client written using Apache Common Messanger APIs. I have configured the messenger to create a session which is not transacted and the Acknowledgement mode as AUTO_ACKNOWLEDGE This jms client program is running as a Timer Task [executing every 1 minute].But it is always getting the same message from the queue.ie..,Getting already received messages. So My question is Is there any way to delete a message from the queue up on receive of it at the very first time? would indeed appreciate help on this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064958#4064958 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064958 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - javax.naming.CommunicationException
sir, I got the javax.naming.CommunicationException when I started writing my first JMS program. The code snippet is given below Properties properties = new Properties(); properties.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); properties.put(Context.PROVIDER_URL, jnp://192.168.17.101:1099); InitialContext jndiContext = new InitialContext(properties); TopicConnectionFactory conFactory = (TopicConnectionFactory)jndiContext.lookup(TopicConnectionFactory); Error is there in JNDI lookup operation Error Message Exception in thread main javax.naming.CommunicationException: Receive timed ou t [Root exception is java.net.SocketTimeoutException: Receive timed out] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:12 80) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1360) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:575) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568) at javax.naming.InitialContext.lookup(InitialContext.java:347) at Client.main(Client.java:27) Caused by: java.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive(Native Method) at java.net.DatagramSocket.receive(DatagramSocket.java:711) at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:12 50) ... 5 more would you please help me in correcting this error. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4055932#4055932 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055932 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.CommunicationException
I understood the problem.JBoss serever was down View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4055988#4055988 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055988 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - javax.naming.CommunicationException
sir, I got the javax.naming.CommunicationException when I started writing my first JMS program. The code snippet is given below Properties properties = new Properties(); properties.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); properties.put(Context.PROVIDER_URL, jnp://192.168.17.101:1099); InitialContext jndiContext = new InitialContext(properties); TopicConnectionFactory conFactory = (TopicConnectionFactory)jndiContext.lookup(TopicConnectionFactory); Error is there in JNDI lookup operation . If the client is there on the same machine it works fine.But if the client is Remote,it is showing the following error message Error Message Exception in thread main javax.naming.CommunicationException: Receive timed ou t [Root exception is java.net.SocketTimeoutException: Receive timed out] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:12 80) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1360) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:575) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568) at javax.naming.InitialContext.lookup(InitialContext.java:347) at Client.main(Client.java:27) Caused by: java.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive(Native Method) at java.net.DatagramSocket.receive(DatagramSocket.java:711) at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:12 50) ... 5 more would you please help me in correcting this error. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4056018#4056018 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4056018 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - JMS client running in Tomcat
sir, Does a web application running in a Tomcat container can consume a message from a remote destination created using JBossMQ[say it is in a different machine] ? would you please give some detailed information to quell my ignorance Would indeed appreciate help on this View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4055126#4055126 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055126 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Message Bridge Configuration
sir, I am new to JBoss.I want to configure a message Bridge which consumes messages from a source queue , and send them to target queue , typically on a different server. Here I am using JBossMQ as the JMS provider. can any one suggest me few URLs which can solve my problem. I have the solution if I use Jboss Messaging as the JMS provider But i need it to use JBossMQ would indeed appreciate help on this View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054729#4054729 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054729 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user