[Lift] Re: Progress on JPADemo and JTA

2008-10-10 Thread Kris Nuttycombe

I'm happy to test on Glassfish this weekend. Just let me know what
branch to pull from.

Kris

On Fri, Oct 10, 2008 at 3:14 PM, Derek Chen-Becker
[EMAIL PROTECTED] wrote:
 Well, I have it all working under Jetty using Atomikos as the underlying JTA
 provider. I'd like to test it out under JBoss and/or Glassfish before
 committing it to head, but would people be interested in testing on a branch
 version?

 Derek

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
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
-~--~~~~--~~--~--~---



[Lift] Re: Progress on JPADemo and JTA

2008-10-10 Thread Derek Chen-Becker
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?

Thanks,

Derek

On Fri, Oct 10, 2008 at 3:21 PM, Kris Nuttycombe
[EMAIL PROTECTED]wrote:


 I'm happy to test on Glassfish this weekend. Just let me know what
 branch to pull from.

 Kris

 On Fri, Oct 10, 2008 at 3:14 PM, Derek Chen-Becker
 [EMAIL PROTECTED] wrote:
  Well, I have it all working under Jetty using Atomikos as the underlying
 JTA
  provider. I'd like to test it out under JBoss and/or Glassfish before
  committing it to head, but would people be interested in testing on a
 branch
  version?
 
  Derek
 
  
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
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
-~--~~~~--~~--~--~---



[Lift] Re: Progress on JPADemo and JTA

2008-10-10 Thread Kris Nuttycombe

You can do either that, or

git checkout -b my_new_branch

which will both create and switch to the new branch; you'll then need to do

git push origin my_new_branch

to get it up on central. For when you want to subsequently pull from
that branch, you should probably add something like this to your
.git/config:


[branch my_new_branch]
  remote = origin
  merge = refs/heads/my_new_branch

There's some git command that will do this for you, but I can't
remember it at the moment as I usually just do it by hand.

Kris

On Fri, Oct 10, 2008 at 3: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?

 Thanks,

 Derek

 On Fri, Oct 10, 2008 at 3:21 PM, Kris Nuttycombe [EMAIL PROTECTED]
 wrote:

 I'm happy to test on Glassfish this weekend. Just let me know what
 branch to pull from.

 Kris

 On Fri, Oct 10, 2008 at 3:14 PM, Derek Chen-Becker
 [EMAIL PROTECTED] wrote:
  Well, I have it all working under Jetty using Atomikos as the underlying
  JTA
  provider. I'd like to test it out under JBoss and/or Glassfish before
  committing it to head, but would people be interested in testing on a
  branch
  version?
 
  Derek
 
  
 




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
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
-~--~~~~--~~--~--~---



[Lift] Re: Progress on JPADemo and JTA

2008-10-10 Thread Martin Ellis

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 liftweb@googlegroups.com
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
-~--~~~~--~~--~--~---



[Lift] Re: Progress on JPADemo and JTA

2008-10-10 Thread Derek Chen-Becker
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 liftweb@googlegroups.com
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
-~--~~~~--~~--~--~---



[Lift] Re: Progress on JPADemo and JTA

2008-10-10 Thread Derek Chen-Becker
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:


   1. Edit persistence.xml to:
  1. Set the proper dialect
  2. 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
   2. Set up the matching datasource

There are definitely some things I'm not sure about:


   1. 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
   2. 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 liftweb@googlegroups.com
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
-~--~~~~--~~--~--~---



[Lift] Re: Progress on JPADemo and JTA

2008-10-10 Thread Kris Nuttycombe

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
providerorg.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 liftweb@googlegroups.com
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
-~--~~~~--~~--~--~---