Re: EJB questions about Jumpstart

2009-01-15 Thread Geoff Callender
The PersistenceContext unitName is not the problem at this point. It is used to map persistence of an entity to a datasource. Your problem, however, is how to look up a session bean from a client. What EJB container are you using? JBoss 4.3? This is important because it will determine

Re: EJB questions about Jumpstart

2009-01-15 Thread Sid Ferreira
Glassfish V2, based on a friend's response. On Thu, Jan 15, 2009 at 11:07 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: The PersistenceContext unitName is not the problem at this point. It is used to map persistence of an entity to a datasource. Your problem, however, is

Re: EJB questions about Jumpstart

2009-01-15 Thread Geoff Callender
How are the sesson beans annotated and interaced? eg. in JumpStart PersonService is like this: @Stateless @Local(IPersonServiceLocal.class) @Remote(IPersonServiceRemote.class) public class PersonService implements IPersonServiceLocal, IPersonServiceRemote { On 16/01/2009, at 12:11 AM,

Re: EJB questions about Jumpstart

2009-01-15 Thread Sid Ferreira
@Stateless only On Thu, Jan 15, 2009 at 11:16 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: How are the sesson beans annotated and interaced? eg. in JumpStart PersonService is like this: @Stateless @Local(IPersonServiceLocal.class) @Remote(IPersonServiceRemote.class)

Re: EJB questions about Jumpstart

2009-01-15 Thread Geoff Callender
I haven't used Glassfish, but here goes my best guess... I see there is a FAQ in Glassfish about this. If you have the WAR and JAR together in an EAR then you might be able to get away with injecting the bean into the web class with @EJB. See

Re: EJB questions about Jumpstart

2009-01-15 Thread Sid Ferreira
was within an ear On Thu, Jan 15, 2009 at 11:26 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: I haven't used Glassfish, but here goes my best guess... I see there is a FAQ in Glassfish about this. If you have the WAR and JAR together in an EAR then you might be able to get

Re: EJB questions about Jumpstart

2009-01-15 Thread Geoff Callender
Your lookup string looks fine according to the doco I've just read. Have you confirmed the jndi entries exist and their format? See http://www.myeclipseide.com/PNphpBB2-viewtopic-t-18850.html Have you provided jndi properties to the InitialContext? This is usually done by putting a

Re: EJB questions about Jumpstart

2009-01-15 Thread Geoff Callender
Also http://markmail.org/message/jmi4opzz52pcr2cf#query:+page:1+mid:3madrl6pya4i7sei+state:results On 16/01/2009, at 12:39 AM, Sid Ferreira wrote: was within an ear On Thu, Jan 15, 2009 at 11:26 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: I haven't used Glassfish, but

Re: EJB questions about Jumpstart

2009-01-15 Thread Sid Ferreira
Indeed it seems that was lack of configurations... I'll check it out... Thanks On Thu, Jan 15, 2009 at 11:56 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: Also http://markmail.org/message/jmi4opzz52pcr2cf#query:+page:1+mid:3madrl6pya4i7sei+state:results On 16/01/2009, at

EJB questions about Jumpstart

2009-01-14 Thread Sid Ferreira
OBS: I was going to send just for Geoff, but maybe someone else could know the answer. Im studing the EJB example but Im failing to make mine work. Im trying to load ClientesUsuarioFacade or ClientesUsuarioFacadeLocal (Im newbie, got a challenge that can mean use T5 in my company and also my