2.2. Application Code

If you are using standard JMS in your application, you will need to make modifications to your source code regarding High Availability (HA) and clustering. Specifically you will need to adjust how your application handles failures and rollbacks. For more information, refer to Section 2.3, “Client-side Failure Handling”.
If you are using JBoss Messaging proprietary features, such as ordering groups, you will need to adapt them to HornetQ equivalent features. Table 2.1, “Implementation class mapping between JBoss Messaging and HornetQ” lists the JBoss Messaging JMS implementation classes and their corresponding HornetQ equivalents.

Table 2.1. Implementation class mapping between JBoss Messaging and HornetQ

org.jboss.jms.client. Classname HornetQ Equivalent Classname
JBossConnectionFactory org.hornetq.jms.client.HornetQConnectionFactory
JBossConnection org.hornetq.jms.client.HornetQConnection
JBossSession org.hornetq.jms.client.HornetQSession
JBossMessageProducer org.hornetq.jms.client.HornetQMessageProducer
JBossMessageConsumer org.hornetq.jms.client.HornetQMessageConsumer

Note

Unless you have used JBoss Messaging-specific APIs, it is not necessary to explicitly case your JMS objects to specific implementations. You can just use the standard JMS APIs wherever possible.