tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Locating JMS queue problem
Date Mon, 23 Jan 2012 12:48:47 GMT
Hi,

if the component you are using to send the message is managed simply get
the queue injected, you'll not need any lookup.

- Romain


2012/1/23 kazak777 <kazak777@gmail.com>

> This is my ejb-jar.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
>         xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
>         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
>         version="3.0">
>
>   <enterprise-beans>
>        <message-driven>
>            <ejb-name>ProcessMonitoringBean</ejb-name>
>            <ejb-class>package.ProcessMonitoringBean</ejb-class>
>            <activation-config>
>                <activation-config-property>
>
>
> <activation-config-property-name>destination</activation-config-property-name>
>
> <activation-config-property-value>openejb:Resource/jms/MonitoringQueue
>                    </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>
> </ejb-jar>
>
> When I run the test, I get exception:
>
> javax.naming.NameNotFoundException: Name "jms/MonitoringQueue" not found.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Locating-JMS-queue-problem-tp4312562p4320043.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message