1 Reply Latest reply on Jul 28, 2009 12:34 PM by Peter Johnson

    EJB Deployment and URL names

    Anders Jensen Newbie

      Hi all,

      I am a new user to this site, so this is my first deployment support question for you guys. I hope that some of you competent people will help me out.

      I am using the latest JBoss 5.1 on Mac OS X 10.5 (development) and FreeBSD (deployment). Here, I deploy an ear file (with NetBeans 6.7) with the following naming scheme:

      xmir2.ear (main archive)
      + xmir2-ejb.jar (contains two web services using JAX-WS)
      + xmir2-web.war (contains some JSP files)

      Everything works fine, but I have a problem specifying and customizing the deployment path for the two EJB 3 based web services that NetBeans has wrapped in the xmir2-ejb.jar file. The service, which is named Xmir, is accessed through the following URL on my computerP:

      http://localhost:8080/xmir2-xmir2-ejb/Xmir

      I would like to change this 'xmir2-xmir2-ejb' into something shorter? It looks like JBoss creates that deployment URL from the name of the ear and jar file joined together. My questions are now:

      1) How can I change the deployment path of the web services? (Using web.xml is not an option since the web services are NOT contained in the war archive but in the EJB jar archive -- this is a default Netbeans setup)
      2) Is it possible to use some kind of virtual directory instead of changing/hardcoding the deployment path for the above web service URL?

      Best regards,

      Anders