[jboss-dev-forums] [Design of POJO Server] - Re: console-mgr.sar jars being registered as mbeans?
emuckenhuber
do-not-reply at jboss.com
Tue Oct 21 10:15:26 EDT 2008
"alesj" wrote : "scott.stark at jboss.org" wrote :
| | Why would jars in a sar be seen as mbean deployments? These are just library jars.
| I don't think they are treated as plain lib jars.
| They are treated as true deployments - see JARStructure.
Ah now i can remember talking with Ales once about the "directory feature".
Changing the loadApplications method in the SerializableDeploymentRepository (copied from the basic profile) seems to fix those errors.
| private void loadApplications(VirtualFile applicationDir)
| throws IOException
| {
| List<VirtualFile> children = applicationDir.getChildren();
| for(VirtualFile vf : children)
| {
| if (vf.isLeaf())
| {
| VFSDeployment vfCtx = loadDeploymentData(vf, DeploymentPhase.APPLICATION);
| String key = vfCtx.getName();
| applicationCtxs.put(key, vfCtx);
| }
| // TODO replace . in the name with isArchive() == false?
| else if (vf.getName().indexOf('.') == -1)
| {
| // recurse if not '.' in name and recursive search is enabled
| loadApplications(vf);
| }
| else
| {
| VFSDeployment vfCtx = loadDeploymentData(vf, DeploymentPhase.APPLICATION);
| String key = vfCtx.getName();
| applicationCtxs.put(key, vfCtx);
| }
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183527#4183527
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183527
More information about the jboss-dev-forums
mailing list