Hi,
not sure if you've seen it already but this blog by Bob McWhirter really help
me:
http://oddthesis.org/posts/2008-09-deployers-in-jboss-microcontainer
Regards,
/Daniel
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4237786#4237786
Reply to the post :
There are many abstract/helper deployers.
You just need to choose the right one, the rest is then easy + just your own
custom logic.
So, I recommend you check the existing ones + those from TorqueBox (as
recommended by beve),
and I'm sure you'll be able to find useful info.
But if you still
Hey,
Thanks a lot for answers, I have just read the aforementioned link. Actually I
want to do is that whenever I add jar file with ending .msar to the JBoss
deploy directory, my deployer will take the responsibility.
So I write a structure deployer that extends AbstractVFSStructureDeployer.
You don't need a new structure deployer to be able to handle .msar.
All you need to do is update suffixes in JarUtils, so JarStructureDeployer
recognizes your .msar as a jar.
And then have a real deployer (not structure) to add your MSarMetaData based on
.msar suffix.
What is your deployer
Thanks Ales.
But if there is no structure class, how do I create a meta data attachment?
After the structure determineStructure returns true, how MC decides to call
which deployer is responsible for? Does it look for the attached meta data
class that is set on the Deployer constructor
Ok. I got it.
I add .msar suffix to JARStructure, then implement ParseDeployer and
RealDeployer. Now everything works fine :)
Thanks;
--Gurkan
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4237815#4237815
Reply to the post :