Currently, I have implemented a non-SSL secured client using the standard JMS API (only javax.jms.*
classes). When supplied with specific product JAR and proper classnames, it is able to connect to any JMS server.
Is there a way how to implement such generic (vendor-independent) JMS client with SSL connection capabilities?
My research was not successful - I've found several examples implementing JMS with SSL (eg Novell JMS , ActiveMQ ) but none of them avoids using the vendor-specific classes directly in code and implementations differ considerably.
Using SSL doesn't require any code change in client. Adding SSL capability is only matter of configuration.
In general, there are few things that will differ:
ssl://broker_url
instead of tcp://broker_url
). -D
JVM option.) Since points 2. and 3. differ from one JMS broker to another, see your vendor's documentation for further details.
This answer is based on experience with successful connection to Apache ActiveMQ and Tibco EMS, including mutual certificate authentication.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.