Hi Jeff,
On 6 Apr 2006, at 17:31, Jeff Genender wrote:
But I *think*, you can shut off the gbean as I explained in my last
email, then redeclare it in the config.xml.
Here is an example of a new ConnectorGBean that is declared in the
Tomcat configuration section of the config.xml:
Thanks for the information.
I've tried turning off the GBean I'm interested in like this:
<configuration name="geronimo/j2ee-deployer/1.1-SNAPSHOT/car">
<gbean name="WebServiceBuilder" load="false">
...
This definitely works. The only problem is that the j2ee-deployer
then fails to start and this causes the entire server startup to
fail. My config has already started a service that creates a
different WebServiceBuilder Bean but, I guess, as it is in a
different module, it will not be used by the j2ee-deployer service.
This works ok in trunk but there the WebServiceBuilder has it's own
deployment plan so can be more easily replaced. Without this
separation of deployer plans, I think I am snookered.
Is there any plan to refactor the plans on 1.1 to allow greater
separation between the deployers?
thanks
Conrad
<gbean
name="geronimo.server:J2EEApplication=null,J2EEModule=geronimo/
tomcat/1.0/
car,J2EEServer=geronimo,j2eeType=GBean,name=TomcatWebConnector-HTTP-
MyNewHTTPListener"
gbeanInfo="org.apache.geronimo.tomcat.ConnectorGBean">
<attribute name="protocol">HTTP</attribute>
<attribute name="host">0.0.0.0</attribute>
<attribute name="port">9090</attribute>
<attribute name="name">MyNewHTTPListener</attribute>
<reference name="TomcatContainer">
<pattern><gbean-
name>geronimo.server:J2EEApplication=null,J2EEModule=geronimo/
tomcat/1.0/
car,J2EEServer=geronimo,j2eeType=GBean,name=TomcatWebContainer</
gbean-name></pattern>
</reference>
</gbean>
I am sure the others may be able to tweak this, but this should be in
the right general direction.
Jeff
Conrad O'Dea wrote:
Hi there,
Right now I've got to the stage where I can, with a bit of
tweaking of
the config.xml, deploy Celtix to Geronimo and have it handle Web
Service
deployments. This is on 1.2 where the deployers for wars, ejb
jars and
webservices are all separate so it's pretty straightforward to change
configuration so that a Celtix deployer is used. Thanks for the
help in
making that work.
1.0/1.1 is another story, though. Here, the j2ee-deployer directly
configures the GBeans it uses for deploying web services etc. I've
tried overriding the class for the WebServiceBuilder in the
config.xml
but it is ignored. In fact as the server is starting the
config.xml is
overwritten and my change is erased.
In the config.xml, should be possible to change the name of the class
that implements a particular GBean? Can I prevent a GBean from being
loaded?
thanks
Conrad