This content has been marked as final.
Show 4 replies
-
1. Re: New approach for updating Datasource/Drivers via Admin C
starksm64 Jan 29, 2005 2:05 PM (in response to ccrouch)Yes, this is the correct approach.
-
2. Re: New approach for updating Datasource/Drivers via Admin C
dimitris Jan 30, 2005 6:16 AM (in response to ccrouch)If we fall back to the "traditional" jboss view, then:
1) Invoking on a template for copying static libs into ./lib is not the best way. It'd be more straightforward to have on the DeploymentService something like:String[] listStaticLibs(); boolean uploadStaticLib(URL url);
(This doesn't solve the modifications issue, i.e. remove/update a lib)
2) From a design point of view, I believe it's much more clear to the admin to provide him an exact view of the system, it's restrictions and the ability to change it. In this sense you admit that the ./lib directory contains static libs that can only be changed with a reboot. So maybe a better interface is something like:boolean scheduleLibUpdate(URL url); boolean scheduleLibRemoval(String libname);
The 2 schedule methods will store the new lib/info for removal somewhere, then the server upon boot will have to make those changes.
The thing is, the changes need to take place *before* ./conf/jboss-service.xml is loaded, because this is where the libs are "loaded".
Maybe we could pass a new arg at command line, e.g. --update-libs to triger this behaviour.
In any case we could proceed with (1) and optionally do (2). -
3. Re: New approach for updating Datasource/Drivers via Admin C
starksm64 Jan 30, 2005 3:41 PM (in response to ccrouch)A view of the static libs is not an admin view. An admin may not even know that a datasource has a jdbc driver jar. You have to make a distinction between a package and the installation of that package. A package is a self contained collection of descriptors, jars, os libs, etc. that needs to be installed into the server with version and duplication concerns resolved.
-
4. Re: New approach for updating Datasource/Drivers via Admin C
ccrouch Jan 30, 2005 6:44 PM (in response to ccrouch)"dimitris@jboss.org" wrote:
If we fall back to the "traditional" jboss view, then:
1) Invoking on a template for copying static libs into ./lib is not the best way. It'd be more straightforward to have on the DeploymentService something like:String[] listStaticLibs(); boolean uploadStaticLib(URL url);
(This doesn't solve the modifications issue, i.e. remove/update a lib)
I am fine with which either implementing this as a template or new API on DeploymentSerivce, as long as the functionality requirements are met"dimitris@jboss.org" wrote:
2) From a design point of view, I believe it's much more clear to the admin to provide him an exact view of the system, it's restrictions and the ability to change it. In this sense you admit that the ./lib directory contains static libs that can only be changed with a reboot. So maybe a better interface is something like:boolean scheduleLibUpdate(URL url); boolean scheduleLibRemoval(String libname);
The 2 schedule methods will store the new lib/info for removal somewhere, then the server upon boot will have to make those changes.
The thing is, the changes need to take place *before* ./conf/jboss-service.xml is loaded, because this is where the libs are "loaded".
Maybe we could pass a new arg at command line, e.g. --update-libs to triger this behaviour.
In any case we could proceed with (1) and optionally do (2).
Agreed lets do (1). For the first phase we will not be requiring any removal or update of jars from /lib, so let's not do (2).
Overall the datasource component of the admin console will attempt to abstract away some of the details of the implementation. An administrator will optionally specify a driver jar to upload and some datasource properties, without having to know precisely what we are going to do with that jar. In future versions I hope that we will be able to move away from copying the driver jars into /lib, without affecting how administrators use the console.
Thanks