org.apertereports.backbone.jms
Class AperteReportsJmsFacade

java.lang.Object
  extended by org.apertereports.backbone.jms.AperteReportsJmsFacade

public class AperteReportsJmsFacade
extends Object

Facade for JMS used in Aperte Reports. Handles message listeners registration, message pushing and signals JMS availability. Supports JMS usage outside a J2EE container.

Author:
Zbigniew Malinowski

Constructor Summary
AperteReportsJmsFacade()
           
 
Method Summary
static boolean isJmsAvailable()
          Checks if JMS ConnectionFactory is registered with JNDI, and if can create connection and session.
static void sendOrderToJms(Long orderId, String queueName)
          Adds message to queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AperteReportsJmsFacade

public AperteReportsJmsFacade()
Method Detail

sendOrderToJms

public static void sendOrderToJms(Long orderId,
                                  String queueName)
Adds message to queue. Messages contains only report order id.

Parameters:
orderId - id of the order to be stored
queueName - configuration key of queue which message will be sent to

isJmsAvailable

public static boolean isJmsAvailable()
Checks if JMS ConnectionFactory is registered with JNDI, and if can create connection and session.

Returns:


Copyright © 2011-2012. All Rights Reserved.