jms « Session « Java Enterprise Q&A





1. JMS queue in Weblogic10 EJB2 session bean able to send but not to receive    stackoverflow.com

I try to receive a JMS message in an EJB2 (legacy sucks ;-) stateless session bean, in weblogic 10.0.1, with bean managed transactions. Queue definition from jms folder looks like

<uniform-distributed-queue name="ReqQueue">
 ...

2. Using a JMS Session from different threads    stackoverflow.com

From the javadoc for Session it states:

A Session object is a single-threaded context for producing and consuming messages.
So I understand that you shouldn't use a Session object ...

3. Should a JMS application create a new session for every message that it sends?    stackoverflow.com

Should a JMS application create a new session for every message that it sends or is it preferable to create a session for a long message sequence?

4. What is the purpose of a JMS session?    stackoverflow.com

What is the purpose of a JMS session? Why isn't a connection alone sufficient to exchange JMS messages between senders and receivers?

5. JMS Message.acknowledge() on Session.AUTO_ACKNOWLEDGE    stackoverflow.com

What happens in TIBCO when Message.acknowledge() is invoked in a session with AUTO_ACKNOWLEDGE mode? I mean is this call ignored on client-side? or server-side? or does server perform any action on this ...

6. How to receive from a queue and publish it into a topic?    stackoverflow.com

I am trying to receive a message from a queue and publish it into a topic. I have a QueueSession instance but it cannot be used to create a topic. If ...

7. JMS application client can create more than one active sessions while web/ejb components cannot?    stackoverflow.com

I am reading the JEE5 tutorial for JMS. And I am having a hard time understanding the reason for this 'general rule':

A general rule in the Java EE ...

8. Why QueueSession can create only one receiver in JMS?    stackoverflow.com

I can make some senders to send some messages, but when I create two receivers in one Session, the first one works and the second one blocked. In debug, I see ...

9. JMS Session and commit    stackoverflow.com

I am new JMS arena, I have created multiple message listeners but one listener per thread. I have following message listener, This message listner is passed a session object while it ...





10. Implementing ActiveMQ's sticky sessions (message groups) in JMS queues    stackoverflow.com

I'm trying to move off of ActiveMQ but one feature we'd like to keep is the message group. By adding a session ID to the JMS header ActiveMQ will route all ...

11. about Session.rollBack() in JMS    stackoverflow.com

All, i am new to JMS and i have a question about Session.rollBack() method in JMS. AFAIK, this method is used to roll back all operations to JMS server ...

12. JMS - setting messages in session    stackoverflow.com

While sending email messages through JMS, is it necessary to always put your messages in a session (while sending and receving both). What if I simply save the message xml in ...

13. Is javax.jms.Session threadsafe?    coderanch.com

JMS1.1 Specs, section 2.8 says that Session are not suitable to be used by concurrent threads. Following is the reason (as quoted from the spec) There are two reasons for restricting concurrent access to Sessions. First, Sessions are the JMS entity that supports transactions. It is very difficult to implement transactions that are multithreaded. Second, Sessions support asynchronous message consumption. It ...

14. Significance of acknowledgement mode when creating JMS session    coderanch.com

Hi: I am pretty sure I know what the answer is but I would like to have a confirmation. When creating a JMS session for the purpose of using the session to create message producer: is there any significance of specifying what the acknowledgment mode should be? My understanding is that the message is stored by JMS provider upon exit from ...