Since the previous designs, mentioned at the beginning and end of this thread: 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=59093, proved not to 
be feasible it is important to now find something which will definitely work. 
To that end the following approach is proposed based on the well trodden path 
of deploying drivers to /lib and datasources to /deploy. 

Overall the approach requires two new templates to be implemented for use by 
the DeploymentService 
(http://www.jboss.org/wiki/Wiki.jsp?page=DeploymentService):

1) A template which takes a local URL to a driver jar and copies it into 
server//lib. If there is file with the same name already present in the lib 
directory the copy should not take place. There are a number of implications of 
this:
a) This DeploymentService operation will always succeed, subject to hardware 
failure. It will either copy the driver jar successfully or not attempt to 
write it all. This way there are no issues with jars being locked and the copy 
failing.
b) Just as is the case now, only one version of a driver jar will be recognized 
by the JBoss instance.
c) Just as is the case now, updating a driver jar from one version to another 
will require shutting JBoss down, removing the old jar from /lib and putting in 
the new one. As now, this will affect all datasources which use the driver 
class from that jar.
d) A user of the Admin Console will not have to upload a driver jar if they 
just want to use one that already exists in the /lib directory. In this case 
the Admin Console will simply not call the DeploymentService with this new 
template.
e) When creating a new datasource and uploading a new driver, the new 
datasource will require a server restart to become available.

2) A template which takes the various properties for a datasource and build the 
appropriate Local no-Tx, Local Tx or XA -ds.xml file. The Deployment service 
will then copy the -ds.xml to the /deploy directory. This may in fact turn out 
to need three separate templates, one for each datasource type.

Thanks

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864149#3864149

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864149


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to