-
1. Re: datasource configuration at runtime
davidjencks Apr 28, 2003 7:41 AM (in response to blakbox)in jboss 4 the managed connection factory config-properties (such as db url) are exposed directly as jmx attributes. For 3.0.7 and 3.2 there's a setManagedConnectionFactoryAttribute(name, class, value) jmx operation you can use.
I don't see the connection between needing a datasource on the local vm and needing to configure its target database dynamically. -
2. Re: datasource configuration at runtime
blakbox Apr 28, 2003 2:27 PM (in response to blakbox)Sorry, I'm a newbie,
I have a jboss that has an stateless session bean working with a database in another machine. The problem is that this jboss doesn't know the location of the database. So, I have another machine with another jboss that knows this information. Then my intention was that the second jboss provided the DataSource to the first jboss could work with the database. Because you said that's impossible, i need that the first jboss get the database's ip from the second and configure the datasource to work with the database.
Great thanks -
3. Re: datasource configuration at runtime
blakbox Apr 28, 2003 2:31 PM (in response to blakbox)Sorry, I'm a newbie,
I have a jboss that has an stateless session bean working with a database in another machine. The problem is that this jboss doesn't know the location of the database. So, I have another machine with another jboss that knows this information. Then my intention was that the second jboss provided the DataSource to the first jboss could work with the database. Because you said that's impossible, i need that the first jboss get the database's ip from the second and configure the datasource to work with the database.
Great thanks -
4. Re: datasource configuration at runtime
davidjencks Apr 29, 2003 12:05 AM (in response to blakbox)What is stopping you from deploying the same datasource configurations on all of your jboss instances? I think you can automate this using the farm deployer, so you deploy on one and the farm service deploys on all the other instances.
-
5. Re: datasource configuration at runtime
blakbox Apr 29, 2003 3:40 AM (in response to blakbox)ok, I'm going to try it.
Thanks