[jboss-dev-forums] [JBoss AS 7 Development] - How create a new deployer?
ulrichromahn
do-not-reply at jboss.com
Mon Nov 19 17:11:24 EST 2012
ulrichromahn [https://community.jboss.org/people/ulrichromahn] created the discussion
"How create a new deployer?"
To view the discussion, visit: https://community.jboss.org/message/777269#777269
--------------------------------------------------------------
Hi All,
I would like to create a new deployer for the following use case:
I would like to create a file, preferably an XML file, which contains a "bundle name" (not to confuse with OSGi bundles, though), and a list of JAR's, WAR's, or EAR's that should be deployed.
All those artifacts to be deployed should be specified by a URI, e.g. "file:/home/myname/deployments/my-new-app-1.0.0.jar" or "mvn:org.mydomain.app/myapp/1.0.0/war".
The file should then be picked up by my new deployer and then the list of all those artifacts should be resolved (found) according to the URI.
>From the example above, the first URI should find the "my-new-app-1.0.0.jar" on the local filesystem under "/home/myname/deployments" and then deploy it to JBoss AS 7. The second example the demonstrtes the power of this new deployer: it would try to find a WAR with the filename "myapp-1.0.0.war from a Maven repository using the groupId of "org.mydomain.app" and artifactId of "myapp". My specific implementation would be configurable to look into a local ".m2" repository first and if not found, try to download it from a remote Maven repository. The URL to this repository should be configurable. This could be implemented similar to the OSGi Repository implemented as part of JBOSGI.
Here is my question:
Are there any HOWTO's, examples, or other documentation that describes how to implement a new deployer in JBoss AS7? It would even be helpful if someone could point me to some existing implementations?
I looked at the current source and tried to figure out how the deployer for the "*-ds.xml" files was implemented, but it is hard for me to see how this would be hooked into the overall JBoss deployment subsystem?
Any help or pointers would be much appreciated.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777269#777269]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121119/3f0b39f4/attachment.html
More information about the jboss-dev-forums
mailing list