You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/06/29 22:11:39 UTC
DO NOT REPLY [Bug 35552] New: -
JMS destination under
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35552>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35552
Summary: JMS destination under <Context>
Product: Tomcat 5
Version: 5.5.9
Platform: Other
OS/Version: All
Status: NEW
Severity: critical
Priority: P2
Component: Webapps:Documentation
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: atanu.mukherjee@jpmchase.com
Hi,
My web app running in Tomcat 5.5.9 will be a JMS client for ActiveMQ. I have
created the following web.xml for the webapp.
<web-app>
....
<resource-ref>
<description>Example Test application</description>
<res-ref-name>jms/AConnectionFactory</res-ref-name>
<res-type>javax.jms.ConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<message-destination-ref>
<message-destination-ref-name>jms/ATopic</message-destination-ref-name>
<message-destination-type>javax.jms.Topic</message-destination-type>
<message-destination-usage>Consumes</message-destination-usage>
<message-destination-link>MyTopic</message-destination-link>
</message-destination-ref>
</web-app>
I will now create a context descriptor <myapp>.xml file under
<CATALINA_BASE>/conf/Catalina/localhost that will have a top-level <Context>
element. I know what to put there for the JMS ConnectionFactory because the
ActiveMQ website has given an example for that. It will be a <Resource>
element.
My problem is - I want to find the Topic as well using the JNDI lookup. I do
not know the following.
1. Is <Resource> element applicable for mapping with <message-destination-ref>
in web.xml ?
2. Do you have any sample <Context>.xml that shows JNDI lookup for ActiveMQ
topic and/or queue ?
Appreciate any help in this matter.
Regards
Atanu
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org