This would certainly be possible - but coding will be required!  
Right now, you can create and configure a pool through the JMX interface,
but I'm not sure you can actually issue the command that starts it up.
        To add a pool manually, you should start by poking around with the
JMX interface (http://servername:8082/).  If there's some way to call the
"startService" method, then you're fine.  Otherwise, you need to figure
that one out.
        To add pools automatically like you suggest, you need to create an
MBean.  That MBean should extend org.jboss.util.ServiceMBean and the
implementation should extend org.jboss.util.ServiceMBeanSupport.  Then in
your startService method, load the pool configuration from your file or
database, and create a bunch of services with the corresponding
parameters.  You can grab the code to create a service from
org.jboss.Main, and to configure it from
org.jboss.configuration.ConfigurationServiceMBean.  Then you need to
modify jboss.dependencies to make your service dependent on the logger,
another DB pool (if you load from a DB), etc. and to make the
auto-deployer and container factory dependent on your service.  Finally,
add an MLet tag to jboss.conf to load your service, and add entries to
jboss.jcml if your service needs to be configured...

Aaron

On Mon, 25 Sep 2000, David Park wrote:
> Configuration of Minerva pools is managed through the jboss.jcml file.
> Is it possible to dynamically add pools after Jboss has initialized?
> I'm interested in adding connection pools that pull config info from a
> database instead of an XML file.
> 
> Any quick ideas on implementation?
> 
> Thanks.
> -david
> 
> 



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to