[
http://jira.jboss.com/jira/browse/JBESB-736?page=all ]
Mark Little reassigned JBESB-736:
---------------------------------
Assignee: Bruno Georges (was: Mark Little)
ReceiveJMSMessage class is confusing and partly buggy
-----------------------------------------------------
Key: JBESB-736
URL:
http://jira.jboss.com/jira/browse/JBESB-736
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Examples
Affects Versions: 4.2 Milestone Release 3
Reporter: Jiri Pechanec
Assigned To: Bruno Georges
Priority: Optional
The class used in samples for reading JMS messages from the queue is confusing and partly
buggy. The class repeatedly reads from the queue directly and repeatedly sets up own
listener. Also it creates an infinite number of sessions that are not closed.
Recommended solution
In method main cut the call of method receive one from the infinite loop and put it
before the loop. Place a sleep method inside the infinite loop.
In that way both direct reading and listener pattern will be demonstrated. Initialization
of all resources will be executed only once.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira