facebook

Using Properties in xdoclet [Closed]

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

    Jason Price
    Member

    I am trying to set a property for the jndi name for an EJB project that will be included in several Web Apps. I need to do this so when I deply the apps on the servers the jndi names are different.
    So far I have changed the ejb xdoclet tags to this:

    @ejb.bean name="Customer"
                display-name="CustomerEJB"
                description="Customer related business methods"
                jndi-name="${ejb.jndiname}/Customer"
                type="Stateless"
                view-type="remote"

    I have also created a file called “xdoclet-build.properties” with the following contents:

    
    ejb.jndiname = NIS
    

    However when I run xdoclet and deploy to jboss, the jndi name is ejb/Customer!

    What am I doing wrong?

    #227638 Reply

    Riyad Kalla
    Member

    Researching…

    #227640 Reply

    Jason Price
    Member

    I managed to sort it. I needed to tell xdocluet to generate the jboss.xml file as well (added it through the myeclipse-xdoclet properties). This now deployes correctly on jboss.

    #227641 Reply

    Riyad Kalla
    Member

    Ahh, thanks for following up Funky.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Using Properties in xdoclet [Closed]

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