Juan, welcome to the forums!
What error or exception do you get when you run that program? Please post the entire exception stacktrace. Also which version of JBoss AS are you using?
Reply to this message by going to Community
Start a new discussion in EJB 3.0 at Community