I am very new to Spring and trying to grasp the basics at this point (If I am posting this in the wrong forum please forgive me). I understand the basics of doing data injection and autowiring with success in executing a standalone application using spring.

My dilemma is how to port that to a container such as Glassfish and have it initialize on deployment. What does the deployment look like (ear, jar, other)? What deployment descriptors are required outside of the spring xml config file?

I know these are probably extreme basics but this is where I'm stuck at the moment.

Any help would be much appreciated.