[prev in list] [next in list] [prev in thread] [next in thread] 

List:       geronimo-user
Subject:    Re: Message Driven Bean is not receiving messages
From:       Jack Cai <greensight () gmail ! com>
Date:       2009-08-31 2:39:24
Message-ID: 5e7fd1eb0908301939w6aa6f359y4b71417417372ac9 () mail ! gmail ! com
[Download RAW message or body]

For 1, I think it's similar to how datasource are handled. When you delete a
datasource definition, the data and tables will also not get deleted. In
2.2, you can clear the messages in a queue via the admin console.

-Jack

On Thu, Aug 27, 2009 at 9:04 PM, Stephan Mehlhase <s.mehlhase@googlemail.com
> wrote:

> Hi everyone,
> 
> I think I got it.
> 
> The queue's name was different from its physical name and the geronimo
> activemq environment was kind of trashed - so I reinstalled geronimo
> and changed the names such that they match. It seems to work now.
> 
> So I had two problems:
> 
> 1. Geronimo did not clean up the existing queues if the rar is
> uninstalled in the webfrontend (using the J2EE Connectors module). Is
> there any additional step needed to also clean up the mbeans of these
> queues? (Somehow related: Why isn't it possible to edit the JMS
> Resources?)
> 2. The name and the physical names of the queues have to match. If
> they don't the EJB will consume the messages of the queue named like
> the name and thus not receiving the messages from the producer which
> will happily enqueue messages into a queue named like the physical
> name of the queue. Is this a bug or did I again do something wrong in
> the declaration where to drop the messages?
> Both "problems" can be seen with JConsole.
> 
> Best,
> Stephan
> 
> On Wed, Aug 26, 2009 at 10:26, Stephan
> Mehlhase<s.mehlhase@googlemail.com> wrote:
> > Hi,
> > 
> > Okay, so I tried the Example from the documentation. It works out of
> > the box. I then tried to change to the message queue I created and it
> > stopped working - so I guess something is wrong there. So here is the
> > deployment plan of the JMS Resources I created:
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
> > <dep:environment
> > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> > <dep:moduleId>
> > <dep:groupId>console.jms</dep:groupId>
> > <dep:artifactId>Test</dep:artifactId>
> > <dep:version>1.0</dep:version>
> > <dep:type>rar</dep:type>
> > </dep:moduleId>
> > <dep:dependencies>
> > <dep:dependency>
> > <dep:groupId>org.apache.geronimo.configs</dep:groupId>
> > <dep:artifactId>activemq-broker</dep:artifactId>
> > <dep:type>car</dep:type>
> > </dep:dependency>
> > </dep:dependencies>
> > </dep:environment>
> > <resourceadapter>
> > <resourceadapter-instance>
> > <resourceadapter-name>Test</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>TestFactory</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>TestQueue</message-destination-name>
> > <config-property-setting
> > name="PhysicalName">testqueue</config-property-setting>
> > </adminobject-instance>
> > </adminobject>
> > <adminobject>
> > <adminobject-interface>javax.jms.Topic</adminobject-interface>
> > 
> <adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobject-class>
> > </adminobject>
> > </connector>
> > 
> > I basically just left the defaults in it. However, the Servlet seems
> > to work correctly as I see the following in the logs on hitting
> > submit:
> > 
> > 2009-08-26 10:17:13,713 DEBUG [ActiveMQSession] Sending message:
> > ActiveMQTextMessage {commandId = 0, responseRequired = false,
> > messageId = ID:yoda-55927-1251270725979-3:25:1:1:4,
> > originalDestination = null, originalTransactionId = null, producerId =
> > ID:yoda-55927-1251270725979-3:25:1:1, destination = queue://testqueue,
> > transactionId = null, expiration = 0, timestamp = 1251274633713,
> > arrival = 0, correlationId = null, replyTo = null, persistent = true,
> > type = null, priority = 4, groupID = null, groupSequence = 0,
> > targetConsumerId = null, compressed = false, userID = null, content =
> > null, marshalledProperties = null, dataStructure = null,
> > redeliveryCounter = 0, size = 0, properties = null, readOnlyProperties
> > = true, readOnlyBody = true, droppable = false, text = userid:ghjfgh}
> > 2009-08-26 10:17:13,714 DEBUG [testqueue] No subscriptions registered,
> > will not dispatch message at this time.
> > 
> > So the message arrives at the queue but won't be dispatched because my
> > EJB is not registered. The plan for the EJB now looks like:
> > 
> > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> > <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.2"
> > xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2"
> > xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0"
> > xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.2"
> > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
> > <sys:environment>
> > <sys:moduleId>
> > <sys:groupId>default</sys:groupId>
> > <sys:artifactId>MessageDrivenBean</sys:artifactId>
> > <sys:version>1.0</sys:version>
> > <sys:type>car</sys:type>
> > </sys:moduleId>
> > <sys:dependencies>
> > <sys:dependency>
> > <sys:groupId>console.jms</sys:groupId>
> > <sys:artifactId>Test</sys:artifactId>
> > <sys:version>1.0</sys:version>
> > <sys:type>rar</sys:type>
> > </sys:dependency>
> > </sys:dependencies>
> > </sys:environment>
> > <enterprise-beans>
> > <message-driven>
> > <ejb-name>AdminMDB</ejb-name>
> > <nam:resource-adapter>
> > 
> <nam:resource-link>Test</nam:resource-link>
> > </nam:resource-adapter>
> > <activation-config>
> > <activation-config-property>
> > <activation-config-property-name>
> > destination
> > </activation-config-property-name>
> > <activation-config-property-value>
> > TestQueue
> > 
> </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.Queue
> > 
> </activation-config-property-value>
> > </activation-config-property>
> > </activation-config>
> > </message-driven>
> > </enterprise-beans>
> > </openejb-jar>
> > 
> > (Sorry for spamming whole XML files here, I'm just not sure what is
> > relevant for the problem and what isn't)
> > 
> > The annotations of the MDB has been changed to
> > @MessageDriven(name="AdminMDB", activationConfig = {
> > @ActivationConfigProperty(propertyName="destinationType",
> > propertyValue="javax.jms.Queue"),
> > @ActivationConfigProperty(propertyName="destination",
> > propertyValue="TestQueue")
> > })
> > The rest of the EJB code hasn't been changed by me.
> > 
> > Stephan
> > 
> > On Wed, Aug 26, 2009 at 09:33, Stephan
> > Mehlhase<s.mehlhase@googlemail.com> wrote:
> > > Hi,
> > > 
> > > thanks, but unfortunately this leads to the following while deploying:
> > > 
> > > Resource Adapter for MDB 'MDB'not found:
> > > ?j2eeType=JCAResourceAdapter,name=administeredObjectGroup#
> > > org.apache.geronimo.common.DeploymentException: Resource Adapter for
> > > MDB 'MDB'not found:
> > > ?j2eeType=JCAResourceAdapter,name=administeredObjectGroup#
> > > at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.setMdbContainerIds(EjbModuleBuilder.java:867)
> 
> > > at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:818)
> 
> > > at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)
> 
> > > at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
> > > at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
> > > at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)
> > > at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
> > > at java.lang.reflect.Method.invoke(Method.java:597)
> > > at
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 
> > > at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
> > > at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
> > > at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
> > > at
> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
> 
> > > at
> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
> 
> > > at java.lang.Thread.run(Thread.java:619)
> > > Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: No
> > > matches for referencePatterns:
> > > [?j2eeType=JCAResourceAdapter,name=administeredObjectGroup#]
> > > at
> org.apache.geronimo.kernel.config.Configuration.findGBeanData(Configuration.java:683)
> 
> > > at
> org.apache.geronimo.kernel.config.Configuration.findGBean(Configuration.java:656)
> > > at
> org.apache.geronimo.kernel.config.Configuration.findGBean(Configuration.java:635)
> > > at
> org.apache.geronimo.deployment.DeploymentContext.findGBean(DeploymentContext.java:207)
> 
> > > at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.setMdbContainerIds(EjbModuleBuilder.java:865)
> 
> > > ... 14 more
> > > 
> > > Stephan
> > > 
> > > On Tue, Aug 25, 2009 at 17:05, Jack Cai<greensight@gmail.com> wrote:
> > > > <dep:environment>
> > > > <dep:moduleId>
> > > > <dep:groupId>default</dep:groupId>
> > > > <dep:artifactId>TestEJB</dep:artifactId>
> > > > <dep:version>1.0</dep:version>
> > > > <dep:type>car</dep:type>
> > > > </dep:moduleId>
> > > > <dep:dependencies>
> > > > <dep:dependency>
> > > > <dep:groupId>org.apache.geronimo.configs
> > > > </dep:groupId>
> > > > <dep:artifactId>activemq-broker
> > > > </dep:artifactId>
> > > > <dep:type>car</dep:type>
> > > > </dep:dependency>
> > > > </dep:dependencies>
> > > > </dep:environment>
> > > > <ejb:enterprise-beans>
> > > > <ejb:message-driven>
> > > > <ejb:ejb-name>MDB</ejb:ejb-name>
> > > > <ejb:resource-adapter>
> > > > 
> > > > <ejb:resource-link>administeredObjectGroup</ejb:resource-link>
> > > > </ejb:resource-adapter>
> > > > </ejb:message-driven>
> > > > </ejb:enterprise-beans>
> > > > </ejb:openejb-jar>
> > > 
> > 
> 


[Attachment #3 (text/html)]

For 1, I think it&#39;s similar to how datasource are handled. When you delete a \
datasource definition, the data and tables will also not get deleted. In 2.2, you can \
clear the messages in a queue via the admin console.<br> <br>-Jack<br><br><div \
class="gmail_quote">On Thu, Aug 27, 2009 at 9:04 PM, Stephan Mehlhase <span \
dir="ltr">&lt;<a href="mailto:s.mehlhase@googlemail.com" \
target="_blank">s.mehlhase@googlemail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi everyone,<br> <br>
I think I got it.<br>
<br>
The queue&#39;s name was different from its physical name and the geronimo<br>
activemq environment was kind of trashed - so I reinstalled geronimo<br>
and changed the names such that they match. It seems to work now.<br>
<br>
So I had two problems:<br>
<br>
1. Geronimo did not clean up the existing queues if the rar is<br>
uninstalled in the webfrontend (using the J2EE Connectors module). Is<br>
there any additional step needed to also clean up the mbeans of these<br>
queues? (Somehow related: Why isn&#39;t it possible to edit the JMS<br>
Resources?)<br>
2. The name and the physical names of the queues have to match. If<br>
they don&#39;t the EJB will consume the messages of the queue named like<br>
the name and thus not receiving the messages from the producer which<br>
will happily enqueue messages into a queue named like the physical<br>
name of the queue. Is this a bug or did I again do something wrong in<br>
the declaration where to drop the messages?<br>
Both &quot;problems&quot; can be seen with JConsole.<br>
<br>
Best,<br>
Stephan<br>
<br>
On Wed, Aug 26, 2009 at 10:26, Stephan<br>
<div><div></div><div>Mehlhase&lt;<a href="mailto:s.mehlhase@googlemail.com" \
target="_blank">s.mehlhase@googlemail.com</a>&gt; wrote:<br> &gt; Hi,<br>
&gt;<br>
&gt; Okay, so I tried the Example from the documentation. It works out of<br>
&gt; the box. I then tried to change to the message queue I created and it<br>
&gt; stopped working - so I guess something is wrong there. So here is the<br>
&gt; deployment plan of the JMS Resources I created:<br>
&gt;<br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&gt; &lt;connector xmlns=&quot;<a \
href="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2" \
target="_blank">http://geronimo.apache.org/xml/ns/j2ee/connector-1.2</a>&quot;&gt;<br>
 &gt;    &lt;dep:environment<br>
&gt; xmlns:dep=&quot;<a href="http://geronimo.apache.org/xml/ns/deployment-1.2" \
target="_blank">http://geronimo.apache.org/xml/ns/deployment-1.2</a>&quot;&gt;<br> \
&gt;        &lt;dep:moduleId&gt;<br> &gt;            \
&lt;dep:groupId&gt;console.jms&lt;/dep:groupId&gt;<br> &gt;            \
&lt;dep:artifactId&gt;Test&lt;/dep:artifactId&gt;<br> &gt;            \
&lt;dep:version&gt;1.0&lt;/dep:version&gt;<br> &gt;            \
&lt;dep:type&gt;rar&lt;/dep:type&gt;<br> &gt;        &lt;/dep:moduleId&gt;<br>
&gt;        &lt;dep:dependencies&gt;<br>
&gt;            &lt;dep:dependency&gt;<br>
&gt;                &lt;dep:groupId&gt;org.apache.geronimo.configs&lt;/dep:groupId&gt;<br>
 &gt;                &lt;dep:artifactId&gt;activemq-broker&lt;/dep:artifactId&gt;<br>
&gt;                &lt;dep:type&gt;car&lt;/dep:type&gt;<br>
&gt;            &lt;/dep:dependency&gt;<br>
&gt;        &lt;/dep:dependencies&gt;<br>
&gt;    &lt;/dep:environment&gt;<br>
&gt;    &lt;resourceadapter&gt;<br>
&gt;        &lt;resourceadapter-instance&gt;<br>
&gt;            &lt;resourceadapter-name&gt;Test&lt;/resourceadapter-name&gt;<br>
&gt;            &lt;nam:workmanager<br>
&gt; xmlns:nam=&quot;<a href="http://geronimo.apache.org/xml/ns/naming-1.2" \
target="_blank">http://geronimo.apache.org/xml/ns/naming-1.2</a>&quot;&gt;<br> &gt;   \
&lt;nam:gbean-link&gt;DefaultWorkManager&lt;/nam:gbean-link&gt;<br> &gt;            \
&lt;/nam:workmanager&gt;<br> &gt;        &lt;/resourceadapter-instance&gt;<br>
&gt;        &lt;outbound-resourceadapter&gt;<br>
&gt;            &lt;connection-definition&gt;<br>
&gt;<br>
&gt; &lt;connectionfactory-interface&gt;javax.jms.ConnectionFactory&lt;/connectionfactory-interface&gt;<br>
 &gt;                &lt;connectiondefinition-instance&gt;<br>
&gt;                    &lt;name&gt;TestFactory&lt;/name&gt;<br>
&gt;<br>
&gt; &lt;implemented-interface&gt;javax.jms.QueueConnectionFactory&lt;/implemented-interface&gt;<br>
 &gt;<br>
&gt; &lt;implemented-interface&gt;javax.jms.TopicConnectionFactory&lt;/implemented-interface&gt;<br>
 &gt;                    &lt;connectionmanager&gt;<br>
&gt;                        &lt;xa-transaction&gt;<br>
&gt;                            &lt;transaction-caching/&gt;<br>
&gt;                        &lt;/xa-transaction&gt;<br>
&gt;                        &lt;single-pool&gt;<br>
&gt;                            &lt;match-one/&gt;<br>
&gt;                        &lt;/single-pool&gt;<br>
&gt;                    &lt;/connectionmanager&gt;<br>
&gt;                &lt;/connectiondefinition-instance&gt;<br>
&gt;            &lt;/connection-definition&gt;<br>
&gt;        &lt;/outbound-resourceadapter&gt;<br>
&gt;    &lt;/resourceadapter&gt;<br>
&gt;    &lt;adminobject&gt;<br>
&gt;        &lt;adminobject-interface&gt;javax.jms.Queue&lt;/adminobject-interface&gt;<br>
 &gt;        &lt;adminobject-class&gt;org.apache.activemq.command.ActiveMQQueue&lt;/adminobject-class&gt;<br>
 &gt;        &lt;adminobject-instance&gt;<br>
&gt;            &lt;message-destination-name&gt;TestQueue&lt;/message-destination-name&gt;<br>
 &gt;            &lt;config-property-setting<br>
&gt; name=&quot;PhysicalName&quot;&gt;testqueue&lt;/config-property-setting&gt;<br>
&gt;        &lt;/adminobject-instance&gt;<br>
&gt;    &lt;/adminobject&gt;<br>
&gt;    &lt;adminobject&gt;<br>
&gt;        &lt;adminobject-interface&gt;javax.jms.Topic&lt;/adminobject-interface&gt;<br>
 &gt;        &lt;adminobject-class&gt;org.apache.activemq.command.ActiveMQTopic&lt;/adminobject-class&gt;<br>
 &gt;    &lt;/adminobject&gt;<br>
&gt; &lt;/connector&gt;<br>
&gt;<br>
&gt; I basically just left the defaults in it. However, the Servlet seems<br>
&gt; to work correctly as I see the following in the logs on hitting<br>
&gt; submit:<br>
&gt;<br>
&gt; 2009-08-26 10:17:13,713 DEBUG [ActiveMQSession] Sending message:<br>
&gt; ActiveMQTextMessage {commandId = 0, responseRequired = false,<br>
&gt; messageId = ID:yoda-55927-1251270725979-3:25:1:1:4,<br>
&gt; originalDestination = null, originalTransactionId = null, producerId =<br>
&gt; ID:yoda-55927-1251270725979-3:25:1:1, destination = queue://testqueue,<br>
&gt; transactionId = null, expiration = 0, timestamp = 1251274633713,<br>
&gt; arrival = 0, correlationId = null, replyTo = null, persistent = true,<br>
&gt; type = null, priority = 4, groupID = null, groupSequence = 0,<br>
&gt; targetConsumerId = null, compressed = false, userID = null, content =<br>
&gt; null, marshalledProperties = null, dataStructure = null,<br>
&gt; redeliveryCounter = 0, size = 0, properties = null, readOnlyProperties<br>
&gt; = true, readOnlyBody = true, droppable = false, text = userid:ghjfgh}<br>
&gt; 2009-08-26 10:17:13,714 DEBUG [testqueue] No subscriptions registered,<br>
&gt; will not dispatch message at this time.<br>
&gt;<br>
&gt; So the message arrives at the queue but won&#39;t be dispatched because my<br>
&gt; EJB is not registered. The plan for the EJB now looks like:<br>
&gt;<br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; \
standalone=&quot;yes&quot;?&gt;<br> &gt; &lt;openejb-jar xmlns=&quot;<a \
href="http://www.openejb.org/xml/ns/openejb-jar-2.2" \
target="_blank">http://www.openejb.org/xml/ns/openejb-jar-2.2</a>&quot;<br> &gt;      \
xmlns:nam=&quot;<a href="http://geronimo.apache.org/xml/ns/naming-1.2" \
target="_blank">http://geronimo.apache.org/xml/ns/naming-1.2</a>&quot;<br> &gt; \
xmlns:pkgen=&quot;<a href="http://www.openejb.org/xml/ns/pkgen-2.0" \
target="_blank">http://www.openejb.org/xml/ns/pkgen-2.0</a>&quot;<br> &gt;        \
xmlns:sec=&quot;<a href="http://geronimo.apache.org/xml/ns/security-1.2" \
target="_blank">http://geronimo.apache.org/xml/ns/security-1.2</a>&quot;<br> &gt; \
xmlns:sys=&quot;<a href="http://geronimo.apache.org/xml/ns/deployment-1.2" \
target="_blank">http://geronimo.apache.org/xml/ns/deployment-1.2</a>&quot;&gt;<br> \
&gt;        &lt;sys:environment&gt;<br> &gt;                &lt;sys:moduleId&gt;<br>
&gt;                        &lt;sys:groupId&gt;default&lt;/sys:groupId&gt;<br>
&gt;                        \
&lt;sys:artifactId&gt;MessageDrivenBean&lt;/sys:artifactId&gt;<br> &gt;               \
&lt;sys:version&gt;1.0&lt;/sys:version&gt;<br> &gt;                        \
&lt;sys:type&gt;car&lt;/sys:type&gt;<br> &gt;                \
&lt;/sys:moduleId&gt;<br> &gt;                &lt;sys:dependencies&gt;<br>
&gt;                        &lt;sys:dependency&gt;<br>
&gt;                                \
&lt;sys:groupId&gt;console.jms&lt;/sys:groupId&gt;<br> &gt;                           \
&lt;sys:artifactId&gt;Test&lt;/sys:artifactId&gt;<br> &gt;                            \
&lt;sys:version&gt;1.0&lt;/sys:version&gt;<br> &gt;                                \
&lt;sys:type&gt;rar&lt;/sys:type&gt;<br> &gt;                        \
&lt;/sys:dependency&gt;<br> &gt;                &lt;/sys:dependencies&gt;<br>
&gt;        &lt;/sys:environment&gt;<br>
&gt;        &lt;enterprise-beans&gt;<br>
&gt;                &lt;message-driven&gt;<br>
&gt;                        &lt;ejb-name&gt;AdminMDB&lt;/ejb-name&gt;<br>
&gt;                        &lt;nam:resource-adapter&gt;<br>
&gt;                                \
&lt;nam:resource-link&gt;Test&lt;/nam:resource-link&gt;<br> &gt;                      \
&lt;/nam:resource-adapter&gt;<br> &gt;                        \
&lt;activation-config&gt;<br> &gt;                                \
&lt;activation-config-property&gt;<br> &gt;                                        \
&lt;activation-config-property-name&gt;<br> &gt;                                      \
destination<br> &gt;                                        \
&lt;/activation-config-property-name&gt;<br> &gt;                                     \
&lt;activation-config-property-value&gt;<br> &gt;                                     \
TestQueue<br> &gt;                                        \
&lt;/activation-config-property-value&gt;<br> &gt;                                \
&lt;/activation-config-property&gt;<br> &gt;                                \
&lt;activation-config-property&gt;<br> &gt;                                        \
&lt;activation-config-property-name&gt;<br> &gt;                                      \
destinationType<br> &gt;                                        \
&lt;/activation-config-property-name&gt;<br> &gt;                                     \
&lt;activation-config-property-value&gt;<br> &gt;                                     \
javax.jms.Queue<br> &gt;                                        \
&lt;/activation-config-property-value&gt;<br> &gt;                                \
&lt;/activation-config-property&gt;<br> &gt;                        \
&lt;/activation-config&gt;<br> &gt;                &lt;/message-driven&gt;<br>
&gt;        &lt;/enterprise-beans&gt;<br>
&gt; &lt;/openejb-jar&gt;<br>
&gt;<br>
&gt; (Sorry for spamming whole XML files here, I&#39;m just not sure what is<br>
&gt; relevant for the problem and what isn&#39;t)<br>
&gt;<br>
&gt; The annotations of the MDB has been changed to<br>
&gt; @MessageDriven(name=&quot;AdminMDB&quot;, activationConfig = {<br>
&gt;            @ActivationConfigProperty(propertyName=&quot;destinationType&quot;,<br>
 &gt; propertyValue=&quot;javax.jms.Queue&quot;),<br>
&gt;            @ActivationConfigProperty(propertyName=&quot;destination&quot;,<br>
&gt; propertyValue=&quot;TestQueue&quot;)<br>
&gt;        })<br>
&gt; The rest of the EJB code hasn&#39;t been changed by me.<br>
&gt;<br>
&gt; Stephan<br>
&gt;<br>
&gt; On Wed, Aug 26, 2009 at 09:33, Stephan<br>
&gt; Mehlhase&lt;<a href="mailto:s.mehlhase@googlemail.com" \
target="_blank">s.mehlhase@googlemail.com</a>&gt; wrote:<br> &gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; thanks, but unfortunately this leads to the following while deploying:<br>
&gt;&gt;<br>
&gt;&gt; Resource Adapter for MDB &#39;MDB&#39;not found:<br>
&gt;&gt; ?j2eeType=JCAResourceAdapter,name=administeredObjectGroup#<br>
&gt;&gt; org.apache.geronimo.common.DeploymentException: Resource Adapter for<br>
&gt;&gt; MDB &#39;MDB&#39;not found:<br>
&gt;&gt; ?j2eeType=JCAResourceAdapter,name=administeredObjectGroup#<br>
&gt;&gt;        at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.setMdbContainerIds(EjbModuleBuilder.java:867)<br>
 &gt;&gt;        at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:818)<br>
 &gt;&gt;        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)<br>
 &gt;&gt;        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)<br>
 &gt;&gt;        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)<br>
 &gt;&gt;        at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)<br>
&gt;&gt;        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
 &gt;&gt;        at java.lang.reflect.Method.invoke(Method.java:597)<br>
&gt;&gt;        at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)<br>
 &gt;&gt;        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)<br>
 &gt;&gt;        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)<br>
 &gt;&gt;        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)<br>
 &gt;&gt;        at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)<br>
 &gt;&gt;        at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)<br>
 &gt;&gt;        at java.lang.Thread.run(Thread.java:619)<br>
&gt;&gt; Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: No<br>
&gt;&gt; matches for referencePatterns:<br>
&gt;&gt; [?j2eeType=JCAResourceAdapter,name=administeredObjectGroup#]<br>
&gt;&gt;        at org.apache.geronimo.kernel.config.Configuration.findGBeanData(Configuration.java:683)<br>
 &gt;&gt;        at org.apache.geronimo.kernel.config.Configuration.findGBean(Configuration.java:656)<br>
 &gt;&gt;        at org.apache.geronimo.kernel.config.Configuration.findGBean(Configuration.java:635)<br>
 &gt;&gt;        at org.apache.geronimo.deployment.DeploymentContext.findGBean(DeploymentContext.java:207)<br>
 &gt;&gt;        at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.setMdbContainerIds(EjbModuleBuilder.java:865)<br>
 &gt;&gt;        ... 14 more<br>
&gt;&gt;<br>
&gt;&gt; Stephan<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Aug 25, 2009 at 17:05, Jack Cai&lt;<a \
href="mailto:greensight@gmail.com" target="_blank">greensight@gmail.com</a>&gt; \
wrote:<br> &gt;&gt;&gt;        &lt;dep:environment&gt;<br>
&gt;&gt;&gt;                &lt;dep:moduleId&gt;<br>
&gt;&gt;&gt;                        \
&lt;dep:groupId&gt;default&lt;/dep:groupId&gt;<br> &gt;&gt;&gt;                       \
&lt;dep:artifactId&gt;TestEJB&lt;/dep:artifactId&gt;<br> &gt;&gt;&gt;                 \
&lt;dep:version&gt;1.0&lt;/dep:version&gt;<br> &gt;&gt;&gt;                        \
&lt;dep:type&gt;car&lt;/dep:type&gt;<br> &gt;&gt;&gt;                \
&lt;/dep:moduleId&gt;<br> &gt;&gt;&gt;                &lt;dep:dependencies&gt;<br>
&gt;&gt;&gt;                        &lt;dep:dependency&gt;<br>
&gt;&gt;&gt;                                \
&lt;dep:groupId&gt;org.apache.geronimo.configs<br> &gt;&gt;&gt; \
&lt;/dep:groupId&gt;<br> &gt;&gt;&gt;                                \
&lt;dep:artifactId&gt;activemq-broker<br> &gt;&gt;&gt; &lt;/dep:artifactId&gt;<br>
&gt;&gt;&gt;                                &lt;dep:type&gt;car&lt;/dep:type&gt;<br>
&gt;&gt;&gt;                        &lt;/dep:dependency&gt;<br>
&gt;&gt;&gt;                &lt;/dep:dependencies&gt;<br>
&gt;&gt;&gt;        &lt;/dep:environment&gt;<br>
&gt;&gt;&gt;        &lt;ejb:enterprise-beans&gt;<br>
&gt;&gt;&gt;                &lt;ejb:message-driven&gt;<br>
&gt;&gt;&gt;                        &lt;ejb:ejb-name&gt;MDB&lt;/ejb:ejb-name&gt;<br>
&gt;&gt;&gt;                        &lt;ejb:resource-adapter&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;  &lt;ejb:resource-link&gt;administeredObjectGroup&lt;/ejb:resource-link&gt;<br>
 &gt;&gt;&gt;                        &lt;/ejb:resource-adapter&gt;<br>
&gt;&gt;&gt;                &lt;/ejb:message-driven&gt;<br>
&gt;&gt;&gt;        &lt;/ejb:enterprise-beans&gt;<br>
&gt;&gt;&gt; &lt;/ejb:openejb-jar&gt;<br>
&gt;&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic