geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Katia Aresti Gonzalez" <kaare...@hotmail.com>
Subject JMS application client into Geronimo
Date Sun, 01 May 2005 19:57:17 GMT
<html><div style='background-color:'><DIV class=RTE>
<P>Thanks a lot David! it worked with this descriptor.</P>
<P>Doing now the next step: Deploying another EAR file, this time just an application
client that access to the MDB. I don realy know how to make this work. Any help please???
than you!!!!!!!</P>
<P>This is the file:</P>
<P><FONT face="Courier New, Courier, Monospace"><STRONG>SimpleClient.java</STRONG></FONT></P>
<P><FONT face="Courier New, Courier, Monospace">import javax.jms.*;<BR>import
javax.naming.*;</FONT></P>
<P><FONT face="Courier New, Courier, Monospace">public class SimpleClient {<BR>&nbsp;&nbsp;&nbsp;
/**<BR>&nbsp;&nbsp;&nbsp;&nbsp; * Main method.<BR>&nbsp;&nbsp;&nbsp;&nbsp;
*/<BR>&nbsp;&nbsp;&nbsp; public static void main(String[] args) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Context jndiContext = null;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
ConnectionFactory connectionFactory = null;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Connection connection = null;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Session session = null;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Destination dest = null;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
MessageProducer producer = null;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
TextMessage message = null;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
final int NUM_MSGS = 3;</FONT></P>
<P><FONT face="Courier New, Courier, Monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/*<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* Create a JNDI API InitialContext object.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jndiContext = new InitialContext();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
} catch (NamingException e) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
System.err.println("Could not create JNDI API context: " +<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
e.toString());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
System.exit(1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}</FONT></P>
<P><FONT face="Courier New, Courier, Monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/*<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* Look up connection factory and queue.&nbsp; If either does<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* not exist, exit.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
connectionFactory =<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
(ConnectionFactory) jndiContext.lookup(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
"java:comp/env/jms/CnnectionFactory");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
dest = (Queue) 
jndiContext.lookup("java:comp/env/jms/MDBTransferBeanOutQueue");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
} catch (NamingException e) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
System.err.println("JNDI API lookup failed: " + e.toString());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
System.exit(1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}</FONT></P>
<P><FONT face="Courier New, Courier, Monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/*<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* Create connection.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* Create session from connection; false means session is<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* not transacted.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* Create sender and text message.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* Send messages, varying text slightly.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* Finally, close connection.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
connection = 
connectionFactory.createConnection();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
producer = session.createProducer(dest);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
message = session.createTextMessage();</FONT></P>
<P><FONT face="Courier New, Courier, Monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
for (int i = 0; i &lt; NUM_MSGS; i++) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
message.setText("This is message " + (i + 1));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
System.out.println("Sending message: " + message.getText());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
producer.send(message);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } catch
(JMSException e) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
System.err.println("Exception occurred: " + e.toString());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
} finally 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
if (connection != null) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
try {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
connection.close();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
} catch (JMSException e) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}</FONT></P>
<P><FONT face="Courier New, Courier, Monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
System.exit(0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}<BR>&nbsp;&nbsp;&nbsp; }<BR>}<BR></FONT></P>
<P>Im using this deployment descriptors, but i dont really now what i need to do this.
</P>
<P><STRONG>application.xml</STRONG></P>
<P>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<BR>&lt;application
version="1.4" xmlns="<A href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</A>"
xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>"
xsi:schemaLocation="<A href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</A>
<A href="http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">http://java.sun.com/xml/ns/j2ee/application_1_4.xsd</A>"&gt;<BR>&nbsp;
&lt;description&gt;Application description&lt;/description&gt;<BR>&nbsp;
&lt;display-name&gt;EarthMDBApp&lt;/display-name&gt;<BR>&nbsp; &lt;module&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;ejb&gt;mdb.jar&lt;/ejb&gt;<BR>&nbsp; &lt;/module&gt;<BR>&lt;/application&gt;</P>
<P><STRONG>geronimo-application.xml</STRONG></P>
<P>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</P>
<P>&lt;application xmlns="<A href="http://geronimo.apache.org/xml/ns/j2ee/application">http://geronimo.apache.org/xml/ns/j2ee/application</A>"<BR>configId="Jupiter"<BR>parentId="org/apache/geronimo/SystemJMS"&gt;<BR>&lt;/application&gt;<BR></P>
<P><STRONG>application-client.xml</STRONG><BR>&lt;?xml version="1.0"
encoding="UTF-8"?&gt;<BR>&lt;application-client version="1.4" xmlns="<A href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</A>"
</P>
<P>xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>"
xsi:schemaLocation="<A href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</A>
</P>
<P><A href="http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd">http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd</A>"&gt;<BR>&nbsp;
&lt;display-name&gt;SimpleClient&lt;/display-name&gt;<BR>&nbsp;
&lt;resource-ref&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;res-ref-name&gt;ConnectionFactory&lt;/res-ref-name&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;res-type&gt;javax.jms.ConnectionFactory&lt;/res-type&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;res-auth&gt;Container&lt;/res-auth&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;res-sharing-scope&gt;Shareable&lt;/res-sharing-scope&gt;<BR>&nbsp;
&lt;/resource-ref&gt;<BR>&nbsp; &lt;message-destination-ref&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;message-destination-ref-name&gt;MDBTransferBeanOutQueu&lt;/message-destination-ref-name&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;message-destination-type&gt;javax.jms.Queue&lt;/message-destination-type&gt;<BR>&nbsp;&nbsp;&nbsp;

&lt;message-destination-usage&gt;Produces&lt;/message-destination-usage&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;message-destination-link&gt;PhysicalQueue&lt;/message-destination-link&gt;<BR>&nbsp;
&lt;/message-destination-ref&gt;<BR>&nbsp; &lt;message-destination&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;message-destination-name&gt;MDBTransferBeanOutQueu&lt;/message-destination-name&gt;<BR>&nbsp;
&lt;/message-destination&gt;<BR>&lt;/application-client&gt;<BR></P>
<P><BR><STRONG>geronimo-application-client.xml</STRONG><BR>&lt;?xml
version="1.0" encoding="UTF-8"?&gt;<BR>&lt;!DOCTYPE sun-application-client PUBLIC
"-//Sun Microsystems, Inc.//DTD Application Server 8.1 Application Client 1.4//EN" "<A
href="http://www.sun.com/software/appserver/dtds/sun-application-client_1_4-1.dtd">http://www.sun.com/software/appserver/dtds/sun-application-client_1_4-1.dtd</A>"&gt;</P>
<P>&lt;application-client&gt;<BR>&nbsp; &lt;resource-ref&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;res-ref-name&gt;ConnectionFactory&lt;/res-ref-name&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;jndi-name&gt;jms/ConnectionFactoryLocalTx&lt;/jndi-name&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;default-resource-principal&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;name&gt;geronimo&lt;/name&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;password&gt;geronimo&lt;/password&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;/default-resource-principal&gt;<BR>&nbsp; &lt;/resource-ref&gt;<BR>&nbsp;
&lt;message-destination&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;message-destination-name&gt;MDBTransferBeanOutQueue&lt;/message-destination-name&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;jndi-name&gt;MDBTransferBeanOutQueue&lt;/jndi-name&gt;<BR>&nbsp;
&lt;/message-destination&gt;<BR>&lt;application-client&gt;<BR></P>
<P>&nbsp;</P></DIV>
<DIV></DIV>&gt;From: David Jencks &lt;david_jencks@yahoo.com&gt;
<DIV></DIV>&gt;Reply-To: user@geronimo.apache.org
<DIV></DIV>&gt;To: user@geronimo.apache.org
<DIV></DIV>&gt;Subject: Re: JMS application problem when deploying into Geronimo
<DIV></DIV>&gt;Date: Sun, 1 May 2005 11:12:10 -0700
<DIV></DIV>&gt;
<DIV></DIV>&gt;Another try ...
<DIV></DIV>&gt;On May 1, 2005, at 10:31 AM, David Jencks wrote:
<DIV></DIV>&gt;
<DIV></DIV>&gt;&gt;try this for the ejb-jar.xml
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;
<DIV></DIV>&gt;&lt;ejb-jar version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee"&nbsp;&nbsp;
<DIV></DIV>&gt;xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&nbsp;&nbsp;
<DIV></DIV>&gt;xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee&nbsp;&nbsp;
<DIV></DIV>&gt;http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"&gt;
<DIV></DIV>&gt;&nbsp; &lt;display-name&gt;TierraMDB&lt;/display-name&gt;
<DIV></DIV>&gt;&nbsp; &lt;enterprise-beans&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp; &lt;message-driven&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;display-name&gt;MDBTierra&lt;/display-name&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ejb-name&gt;MDBTierra&lt;/ejb-name&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ejb-class&gt;MessageBean&lt;/ejb-class&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;messaging-type&gt;javax.jms.MessageListener&lt;/messaging-type&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;transaction-type&gt;Container&lt;/transaction-type&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;activation-config&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;activation-config-property&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<DIV></DIV>&gt;&lt;activation-config-property-name&gt;destination&lt;/activation-config-
<DIV></DIV>&gt;property-name&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<DIV></DIV>&gt;&lt;activation-config-property-value&gt;MDBTransferBeanOutQueue&lt;/activation-
<DIV></DIV>&gt;config-property-value&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/activation-config-property&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;activation-config-property&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<DIV></DIV>&gt;&lt;activation-config-property-name&gt;destinationType&lt;/activation-config-
<DIV></DIV>&gt;property-name&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<DIV></DIV>&gt;&lt;activation-config-property-value&gt;javax.jms.Queue&lt;/activation-config-
<DIV></DIV>&gt;property-value&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/activation-config-property&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/activation-config&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp; &lt;/message-driven&gt;
<DIV></DIV>&gt;&nbsp; &lt;/enterprise-beans&gt;
<DIV></DIV>&gt;&nbsp; &lt;assembly-descriptor&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp; &lt;container-transaction&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;method&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;ejb-name&gt;MDBTierra&lt;/ejb-name&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;method-name&gt;onMessage&lt;/method-name&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;method-params&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;method-param&gt;javax.jms.Message&lt;/method-param&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/method-params&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/method&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;trans-attribute&gt;Required&lt;/trans-attribute&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp; &lt;/container-transaction&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp; &lt;message-destination&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<DIV></DIV>&gt;&lt;message-destination-name&gt;MDBTransferBeanOutQueue&lt;/message-destination-
<DIV></DIV>&gt;name&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp; &lt;/message-destination&gt;
<DIV></DIV>&gt;&nbsp; &lt;/assembly-descriptor&gt;
<DIV></DIV>&gt;&lt;/ejb-jar&gt;
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<DIV></DIV></div><br clear=all><hr>Busca a la vez en Internet,
en directorios, en enciclopedias...  <a href="http://g.msn.com/8HMAESES/2740??PS=47575"
target="_top">Atrévete con el nuevo MSN Search</a> </html>


Mime
View raw message