[jboss-user] [EJB 3.0] - Re: EntityManager available outside container ?

2007-04-17 Thread gbasilico
Thank you for your reply. That's what i was thinking, unfortunately... In fact, i managed to access to the entitymanager thanks to a session bean or a servlet, which both are on the server side, but not from my client... Too bad. A last question : do you think another container (Glassfish or

[jboss-user] [EJB 3.0] - EntityManager available outside container ?

2007-04-16 Thread gbasilico
Hello, We are planning to migrate an application from EJB 2.1 to EJB3. Our application currently uses CMP entity bean and the client side is a SWT application (no servlet, no jsp). So in order to replace my old CMP i wanted to use the new persistence layer. My problem is that i'm trying to

[jboss-user] [EJB 3.0] - Re: EntityManager available outside container ?

2007-04-16 Thread gbasilico
Felix, thank you for your answer. Well, the problem is that currently we use CMP entity beans, the transactions are managed by the container and we do not want to modify the client side (managing the transactions by hand). So i'm afraid using the factory is not the solution... Regards,

[jboss-user] [EJB 3.0] - EntityManagerFactory null ?

2007-04-12 Thread gbasilico
Hello, I want to access an entity from the client side, without using a session bean (If i use a session bean it works fine). I made a simple entity class : | @Entity | public class Produit implements Serializable { | |@Id |private String id; |private String libelle; |