0 Replies Latest reply on Apr 23, 2008 7:21 AM by moksha2007

    Virtual host issue

    moksha2007

      Hi,

      When I look at the web-console, I see the following list of applications:

      localhost
      phonegreetings/jmx-console [1]
      localhost/invoker
      localhost/web-console
      phonegreetings
      phonegreetings/jbossws [1]
      localhost/webservices [2]
      localhost/jbossmq-httpil
      


      Those marked with [1] used to be localhost, but I've added a virtual-host entry in the jboss-web.xml, so they now appear under phonegreetings.

      Problem is, that I want to have [2] under the virtual host as well. The application in question is an auto-generated wsdl. In other words, it is a stateless EJB annotated with WebService and WebContext like:

      @Stateless
      @Local({PhoneGreetingsService.class})
      @WebService(targetNamespace="pg", serviceName="PhoneGreetings", portName="PhoneGreetingsPort")
      @WebContext(contextRoot="/webservices")
      public class PhoneGreetingsServiceBean implements PhoneGreetingsService {
      


      How to do that? Where to configure? Is this the right approach?

      Thanks in advance,
      Mike