org.jboss.webbeans.messaging.spi
Interface JmsServices

All Superinterfaces:
Service

public interface JmsServices
extends Service

A container should implement this interface to allow Web Beans to resolve Jms Services

Author:
Pete Muir

Method Summary
 javax.jms.QueueConnectionFactory getQueueConnectionFactory()
          Get a QueueConnectionFactory
 javax.jms.TopicConnectionFactory getTopicConnectionFactory()
          Get a TopicConnectionFactory
<T extends javax.jms.Destination>
T
resolveDestination(java.lang.String jndiName, java.lang.String mappedName)
          Resolve the destination for the given JNDI name and mapped name
 

Method Detail

resolveDestination

<T extends javax.jms.Destination> T resolveDestination(java.lang.String jndiName,
                                                       java.lang.String mappedName)
Resolve the destination for the given JNDI name and mapped name

Parameters:
injectionPoint - the injection point metadata
Returns:
an instance of the resource
Throws:
java.lang.IllegalStateException - if no resource can be resolved for injection

getQueueConnectionFactory

javax.jms.QueueConnectionFactory getQueueConnectionFactory()
Get a QueueConnectionFactory

Returns:
the queue connection factory

getTopicConnectionFactory

javax.jms.TopicConnectionFactory getTopicConnectionFactory()
Get a TopicConnectionFactory

Returns:


Copyright © 2011. All Rights Reserved.