Red Hat Bugzilla – Bug 536191
Disable web services
Last modified: 2008-08-19 15:51:00 EDT
Since we have no current use for them, it would greatly speed up server boot time if we removed the loading of the web services.
agreed. these can be disabled by default, and we can add an element in our documentation about how to turn them on for integrators that want to communicate with the exposed platform services.
(12:04:11 PM) mspritz: FYI, if you want your JON server to startup faster, you can disable the EJB3 Webservices by going into you deploy/jbossws.sar/META-INF/jboss-service.xml and comment out the last MBean.
(12:04:11 PM) mspritz: Now you will see three other MBean not starting because of depencies like
(12:04:11 PM) mspritz: ObjectName: jboss.beans:service=JBossBeanDeployment,name='jbossws.sar#jbossws.beans'
(12:04:11 PM) mspritz: However, these are MBeans that you don't need to run JON as we are running it. It just won't deploy mazz's web services.
(12:04:42 PM) mspritz: If you need mazz's web services then don't comment that MBean out.
So basically comment out the last mbean in the deploy/jbossws.sar/META-INF/jboss-service.xml
comment out mbean <bean name="WSDeployerHook_JAXWS_EJB3" at deploy\jbossws.sar\jbossws.beans\META-INF\jboss-beans.xml line 245
No web services and no errors if you do both.
actually, i just tried adding ".rej" to the jbossws.sar, and it did the same thing. going with this solution since the filesystem structure will make it clear that it is disabled without having to dive into any files to understand what to un/comment.
rev1139 - add "prepare-web-services" target to the container's ant build script;
add boolean "rhq.server.enable.web.services" property at the rhq root pom;
pass property through to ant build script in container's pom;
requires clean/install of the container module to take effect;
rev1145 - more resilient mechanism for disabling web services;
rev1146 - we should always run prrepare-web-services-1, and conditionally run prepare-web-services-2;
rev1147 - ok, thanks to http://jira.codehaus.org/browse/MNG-3690 i had to rename this property from "rhq.server.enable.web.services" to "rhq.server.enable.ws"
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-568