I should be able to sort out any glassfish/hibernate issues with the demo, as my Lift/JPA/JTA/Hibernate/Glassfish app is running happily and going into production on Tuesday. In general, I haven't run into any issues whatsoever; all you need is the <provider>org.hibernate.ejb.HibernatePersistence</provider> entry in the declaration of your persistence unit in persistence.xml.
Kris On Fri, Oct 10, 2008 at 4:18 PM, Derek Chen-Becker <[EMAIL PROTECTED]> wrote: > OK, if I've done this correctly, there are only a few things that you need > to do to get this working in a JEE container: > > Edit persistence.xml to: > > Set the proper dialect > Remove or set the proper hibernate.transaction.manager_lookup_class > property. I think that Hibernate is smart enough to figure this out inside a > container, but it was really pissed if I didn't use this in Jetty > > Set up the matching datasource > > There are definitely some things I'm not sure about: > > How to properly bind the JPA module into JNDI. The code in Model.scala > assumes that it will be located in java:comp/env/<module name>, and I think > that I have the persistence-ref set up correctly in web.xml, but I'm not > 100% positive > How Glassfish plays with Hibernate. We had to use the Hibernate annotations > in order to get an Enumeration type. I searched and searched but couldn't > find anything concrete for TopLink. > > Please let me know if you run into any difficulties and hopefully we'll get > this sorted out. > > Derek > > On Fri, Oct 10, 2008 at 4:04 PM, Derek Chen-Becker <[EMAIL PROTECTED]> > wrote: >> >> OK, done: http://github.com/dpp/liftweb/tree/wip-dcb-jpa-jta >> >> I'll have to figure out the merge settings. >> >> Thanks! >> >> Derek >> >> On Fri, Oct 10, 2008 at 3:58 PM, Derek Chen-Becker <[EMAIL PROTECTED]> >> wrote: >>> >>> OK, if I do git checkout do I need to backup my changed files somewhere >>> else? I've already made a lot of changes and I don't want to lose them. >>> >>> Thanks for the advice! >>> >>> Derek >>> >>> On Fri, Oct 10, 2008 at 3:43 PM, Martin Ellis <[EMAIL PROTECTED]> >>> wrote: >>>> >>>> On Fri, Oct 10, 2008 at 10:37 PM, Derek Chen-Becker >>>> <[EMAIL PROTECTED]> wrote: >>>> > OK, I think I know how to create a new branch, but being a Git newb I >>>> > really >>>> > don't want to nuke anything. Do I just do a "git branch <my new branch >>>> > name>" in my local repo? >>>> >>>> I think you want: git checkout -b branchName >>>> >>>> git branch on it's own won't switch to the new branch. >>>> >>>> Martin >>>> >>>> >>> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
