[prev in list] [next in list] [prev in thread] [next in thread]
List: openejb-user
Subject: Re: Locating JMS queue problem
From: kazak777 <kazak777 () gmail ! com>
Date: 2012-01-23 13:21:25
Message-ID: 1327324885139-4320663.post () n4 ! nabble ! com
[Download RAW message or body]
I tried to inject, but it didn't work. Nothing is injected. Perhaps I'm doing
something wrong (i never used EJBs before). Here is part of my code where I
tried to inject queue:
@Stateful(name = "Scenario")
public class ScenarioBean implements Scenario {
@Resource(name = "jms/MonitoringQueue")
private Destination destination;
public void setDestination(Destination destination) {
this.destination = destination;
}
}
Here is part of test log:
......
INFO - Configuring Service(id=jms/MonitoringQueue, type=Resource,
provider-id=Default Queue)
DEBUG - Override [destination=jms/ProcessMonitoring]
......
INFO - Auto-linking resource-ref 'java:comp/env/jms/MonitoringQueue' in bean
Scenario to Resource(id=jms/MonitoringQueue)
......
Variable 'destination' remains null. As you can see, resource
'jms/MonitoringQueue' binds to 'java:comp/env/jms/MonitoringQueue'.
Destination of ProcessMonitoringBean binds to
'openejb/Resource/jms/MonitoringQueue'.
--
View this message in context: \
http://openejb.979440.n4.nabble.com/Locating-JMS-queue-problem-tp4312562p4320663.html \
Sent from the OpenEJB User mailing list archive at Nabble.com.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic