geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio ForniƩ <sitaronoctur...@gmail.com>
Subject Re: Trying to set up a MDB
Date Sat, 31 Oct 2009 22:46:13 GMT

Hello!

My ear structure:
root/car_web.war
root/car_ejb.jar
root/geronimo-activemq-ra-2.1.4.rar
root/META-INF/MANIFEST.MF
root/META-INF/application.xml
root/META-INF/jms-resources.xml

My application.xml is this:
------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd" id="Application_ID"
version="5">
  <description>My MDB APP</description>
  <display-name>car_ear</display-name>
  <module>
    <web>
      <web-uri>car_web.war</web-uri>
      <context-root>car_web</context-root>
    </web>
  </module>
  <module>
    <ejb>car_ejb.jar</ejb>
  </module>
  <module>
    <connector>geronimo-activemq-ra-2.1.4.rar</connector>
  </module>
</application>
------------------------------------------------------------

My ejb-jar.xml is this:
------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar version="3.0" 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://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
	<display-name>car_ejb </display-name>
</ejb-jar>
------------------------------------------------------------

My open-ejb-jar.xml is this:
------------------------------------------------------------
<openejb-jar xmlns="http://openejb.apache.org/xml/ns/openejb-jar-2.2">
    <enterprise-beans>
        <message-driven>
            <ejb-name>OrderRecvMDB</ejb-name>
            <resource-adapter>
                <resource-link>jms-resources</resource-link>
            </resource-adapter>
        </message-driven>
    </enterprise-beans>
</openejb-jar>
------------------------------------------------------------

My jms-resources is this:
------------------------------------------------------------
<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
	<resourceadapter>
		<resourceadapter-instance>
			<resourceadapter-name>jms-resources</resourceadapter-name>
			<nam:workmanager
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2">
				<nam:gbean-link>DefaultWorkManager</nam:gbean-link>
			</nam:workmanager>
		</resourceadapter-instance>
		<outbound-resourceadapter>
			<connection-definition>
			
<connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
				<connectiondefinition-instance>
					<name>CommonConnectionFactory</name>
				
<implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
				
<implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
					<connectionmanager>
						<xa-transaction>
							<transaction-caching/>
						</xa-transaction>
						<single-pool>
							<match-one/>
						</single-pool>
					</connectionmanager>
				</connectiondefinition-instance>
			</connection-definition>
		</outbound-resourceadapter>
	</resourceadapter>
	<adminobject>
		<adminobject-interface>javax.jms.Queue</adminobject-interface>
	
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobject-class>
		<adminobject-instance>
			<message-destination-name>OrderQueue</message-destination-name>
			<config-property-setting
name="PhysicalName">OrderQueue</config-property-setting>
		</adminobject-instance>
	</adminobject>
</connector> 
------------------------------------------------------------

After including the rar in the ear like you told I got this error message:

Deployment failed:
A connector module must be deployed using a Geronimo deployment plan (either
META-INF/geronimo-ra.xml in the RAR file or a standalone deployment plan
passed to the deployer). 


Any help?? Thank you very much!!
-- 
View this message in context: http://old.nabble.com/Trying-to-set-up-a-MDB-tp26137988s134p26146663.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message