Can someone please provide me an example of GWT + JPA + Gilead, I can't seem to find anything on Google with this topic.
Thanks
Thanks Maksim,
I'm not using this in an EJB server but Tomcat. I understand the step you've pointed out above but not sure on how to do the next step which is to set up PersistentBeanManager and send my object over the wire.
Here is what I have thus far but I haven't got a chance to test if this works yet. If you see a problem with this let me know, thanks.
private HibernateJpaUtil gileadUtil = new HibernateJpaUtil();
private static final EntityManagerFactory factory = Persistence.createEntityManagerFactory("MyPersistentUnit");
public MyServlet() {
gileadUtil.setEntityManagerFactory(factory);
PersistentBeanManager pbm = new PersistentBeanManager();
pbm.setPersistenceUtil(gileadUtil);
pbm.setProxyStore(new StatelessProxyStore());
setBeanManager(pbm);
Book book = new Book();
Book cloned = (Book) pbm.clone(book);
//send the cloned book over the wire
}