|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ejb.support.AbstractEnterpriseBean org.springframework.ejb.support.AbstractMessageDrivenBean org.springframework.ejb.support.AbstractJmsMessageDrivenBean org.springframework.ws.transport.jms.WebServiceMessageDrivenBean
public class WebServiceMessageDrivenBean
EJB MessageDrivenBean
that can be used to handleMessage incoming JMS messages.
ConnectionFactory
, a WebServiceMessageFactory
and WebServiceMessageReceiver
to operate. By default, these are obtained by doing a bean lookup on the bean factory
provided by AbstractEnterpriseBean.getBeanFactory()
the super class.
createConnectionFactory()
,
createMessageFactory()
,
createMessageReceiver()
,
Serialized FormField Summary | |
---|---|
static String |
CONNECTION_FACTORY_BEAN_NAME
Well-known name for the ConnectionFactory object in the bean factory for this bean. |
static String |
MESSAGE_FACTORY_BEAN_NAME
Well-known name for the WebServiceMessageFactory bean in the bean factory for this bean. |
static String |
MESSAGE_RECEIVER_BEAN_NAME
Well-known name for the WebServiceMessageReceiver object in the bean factory for this bean. |
Fields inherited from class org.springframework.ejb.support.AbstractMessageDrivenBean |
---|
logger |
Fields inherited from class org.springframework.ejb.support.AbstractEnterpriseBean |
---|
BEAN_FACTORY_PATH_ENVIRONMENT_KEY |
Constructor Summary | |
---|---|
WebServiceMessageDrivenBean()
|
Method Summary | |
---|---|
protected Connection |
createConnection(ConnectionFactory connectionFactory)
Create a JMS Connection using the given ConnectionFactory . |
protected ConnectionFactory |
createConnectionFactory()
Creates a connection factory. |
protected WebServiceMessageFactory |
createMessageFactory()
Creates a message factory. |
protected WebServiceMessageReceiver |
createMessageReceiver()
Creates a connection factory. |
protected MessagePostProcessor |
createPostProcessor()
Creates a JMS MessagePostProcessor to process JMS messages. |
protected Session |
createSession(Connection connection)
Creates a JMS Session . |
protected void |
onEjbCreate()
Creates a new Connection , WebServiceMessageFactory , and WebServiceMessageReceiver . |
void |
onMessage(Message message)
Delegates to JmsMessageReceiver.handleMessage(Message,Session) . |
Methods inherited from class org.springframework.ejb.support.AbstractMessageDrivenBean |
---|
ejbCreate, getMessageDrivenContext, setMessageDrivenContext |
Methods inherited from class org.springframework.ejb.support.AbstractEnterpriseBean |
---|
ejbRemove, getBeanFactory, onEjbRemove, setBeanFactoryLocator, setBeanFactoryLocatorKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.MessageDrivenBean |
---|
ejbRemove |
Field Detail |
---|
public static final String CONNECTION_FACTORY_BEAN_NAME
ConnectionFactory
object in the bean factory for this bean.
public static final String MESSAGE_FACTORY_BEAN_NAME
WebServiceMessageFactory
bean in the bean factory for this bean.
public static final String MESSAGE_RECEIVER_BEAN_NAME
WebServiceMessageReceiver
object in the bean factory for this bean.
Constructor Detail |
---|
public WebServiceMessageDrivenBean()
Method Detail |
---|
public void onMessage(Message message)
JmsMessageReceiver.handleMessage(Message,Session)
.
protected void onEjbCreate()
Connection
, WebServiceMessageFactory
, and WebServiceMessageReceiver
.
onEjbCreate
in class AbstractMessageDrivenBean
createConnectionFactory()
,
createMessageFactory()
,
createMessageReceiver()
protected ConnectionFactory createConnectionFactory() throws Exception
CONNECTION_FACTORY_BEAN_NAME
.
Exception
protected WebServiceMessageFactory createMessageFactory()
MESSAGE_FACTORY_BEAN_NAME
.
protected WebServiceMessageReceiver createMessageReceiver()
MESSAGE_RECEIVER_BEAN_NAME
.
protected Connection createConnection(ConnectionFactory connectionFactory) throws JMSException
Connection
using the given ConnectionFactory
.
This implementation uses JMS 1.1 API.
connectionFactory
- the JMS ConnectionFactory to create a Connection with
JMSException
- if thrown by JMS API methodsConnectionFactory.createConnection()
protected Session createSession(Connection connection) throws JMSException
Session
. Default implementation creates a non-transactional, auto acknowledged
session.
This implementation uses JMS 1.1 API.
connection
- the JMS Connection to create a Session for
JMSException
- if thrown by JMS API methodsConnection.createSession(boolean,int)
protected MessagePostProcessor createPostProcessor()
MessagePostProcessor
to process JMS messages. Default
implementation returns null
, meaning that no post processor is used.
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |