[jboss-user] [JBoss Microcontainer Users] - Re: Running a deployer on resource in classpath

alesj do-not-reply at jboss.com
Wed Dec 9 14:50:39 EST 2009


"rareddy" wrote : 
  | Then I thought there is no "deployment unit" available for this to be invoked, so added "@ManagementDeployment" and "@ManagementObject" annotations to my metadata object "SystemVDBMetadata" class and deployed that object, this object is available as input to the deployer by adding "setInput", still the deployer never invoked. 
  | 
  | 
  |   | @ManagementObject
  |   | @ManagementDeployment(types = {"vdb"})
  |   | public class SystemVDBMetadata implements Serializable {
  |   | }
  |   | 
  | 
There is no need for this -- this is just for management features, ProfileService etc.

"rareddy" wrote : 
  | What I am confused is what will be my deployment unit in this case, as the resource I want to load is inside a JAR in "lib" directory. My intention was use the above code and once I am in the "deploy" call use the technique mentioned above to  load resource.
  | 
Who creates and attaches this SystemVDBMetadata to DeploymentUnit?

Parsing deployers only look into metadata locations.
For spec defined deployments these are:
* META-INF for .jar and .ear
* WEB-INF for .war
(see StructureDeployer(s) for more details)
So, jar's lib directory won't be checked unless you explicitly configure it.

The DeploymentUnit == (Sub)Deployment == .ear or .war or .jar 
(.jar which is not just lib, but real (sub)deployment)

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

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



More information about the jboss-user mailing list