Hi,
I'm strugling with XDoclet. I'm using JBossIDE to generate deployment
descriptors for accessing a session bean from a servlet using it's local
interfaces. I can't find the correct Xdoclet tag to use in my servlet to
generate a correct jboss-web.xml file. This is what I've got:
/**
| * Servlet Class
| *
| * @web.servlet name="Compute"
| * display-name="Compute"
| * description="Computes Fibonaci numbers 0..n
for a given number n."
| *
| * @web.servlet-mapping url-pattern="/Compute"
| *
| * @web.ejb-local-ref name="ejb/myFibo"
| * description = "Reference to a bean that
calculates Fibonaci numbers."
| * type="Session"
| * local="tutorial.interfaces.FiboLocal"
| * home="tutorial.interfaces.FiboLocalHome"
| *
| * @jboss.ejb-ref-jndi ref-name = "ejb/myFibo"
| * jndi-name = "FiboLocal"
| *
| *
| */
| public class ComputeServlet extends HttpServlet {
| ...
| }
|
This (ofcourse) results in the following stuff in my jboss-web.xml file:
<jboss-web>
|
| (...)
|
| <!-- EJB References -->
| <!--
| For additional ejb-ref tags add a merge file called
jbossweb-ejb-ref.xml
| -->
| <ejb-ref>
| <ejb-ref-name>ejb/myFibo</ejb-ref-name>
| <jndi-name>FiboLocal</jndi-name>
| </ejb-ref>
|
| <!-- EJB Local References -->
|
| </jboss-web>
|
Instead of the wanted:
| <jboss-web>
|
| (...)
|
| <!-- EJB References -->
| <!--
| For additional ejb-ref tags add a merge file called
jbossweb-ejb-ref.xml
| -->
|
| <!-- EJB Local References -->
|
| <ejb-local-ref>
| <ejb-ref-name>ejb/myFibo</ejb-ref-name>
| <local-jndi-name>FiboLocal</local-jndi-name>
| </ejb-local-ref>
|
| </jboss-web>
|
I understand the problem lies with the @jboss.ejb-ref-jndi tag, which only gets
a remote jndi reference generated.
What is the correct XDoclet tag to get a local jndi reference in my
jboss-web.xml?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3902992#3902992
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3902992
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user