Re: help
Tim Anderson <[email protected]> Fri, 23 Feb 2007 09:39:24 +1100
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Govinda Rao Deyyam wrote: Hi Tim, Many Thanks…its working now. I have added connection.start() method and it is working now. But still I am not clear on below questions How is the code working for ‘message sending’ with out this statement (connection.start()) ? Why do we need to invoke start() method on the connection for receiving only? See the javadoc for javax.jms.Connection: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Connection.html "When a connection is created, it is in stopped mode. That means that no messages are being delivered." "A message producer can send messages while a connection is stopped. Why doesn’t it require in case of earlier versions (in version 0.7.5), as I stated in my earlier mail my code is working without connection.start() statement for version 7.5, why? Not sure. I don't recall that being a bug in 0.7.5. I would appreciate if you could provide answers for the above questions. Thanks Govind ---------- From: openjms-user-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [ mailto:openjms-user-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org ] On Behalf Of Tim Anderson Sent: Wednesday, February 14, 2007 6:54 AM To: [email protected] Subject: Re: [openjms-user] help Have you invoked the start() method on the connection? -Tim Govinda Rao Deyyam wrote: Hello, My application is currently running on openjms0.7.5. I have to upgrade the server to 0.7.6.1 which is the latest released version found in openjms site. I have changed the database schema and necessary modifications. Problem: I could able to send the messages with my existing code but not able to receive messages. It always receives null. I have no idea what is wrong with my code. I have not done any code changes in my application except adding the new jars listed below openjms-0.7.6.1.jar openjms-client-0.7.6.1.jar jta-1.0.1.jar log4j-1.2.7.jar jms-1.0.2a.jar commons-logging-1.0.3.jar exolabcore-0.3.7.jar Any pointers what is wrong in this case? Thanks Govind ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ openjms-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openjms-user