Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 83401 invoked from network); 13 Mar 2007 13:30:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2007 13:30:27 -0000 Received: (qmail 51746 invoked by uid 500); 13 Mar 2007 13:30:31 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 51715 invoked by uid 500); 13 Mar 2007 13:30:31 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 51702 invoked by uid 99); 13 Mar 2007 13:30:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2007 06:30:31 -0700 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=FORGED_YAHOO_RCVD,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [205.152.59.70] (HELO imf22aec.mail.bellsouth.net) (205.152.59.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2007 06:30:19 -0700 Received: from ibm65aec.bellsouth.net ([74.237.109.96]) by imf22aec.mail.bellsouth.net with ESMTP id <20070313132956.RMQU21977.imf22aec.mail.bellsouth.net@ibm65aec.bellsouth.net> for ; Tue, 13 Mar 2007 09:29:56 -0400 Received: from [192.168.1.101] (really [74.237.109.96]) by ibm65aec.bellsouth.net with ESMTP id <20070313132955.UWKO26317.ibm65aec.bellsouth.net@[192.168.1.101]> for ; Tue, 13 Mar 2007 09:29:55 -0400 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <5557cbd70703130602y3e70758cg6761277edeb3b390@mail.gmail.com> References: <5557cbd70703130534o1c1cdb35t221283dbcb2109fd@mail.gmail.com> <2739C093-0B92-49DF-8D08-88A94877CD2E@yahoo.com> <5557cbd70703130602y3e70758cg6761277edeb3b390@mail.gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-21-64374862 Message-Id: <8D9119A4-76F8-4A1F-A3B6-51286A00FBA0@yahoo.com> From: David Jencks Subject: Re: Message not getting delivered to MDB Date: Tue, 13 Mar 2007 09:29:46 -0400 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-21-64374862 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed The only thing I see that looks questionable is that you have a message-destination-link with no message-destination for it to link to. I think the info in the openejb plan should be enough to find the topic, so I would first try removing the message-destination-link element and if that doesn't work try putting it back and including a message-destination. thanks david jencks On Mar 13, 2007, at 9:02 AM, anish pathadan wrote: > Hi David, > Version is 1.1. > > Thanks, > Anish > > > On 3/13/07, David Jencks wrote: > Which geronimo version? mdbs are just starting to work in geronimo > trunk. They should work fine in earlier versions. > > > thanks > david jencks > > > On Mar 13, 2007, at 8:34 AM, anish pathadan wrote: > >> Hi All, >> I created new JMS resource group, connection factory and >> topic for Active MQ server.I could successfully send some messages >> to the Topic and I could read that message using a receiver. Now I >> wrote another EJB module having one MDB listening to that Topic. >> It seems that messages are not delivered to the MDB.Is there >> anything wrong in my open-ejb-jar.xml or am I missing anything. >> Please help me. >> >> >> >> >> >> >> >> >> >> >> default >> >> mymdb >> >> 1.0 >> >> jar >> >> >> >> >> >> >> >> console.jms >> >> TestServiceConnectionGroup >> >> 1.0 >> >> rar >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> TestMDB >> >> >> >> TestServiceConnectionGroup >> >> >> >> >> >> >> >> destination> property-name> >> >> TestServiceTopic> config-property-value> >> >> >> >> >> >> destinationType> config-property-name> >> >> javax.jms.Topic> config-property-value> >> >> >> >> >> >> >> >> jms/TestServiceConnectionFactory >> >> TestServiceConnectionFactory >> >> >> >> >> >> jms/TestServiceTopic >> >> TestServiceTopic >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> and ejb-jar.xml is:- >> > >> xml version="1.0" encoding="UTF-8"?> >> < >> >> ejb-jar id="ejb-jar_ID" version="2.1" xmlns=" http://java.sun.com/ >> xml/ns/j2ee" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance >> " xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee http:// >> java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" > >> >> >> testejb >> >> >> >> >> >> >> >> >> TestMDB >> >> >> ejb.TestMDB >> >> >> javax.jms.MessageListener >> >> >> Container >> >> >> javax.jms.Topic >> >> >> TestServiceTopic > link> >> >> >> >> >> >> JMS Broker >> >> >> >> >> jms/TestServiceConnectionFactory >> >> >> javax.jms.ConnectionFactory >> >> >> Container >> >> >> >> >> >> >> >> >> >> >> >> >> jms/TestServiceTopic >> >> >> javax.jms.Topic >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> TestMDB >> >> >> * >> >> >> >> >> >> Required >> >> >> >> >> >> >> > >> ejb-jar> >> >> >> >> -- >> Best Regards, >> Anish Pathadan > > > > > > -- > Best Regards, > Anish Pathadan --Apple-Mail-21-64374862 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 The only thing I see that looks = questionable is that you have a message-destination-link with no = message-destination for it to link to.=A0 I think the info in the = openejb plan should be enough to find the topic, so I would first try = removing the message-destination-link element and if that doesn't work = try putting it back and including a message-destination.

thanks
david = jencks

On Mar 13, 2007, at 9:02 AM, anish = pathadan wrote:

Hi David,
=A0=A0 Version is 1.1.
=
=A0
Thanks,
Anish

=A0
On 3/13/07, David = Jencks <david_jencks@yahoo.com> = wrote:
Which geronimo version?=A0 mdbs are just = starting to work in geronimo trunk.=A0 They should work fine in earlier = versions.

=A0
thanks
=
david jencks

=A0
On Mar = 13, 2007, at 8:34 AM, anish pathadan wrote:

Hi All,
=A0=A0=A0=A0=A0 I created new JMS = resource group, connection factory and topic for Active MQ server.I = could successfully send some messages to the Topic and I could read that = message=A0using a receiver. Now I wrote another EJB module having one = MDB listening to that Topic. It seems that messages are not delivered to = the MDB.Is there anything wrong in my open-ejb-jar.xml or am I missing = anything. Please help me.
=A0
=A0

<?xml version=3D"1.0" = encoding=3D"UTF-8"?>

<openejb-jar xmlns=3D"http://www.openejb.org/xml/ns/openejb-jar-2.1 " = xmlns:dep=3D" = http://geronimo.apache.org/xml/ns/deployment-1.1">

<dep:environment>

<dep:moduleId>

<dep:groupId>default</dep:groupId>

<dep:artifactId>mymdb</dep:artifactId>

<dep:version>1.0</dep:version>

<dep:type>jar</dep:type>

</dep:moduleId>

<dep:dependencies>

<dep:dependency>

<dep:groupId>console.jms</dep:groupId>

<dep:artifactId>TestServiceConnectionGroup</dep:ar= tifactId>

<dep:version>1.0</dep:version>

<dep:type>rar</dep:type>

</dep:dependency>

</dep:dependencies>

<dep:hidden-classes/>

<dep:non-overridable-classes/>

</dep:environment>


=A0

<enterprise-beans>

<message-driven>

<ejb-name>TestMDB</ejb-name>

<resource-adapter>

<resource-link>TestServiceConnectionGroup</resourc= e-link>

</resource-adapter>

<activation-config>

<activation-config-property>

<activation-config-property-name>destination</acti= vation-config-property-name>

<activation-config-property-value>TestServiceTopic<= ;/activation-config-property-value>

</activation-config-property>

<activation-config-property>

<activation-config-property-name>destinationType</= activation-config-property-name>

<activation-config-property-value>javax.jms.Topic<= /activation-config-property-value>

</activation-config-property>

</activation-config>

<resource-ref>

<ref-name>jms/TestServiceConnectionFactory</ref-na= me>

<resource-link>TestServiceConnectionFactory</resou= rce-link>

</resource-ref>

<resource-env-ref>

<ref-name>jms/TestServiceTopic</ref-name>

<message-destination-link>TestServiceTopic</messag= e-destination-link>

</resource-env-ref>

</message-driven>

</enterprise-beans>

=

=A0

</openejb-jar>


=A0
=A0=
=A0
and ejb-jar.xml is:-

<?

xml version=3D"1.0" encoding=3D"UTF-8"?>

<

ejb-jar id=3D"ejb-jar_ID" = version=3D"2.1" xmlns=3D" = http://java.sun.com/xml/ns/j2ee" xmlns:xsi=3D" = http://www.w3.org/2001/XMLSchema-instance " xsi:schemaLocation=3D" = http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" = > =

=A0
<display-name>testejb </ display-name>

=A0
<enterprise-beans>

=A0
<message-driven>

=A0
<ejb-name>TestMDB</ ejb-name>

=A0
<ejb-class>ejb.TestMDB </ ejb-class>

=A0
<messaging-type>javax.jms.MessageListener </messaging-type>

=A0
<transaction-type>Container </transaction-type>

=A0
<message-destination-type>javax.jms.Topic </message-destination-type>

=A0
<message-destination-link>TestServiceTopic </message-destination-link>

=A0
<resource-ref>

=A0
<description>JMS Broker </ description>

=A0
=

=A0
<res-ref-name>jms/TestServiceConnectionFactory </res-ref-name>

=A0
<res-type>javax.jms.ConnectionFactory </res-type>

=A0
<res-auth>Container</ res-auth>

=A0
</resource-ref>

=A0
=

=A0
<resource-env-ref>

=A0
=

=A0
<resource-env-ref-name>jms/TestServiceTopic </resource-env-ref-name>

=A0
<resource-env-ref-type>javax.jms.Topic </resource-env-ref-type>

=A0
</resource-env-ref>

=A0
</message-driven>

=A0
</enterprise-beans>

=A0
<assembly-descriptor>

=A0
<container-transaction>

=A0
<method>

=A0
<ejb-name>TestMDB</ ejb-name>

=A0
<method-name>*</ method-name>

=A0
</method>

=A0
<trans-attribute>Required </trans-attribute>

=A0
</container-transaction>

=A0
</assembly-descriptor>

</

ejb-jar>
=A0


-- =
Best Regards,
Anish Pathadan =

=A0



--
Best Regards,
Anish = Pathadan

= --Apple-Mail-21-64374862--