I've been studying the PetShop implementation.
The code come from
Source URL The code is:
UserTransaction ut = null;
// Look up the UserTransaction object
InitialContext ic = new InitialContext();
ut = (UserTransaction) ic.lookup("java:comp/UserTransaction");
ut.begin(); // start the transaction. My question is how does "java:comp/UserTransaction" get bound into the context?