Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-11 Thread Chris Lercher
On Mar 11, 3:42 pm, Gianluigi wrote: > >...if you don't want to bind different EJB3TestRemotes to different > >names. > > not different names, different IMPLEMENTATIONS. The @Names annotation is a > selector to choose with concrete implementation of the local/remote ebj > interface inject (and u

Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-11 Thread Gianluigi
>I think he probably means that you could just do it like this: > >bind(EJB3TestRemote.class).toProvider(fromJndi(EJB3TestRemote.class,"EJB3Test/ >remote")); > >And then simply: >@Inject >private EJB3TestRemote test; exactly this is the way of use it without @Name selector >...if you don't wan

Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-11 Thread Gianluigi
I'm glad that u found the article interesting ;-) Gianluigi - Messaggio originale - Hello! I found an interesting blog entry today and tried to implement it in a test application. Here is the url: http://gianluigidavassiuk.blogspot.com/2009/11/ejb3-plus-guice-how-exotic-part-3.htm

Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-11 Thread opn
Hello, me again with another question... I now successfully injected a stateless session bean into my plain java class. In that stateless session bean im using an entitymanager like this: @PersistenceContext(unitName="MyPU") EntityManager entityManager; The problem is, it is always null.

Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-11 Thread Christian Lercher
On 11.03.10, at 11:53, opn wrote: > > Greetings from the sunny germany! Sunny germany? :-) Grüße aus dem verschneiten Österreich! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@go

Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-11 Thread opn
ok thank you, ill try something like "bind(EJB3TestRemote.class) .annotatedWith(Names.named("EJB3TestRemote")) .toProvider(fromJndi(EJB3TestRemote.class,"java:module/ EJB3Test"));" and see if it works for me : )! hopefully i can answer the other questions through trying it out, then. Greetings

Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-10 Thread Chris Lercher
Hi, you're probably looking for the portable JNDI syntax, as explained here: http://java.sun.com/javaee/6/docs/tutorial/doc/gipjf.html > And one last question, in the end the author mentions that the @Named > annotation is not useful. How would it look like without it? I think he probably means

Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-10 Thread opn
Sorry, i dont know how to edit the text. (Is it possible?) If i now would have a running NiceClass, could i inject it somewhere with guice as i would with any other class? Bye On 10 Mrz., 22:03, opn wrote: > Hello! > > I found an interesting blog entry today and tried to implement it in a > tes

EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-10 Thread opn
Hello! I found an interesting blog entry today and tried to implement it in a test application. Here is the url: http://gianluigidavassiuk.blogspot.com/2009/11/ejb3-plus-guice-how-exotic-part-3.html Now, as mentioned in the topic, im using Glassfish that runs in netbeans or i have a tomcat 6 se