JMS Section Index | Page 4
Is it possible to acknowledge individual messages on a queue without affecting previously received, but as yet unacknowledged, messages?
If you acknowledge a message, all previously received messages will also be acknowledged. From the javax.jms.Message Javadoc, the acknowledge method will "Acknowledge this and all previous m...more
Encryption is not handled by the JMS specification. It is left to the JMS provider to implement and provide encryption and decryption of messages. These days, Progress Softwares SonicMQ is a...more
What is the relationship between types of the sent JMS messages and types of the received JMS messages? Can they be different types?
Theoretically, if you have a single JMS provider, there should be no difference in the message type (for both send and receive). If you have multiple JMS providers, and they are talking to each o...more
Middleware is usually something that sits between a client and a server. Or, in simpler terms, between a requestor and a requestee. A request can be considered as a message. Different software...more
Are there any JMS implementations that utilize email under the covers for interclient communication?
I'm not 100% sure, but I could say that probably nobody will be implementing JMS using e-mail as the underlying transport. If you take a look at Sun's JMS web page, you'll see the list of JMS imp...more
You may find some through JMS vendors or Business Analyst groups. Try visiting some of the JMS provider sites.
Using JMS we want to transfer files from server A to server B. Is there any limit to the size to a file that can be transfered using JMS? Is it possible, for example, to transfer 50- or 60-MB files.
Theoretically, there are no limits to the size of JMS message. Message size limitations can be imposed by a JMS service provider.
What is the best way to implement the subscribe side in the pub/sub connection? Should I never close the line and receive the messages asynchronously? Should I close the line and use a durable s...more
Is it better to have one topic and use properties to filter subscribers' interests or should you set up multiple topics? Is there a performance issue with having multiple topics versus multiple filters?
The general answer is that it would be best to use a bit of both. There will always be an overhead on the broker for the creation of a Topic, but if variations are small, (for example, less than 2...more
[. e.g. the client displays alarm status of devices. If I use EJB to periodically check the database for alarm status change, how to program the EJB to forward notification to clients when the sta...more
Sun has some example programs that you might want to look at.
I am using JMS to communicate between EJBs and client (GUI) classes in my application. I have the following problem. When I publish a message to my EJB component (a stateless session bean) direct...more
If you have a messaging system that can be accessed by both Java and C++, you might consider storing your messages in the form of XML. XML is platform and language independent and might get you w...more
How can I integrate JMS third-party software with EJB application servers (both J2SDKEE 1.2.1 and, for example, the WebLogic server)? And, how can I run the client application? A sample program would be useful?
If you want everything to participate within the same transaction, you can't. For example, if you are in an EJB that has a transaction context started and you place something on a non-Weblogic JM...more
I am a little confused about the differences, advantages, and disadvantages of using JavaMail, JMS, and James Apache. Could someone please help me by clarifying these to decide which is the best solution to implement?
The JavaMail API is a mail user agent (MUA) for creating programs for a user to get/send email messages, using standard mail protocols. James (and others) is a mail server / mail transfer agent (...more