[jboss-user] [EJB 3.0] - How can I bind a JMS topic to an EJBs ENC?
johk johk
do-not-reply at jboss.com
Fri Oct 8 06:07:28 EDT 2010
johk johk [http://community.jboss.org/people/johk] created the discussion
"How can I bind a JMS topic to an EJBs ENC?"
To view the discussion, visit: http://community.jboss.org/message/565537#565537
--------------------------------------------------------------
I have an EJB defined as follows:
@Stateless(name="Search")
@TransactionAttribute(REQUIRED)
@Local(SearchEngine.class)
public class SearchEngineEJB
extends
AbstractEJB
implements
SearchEngine {
@Resource(
name="topic_conn_factory",
authenticationType=AuthenticationType.CONTAINER,
type=TopicConnectionFactory.class)
private TopicConnectionFactory _connectionFactory;
@Resource(
name="topic_broadcast",
authenticationType=AuthenticationType.CONTAINER,
type=Topic.class)
private Topic _broadcast;
...
}
I'm trying to register the appropriate objects from JNDI to the names specitied in the @Resource annotations. My jboss.xml is as follows:
<jboss>
<enterprise-beans>
<session>
<ejb-name>Search</ejb-name>
<resource-env-ref>
<resource-env-ref-name>topic_conn_factory</resource-env-ref-name>
<jndi-name>java:/JmsXA</jndi-name>
</resource-env-ref>
<resource-env-ref>
<resource-env-ref-name>topic_broadcast</resource-env-ref-name>
<jndi-name>topic/foo</jndi-name>
</resource-env-ref>
</session>
</enterprise-beans>
</jboss>
The binding for the connection factory works fine. However, when I deploy jBoss reports the following problem:
Deployment "vfszip:/home/.../cc7.ear/" is in error due to the following reason(s):
java.lang.RuntimeException: mapped-name or message-destination-link is required for topic_broadcast of deployment Search
*Could someone shed some light on hiw I can resolve this?*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/565537#565537]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101008/faa3a2cf/attachment.html
More information about the jboss-user
mailing list