Bugs item #844492, was opened at 2003-11-18 16:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=844492&group_id=22866

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Tomasz Stanczak (tstanczak)
Assigned to: Nobody/Anonymous (nobody)
Summary: URLDirectoryScanner and URLDeploymentScanner

Initial Comment:
See #684594 for the beginning of this issue.

URLDirectoryScanner does add functionality over 
URLDeploymentScanner, at least one - the ability to 
deploy applications/services/etc in the order of the urls 
parameter. Like in the example:

<mbean >
 ...
 <attribute name="URLs">
  <urls>
   <dir name="./deploy-classes"/>
   <dir name="./deploy"/>
   ...

Why is it important? I want to use my own Tomcat SSL 
socket factory, I set it in jbossweb-tomcat41.sar/META-
INF/jboss-service.xml. The compiled classes are being 
deployed through a service file on /deploy-classes 
directory.

The URLDeploymentScanner throws all the deployments 
found in the URLs attribute in one big bag, sorts the 
bag using its DeploymentSorter, and deploys in the 
resulting order. 

The very first deployments are service applications 
(*.sar), among others Tomcat. *service.xml are next. 
So Tomcat gets started before my classes are added to 
the unified repository. As you can guess I get 
ClassNotFound exceptions.

Now I could put my classes in the system classpath, 
but I prefer not to change system classpath as long as I 
see other possibilities to get the classes to work.

In case URLDirectoryScanner I just put /deploy-classes 
in front of /deploy and everything works.

Of course i could write my own DeploymentSorter, but 
the again I had to put my classes in the system 
classpath!

Now you have a diff submitted by Markus Kling, I have
noticed that URLDirectoryScanner in Jboss 3.2.2 is the 
same as of Jboss 3.2.1, and modified it again 
appropriately, I can  can upload my changes, too.

Please note, that my aim is not to use 
URLDirectoryScanner, but to have the ability to set the 
order of deployments by the order of deployer's 
parameters. It just happens that URLDirectoryScanner 
delivers what I want.

Using PrefixDeploymentSorter is quite awkward, to 
deploy one application before all other I would have to 
put numbers into the names of all applications except 
this very one! Sounds complicated, doesn't it?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=844492&group_id=22866


-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to