JMS Section Index | Page 5
How should I take care of issues like security while implementing a QueueConnectionFactory and other administered objects in JMS?
JMS does not define a security API. JMS implementations provide vendor-specific security facilities, typically, through a text-oriented console or a graphical browser/console.
For this reason, (d...more
Is there a way of setting up JMS for secure communications? Essentially, I want to be able to restrict topics to authorized users only.
JMS implementations typically provide a text-based console and/or graphical browser for setting the security for each topic and queue, including access lists. JMS clients can read and process a u...more
Where can I find the API documentation for Java Messaging Service (JMS)?
The JMS API documentation is available from Sun's
J2EE API documentation page.
When there is an asynchronous listener on a JMS queue, a new thread is spawned to handle each new message being passed to the queue.
When there is an asynchronous listener on a JMS queue, a new thread is spawned to handle each new message being passed to the queue. If the message processing takes time, and a large number of
mes...more
Are there any open-source JMS implementations?
Open Source JMS implementations include:
spyderMQ, which is part of the jBoss project - http://www.jboss.org/
and
OpenJMS, which is sposored by intalio - http://www.openjms.org/more
Is there a way to have mutiple instances of the consumer running on different server instances read from the same queue and ensure that each message is processed by one and only one of the consumers. I'd like to do this to spread the load over the various machines.
JMS specifically does not define how messages delivered to a queue are load balanced across multiple consumers. It does not define an optional mechanism for doing this.
The reason it does not is...more
Consider two processes A and B. A wants to send a message to B's queue and A wants B to reply to A's message. For example, A sends to queue 'Consumer' that B creates, and B sends the reply to A's 'Producer' queue. How would the clients implement this scenario?
First,client 'B' cannot create a queue 'Consumer'. This is an administration task, performed by administration tools. If the queue exists, 'B' can look up the queue and can create a QueueReceive...more
How do you bind a queue to a context for subsequent applications to look up? If queues are created in the context of a session, how can they be used by another session?
A client cannot create a queue, except temporary queues. If your question refers to the createQueue() method of a QueueSession, the JMS 1.0.2 specification states, that this method is not to creat...more
In a system where one client sends a message to one specific peer out of thousands, is it appropriate to use a single queue and have the peers find their messages using selectors?
This is one possibility, but very slow, I think. Every message has to pass every receiver to check if the specific message selector does match. Also, not every vendor supports multiple receivers ...more
Does the J2EE reference implementation support the JMS?
The current release of J2EE (1.2.1) support EJB 1.1 specification so it doesn't implements JMS over EJB.
This kind of EJB appears only in the EJB 2.0 specifications (available at http://java.sun....more
OK, so EJB doesn't support user-created threads. So how do I perform tasks asynchronously?
If your EJB does not need to know about the results of the aynch calls, then you can use JMS to send an asynch. message to another part of the system.
Another alternative is to place the multithr...more
Are there any JNDI tutorials?
Yes, check out
The JNDI Tutorial online and/or buy a copy of it
here.
more
What books cover JNDI (Java Naming and Directory Interface)?
Check out
The JNDI Tutorial. It's also available on the
web.
For other books that are relevant to JNDI, check out
Are ther any books that provide decent JNDI coverage?.
more
I am quite new in JMS and would like to try it out. Can you please suggest any complementary software?
See the Vendors' page at the JMS site at Sun.
Has JMS replaced Java Message Queue? More importantly, which technology should a developer be using?
JMQ does not replace JMS; JMQ is an implementation of the JMS specification. JMQ is now sold as Sun Microsystems software. JMQ is only one of several JMS implementations. Enterprises shouldn't ...more