@weblogic.resource-env-description in weblogic.xml

Jacob Turpin <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
Hi,
   
  I'm trying to set up JMS topics in a WAR file using XDoclet.  I have the following Xdoclet tags in a Java file within this WAR (as well as others):
   
  * @web.resource-ref
  * name = "jms/TopicFactory"
  * type = "javax.jms.TopicConnectionFactory"
  * auth = "Container"
  * @web.resource-env-ref
  * name = "jms/myEventTopic"
  * type = "javax.jms.Topic"
  * @weblogic.resource-description
  * res-ref-name = "jms/TopicFactory"
  * jndi-name = "weblogic.jms.myConnectionFactory"
  * @weblogic.resource-env-description
  * res-env-ref-name = "jms/myEventTopic"
  * jndi-name = "weblogic.jms.myEventTopic"
   
  My resulting web.xml file contains the following relevant entries:
   
  <resource-env-ref >
    <resource-env-ref-name>jms/myEventTopic</resource-env-ref-name>
    <resource-env-ref-type>javax.jms.Topic</resource-env-ref-type>
  </resource-env-ref>
  <resource-ref >
    <res-ref-name>jms/TopicFactory</res-ref-name>
    <res-type>javax.jms.TopicConnectionFactory</res-type>
    <res-auth>Container</res-auth>
  </resource-ref>
   
  However, my resulting weblogic.xml file only contains the following relevant entry:
   
  <reference-descriptor>
    <resource-description>
      <res-ref-name>jms/TopicFactory</res-ref-name>
      <jndi-name>weblogic.jms.myConnectionFactory</jndi-name>
    </resource-description>
  </reference-descriptor>
   
  I am expecting to also see a resource-env-description in the weblogic.xml file as well, similar to the following:
   
  <resource-env-description>
    <res-env-ref-name>jms/myEventTopic</res-env-ref-name>
    <jndi-name>weblogic.jms.myEventTopic</jndi-name>
  </resource-env-description>
   
  It looks like Xdoclet puts the above <resource-env-description> tag into the weblogic-ejb-jar.xml file, but shouldn't it also put this tag into the weblogic.xml file when you simply have a web application?  Any thoughts or help people could send my way would be much appreciated!!!
   
  Thanks,
   
  Jacob

		
---------------------------------
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.