JMS Section Index | Page 6
Is there a way for a consumer in JMS to automatically send an acknowledgement message to a producer (not only to the server) to notify the reception of a message?
There is no portable, automatic mechanism for a consumer to acknowledge message receipt with the producer. Providing such a mechanism is actually quite difficult because of factors such as time-o...more
In a publish/subscribe model, how do you go about having one class be a listener for more than one topic? It seems logical to just create a TopicSubscriber for each topic you want to listen to. If so, should each TopicSubscriber be created under the same session or different sessions? Is there some rule of thumb to follow or does it not make a difference?
Any time that multiple destinations are involved, for example, subscriptions to multiple topics, the preferred approach (in my opinion) is to design a separate class (either inner or conventional,...more
Is it possible to communicate between different EJBs and between EJB and servlets through JMS? If so, how? Are there links to related references? Your help will be appreciated.
Communication between EJBs and servlets is very much possible. In fact, one of the advantages of JMS is that it can be used to link very different applications running on different environments o...more
Is there any reason why a message can't be sent to an applet via JMS?
No. It all boils down to the standard applet limitations and your chosen implementation of JMS.
An applet can connect only to the server it came from.
An applet could be on the wrong side of sev...more
How can JMS be used from EJB 1.1?
The same as any client would use JMS. At this point there is no integration, but it is planned for a future release of the EJB spec.
Is there an interface to Microsoft's MSMQ server from/to JMS and is there an interface from/to IBM's MQSeries?
Is there an interface to Microsoft's MSMQ server from/to
JMS and is there an interface from/to IBM's MQSeries?
Does the JMS specification require compatibility between JMS implementations, or will all parties involved have to use the same vendor?
The JMS specification, like many specifications, is an attempt to specify a software system with both core and optional functionality. As with many specifications, there are design and implementa...more
The JMS API describes the ConnectionFactory and TopicConnectionFactory.
The JMS API describes the ConnectionFactory and TopicConnectionFactory. These are also described as "administered'. In order to build an application using JMS, what do I start first and how?
Spe...more
Is there a mailing list for discussion of the JMS API?
Sun manages the JMS-INTEREST list. You can signup and read the archives at http://archives.java.sun.com/archives/jms-interest.html.more
Can a JMS client obtain a JTA UserTransaction object?
The JMS specification does not require that JMS implementations support distributed transactions. If a JMS implementation supports distributed transactions, it's likely that it will do so through...more
Can different threads manipulate the same transaction?
If thread t1 executes UserTransaction.begin() and thread t2 executes UserTransaction.commit(), UserTransaction.rollback(), or any other UserTransaction service, the behavior depends on the (EJB, J...more
How does a client application create a transaction object?
How you gain access to UserTransaction objects varies depending on the type of client. Enterprise JavaBeans provides two types of transaction management:
Container-managed transactions. As the ...more
Is an EJB, JMS, or general-purpose Java application server a transaction manager?
It depends on the server implementation. The JTA and JTS specifications define client-, application-, and transaction manager-level operations. There is nothing to prevent a Java application ser...more
Is it possible for server-side applications, for example, a JMS application, to play the role of a resource in a distributed transaction?
Under certain conditions, yes. In this particular case, the JMS server would have to implement the appropriate resource-related interfaces in javax.transaction.xa so that the JTS transaction mana...more
What are the ramifications of mixing JTA and non-JTA transactions where the same resources are involved?
It depends on the context/resource. In general, you shouldn't create this type of heterogeneous transaction scenario, especially when working through a Java application server that shares objects...more