File: jboss.xml
<?xml version="1.0"?>
<jboss
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
version="3.0">
<enterprise-beans>
<consumer>
<ejb-name>ExampleConsumer</ejb-name>
<ejb-class>org.jboss.tutorial.consumer_deployment_descriptor.bean.ExampleConsumerBean</ejb-class>
<message-destination>queue/tutorial/example</message-destination>
<message-destination-type>javax.jms.Queue</message-destination-type>
<producer>
<class>org.jboss.tutorial.consumer_deployment_descriptor.bean.ExampleProducerRemote</class>
</producer>
<local-producer>
<class>org.jboss.tutorial.consumer_deployment_descriptor.bean.ExampleProducerXA</class>
<connection-factory>java:/JmsXA</connection-factory>
</local-producer>
<local-producer>
<class>org.jboss.tutorial.consumer_deployment_descriptor.bean.ExampleProducerLocal</class>
</local-producer>
<current-message>
<method>
<method-name>currentMessage</method-name>
</method>
</current-message>
<message-properties>
<method>
<method-name>method2</method-name>
</method>
<delivery>NonPersistent</delivery>
</message-properties>
</consumer>
</enterprise-beans>
</jboss>
|