I am having question related to packaging servlets. I have ear file, which contains war wile , which contains html files and servlet definition and all needed stuff.
And it is fine for me.
My question is:
is it possible to have ear file with separate war and jar files, where servlet definition is being stored within jar file (as on picture below ) ?
"maybe", but then in a jar which is present in the WEB-INF/lib of the war, not in a jar that is part of the ear.
Of course nothing can stop you from trying it out, but I'm pretty sure you'll be met with incredibly nasty deployment error messages.