Contents

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

What's New?

This section describes the new features introduced in the FioranoMQ 10.0.0 release.

JMS 2.0 - Major features supported in FioranoMQ10 

Shared Subscriptions - Multiple consumers now allowed on the same topic subscription

...

  • Non-durable subscriptions
  • Durable subscriptions

Sending messages asynchronously

New send methods have been added to MessageProducer which allow messages to be sent asynchronously. These methods return immediately and perform the send in a separate thread without blocking the calling thread. When the send is complete, a call-back method is invoked on an object supplied by the caller.

Delivery delay

A message's delivery time is the earliest time when a JMS provider may deliver the message to a consumer. The provider must not deliver messages before the delivery time has been reached. If a message is published to a topic, it will only be added to a durable or non-durable subscription on that topic if the subscription exists at the time the message is sent.

JMSXDeliveryCount

Support has been added for message property JMSXDeliveryCount. This means that JMS providers must set this property when a message is delivered to the number of times the message has been delivered.

New methods to create a session

Two new methods are added to javax.jms.Connection to create a session.

...

  • createSession()
    This is intended for use in a Java EE web or EJB container in the case when there is an active JTA transaction, when the sessionMode supplied to createSession(int sessionMode) is ignored.

New createDurableConsumer methods

The javax.jms.Session interface has been extended to add two createDurableConsumer methods which return a MessageConsumer. These are intended to replace the existing createDurableSubscription methods which return a domain-specific TopicSubscriber.

Client ID optional on shared durable subscriptions

In JMS 2.0, shared durable subscriptions will not have the restriction for the client identifier to be set when creating or activating a durable subscription.

Use of AutoCloseable

The Connection, Session, MessageProducer, MessageConsumer and QueueBrowser interfaces have been modified to extend the java.lang.Autocloseable interface. This means that applications can create these objects using a Java SE 7 try-with-resources statement which removes the need for applications to explicitly call close() when these objects are no longer required.

Simplified API

Support has been added for three new objects JMSContext, JMSProducer and JMSConsumer which together combine the functionality of the existing Connection, Session, MessageProducer and MessageConsumer objects. Apart from that, there are several other classes related to handling messaging or exceptions have been introduced, such as -

...

  • javax.jms.JMSRuntimeException and many more.

New method to extract the body directly from a Message

Two new methods have been added to Message:

...

The getBody method returns the message body as an object of the specified type. This provides a convenient way to obtain the body from a newly-received Message object. The isBodyAssignableTo method is a companion method that can be used to determine whether a subsequent call to getBody would be able to return the body of a particular Message object as a particular type.

Activation properties

"MDB activation properties" defines a set of activation properties for use with JMS message-driven beans (Java EE Connector Architecture specification, version 1.6).

Support for Queue/Topic Shutdown and Restart

Support has been added for Queue/Topic Shutdown or Restart. This feature will be helpful in changing destination configurations at runtime and getting it effected by just restarting the particular destination and only the client applications which use the destination, without the need to restart complete FMQ Server.

Native C++ Runtime Library

FioranoMQ 10 comes up with new Native C++ Client Runtime Library, with better performance and stability. It also supports all JMS2.0 APIs other than the Asynchronous Message Sending feature.

Resolved Issues

This section describes some of the customer issues resolved in the Fiorano 10.0.0 release

...

Adaptavist ThemeBuilder EngineAtlassian Confluence