[jbossws-issues] [JBoss JIRA] Commented: (JBWS-1813) context-root in jboss.xml is ignored

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Wed Oct 10 04:49:03 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBWS-1813?page=comments#action_12381351 ] 
            
Thomas Diesler commented on JBWS-1813:
--------------------------------------

In Branch_4_2 the EJBArchiveMetaDataAdapterEJB3 does indeed not access metadata from jboss.xml

Carlo, could you please advise how to do this?

   public EJBArchiveMetaData buildUnifiedApplicationMetaData(Deployment dep)
   {
      EJBArchiveMetaData appMetaData = null;
      
      ObjectName oname = (ObjectName)dep.getProperty(DEPLOYED_OBJECT);
      
      // jboss.j2ee:service=EJB3,module=some-ejb3.jar
      if (oname != null && oname.getDomain().equals("jboss.j2ee") && "EJB3".equals(oname.getKeyProperty("service")))
      {
         Ejb3ModuleMBean ejb3Module = getEJB3Module(oname);

         ArrayList<EJBMetaData> beans = new ArrayList<EJBMetaData>();
         for (Object container : ejb3Module.getContainers().values())
         {
            if (container instanceof StatelessContainer)
            {
               StatelessContainer slc = (StatelessContainer)container;
               EJBMetaData usmd = new SLSBMetaData();
               usmd.setEjbName(slc.getEjbName());
               usmd.setEjbClass(slc.getBeanClassName());
               beans.add(usmd);
            }
         }

         appMetaData = new EJBArchiveMetaData();
         appMetaData.setEnterpriseBeans(beans);
      }
      return appMetaData;
   }


> context-root in jboss.xml is ignored
> ------------------------------------
>
>                 Key: JBWS-1813
>                 URL: http://jira.jboss.com/jira/browse/JBWS-1813
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-jaxws, jbossws-jaxrpc
>    Affects Versions: jbossws-2.0.1
>            Reporter: Thomas Diesler
>         Assigned To: Thomas Diesler
>             Fix For:  jbossws-2.0.2
>
>
> I want to override the default context root for my Web Services.
> So in my jboss.xml for (myEjb.jar) I have
> [QUOTE]
> <context-root>/webservices</context-root>
> [/QUOTE]
> inside the jboss->webservices node.
> But this doesn't seem to be working, the WSDLs are published at
> http://host/myApp-myEjb/

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list