facebook

XDoclet, JNDI and JBoss

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #250709 Reply

    smutchler
    Member

    I’m creating a stateless session bean by following the pattern in the EJB documentation on this site. I run xdoclet and it generates all the classes but when I deploy the EAR the bean gets bound to a funny JNDI name like AccountManager@12123123. Thus the helper class cannot find it. Here are my xdoclet tags:

    * @ejb.bean name=”AccountManagerImpl”
    * display-name=”Name for AccountManagerImpl”
    * description=”Description for AccountManagerImpl”
    * jndi-name=”ejb/AccountManagerImpl”
    * type=”Stateless”
    * view-type=”local”

    It doesn’t appear that a jboss.xml file is being created. I assume this is where the JNDI name would be specified. Does anyone have any idea why?

    #250770 Reply

    Riyad Kalla
    Member

    You may need to add a jboss task to your EJB doclet to generate it. Have a look here: http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/jboss/ejb/JBossSubTask.html

    #251830 Reply

    smutchler
    Member

    Thanks you were right on! It’s not real intuitive how you have to add the task with having to right click to see them. I appreciate your help!

    #251841 Reply

    Riyad Kalla
    Member

    You are exactly right, it’s sort of hidden. We hope to improve the XDoclet support around the MyEclipse 5.1 timeframe.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: XDoclet, JNDI and JBoss

You must be logged in to post in the forum log in