I have a war deployed which is our main application. I'm trying to move some startup code out of a static block so it loads at jboss startup. I decided to do this in a sar. However, the two appear to have separate process spaces and the work I do in the sar is not reflected in the war process space.
Please explain how different deployments are name/process spaced in jboss. Also, how can I do what I'm trying to do? I want a war that executes some code when jboss starts (can I deploy a sar inside a war -- haven't had luck doing this).