org.apertereports.backbone.jms.listener
Class BackgroundOrderProcessor
java.lang.Object
org.apertereports.backbone.jms.listener.BackgroundOrderProcessor
- All Implemented Interfaces:
- javax.jms.MessageListener
public class BackgroundOrderProcessor
- extends Object
- implements javax.jms.MessageListener
Singleton MessageListener implementation that asynchronously receives
generation orders. It then pushes the id of the resulting report order back
to JMS for further processing.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static BackgroundOrderProcessor getInstance()
onMessage
public void onMessage(javax.jms.Message message)
- The method generates a new jasper report on message which contains the id
of the report order to process. On successful generation the id result is
pushed to JMS. If the recipient email address of the report order was set
the generated report is send via email.
- Specified by:
onMessage in interface javax.jms.MessageListener
- Parameters:
message - A JMS message- See Also:
MessageListener.onMessage(javax.jms.Message)
Copyright © 2011-2012. All Rights Reserved.