o Cucchiara
Sent: 15 August 2011 10:28
To: Struts Users Mailing List
Subject: Re: How to implement EJB 3.0, JPA, Hibernate and Struts 2 in one
application?
I think this is a good starting point: http://s.apache.org/jpa Maurizio
Cucchiara
On 15 August 2011 07:05, Coolemma wrote:
> EJB 3.0, JPA,
I think this is a good starting point: http://s.apache.org/jpa
Maurizio Cucchiara
On 15 August 2011 07:05, Coolemma wrote:
> EJB 3.0, JPA, Hibernate and Struts 2
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.
f classes which needs the hibernate session factory can get it
> from JNDI
>
> InitialContext ctx = new InitialContext();
> SessionFactory sessionFactory = (SessionFactory)
> ctx.lookup("HibernateSessionFactory");
> session = sessionFactory.openSession(); //.getCu
InitialContext();
SessionFactory sessionFactory = (SessionFactory)
ctx.lookup("HibernateSessionFactory");
session = sessionFactory.openSession(); //.getCurrentSession();
hope that helps
--
View this message in context:
http://www.nabble.com/Hibernate-and-Struts-tp19985981p20016169.html
Se
ally gave up!"
>
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Hibernate-and-Strut
haven't use this plug before.
but I think Spring-plug-in, would be better!
It's less config!
On Wed, Oct 15, 2008 at 11:04 AM, Anoop <[EMAIL PROTECTED]> wrote:
> Hi,
> We are looking forward to integrating struts with hibernate in our web
> application project. Could you guide us on how to to in
Hi,
We are looking forward to integrating struts with hibernate in our web
application project. Could you guide us on how to to integrate them. I
tried the hibernate plugin as recommended on the hibernate website,
however that throws a null pointer exception(when i try to instantiate
a session) whe
Hi Will,
A simple approach is to use an S2 interceptor that opens the hibernate
session before calling the action and closes it afterwards.
This is the open-session-in-view pattern that's well described at the
hibernate site http://www.hibernate.org/43.html.
You don't need Spring or any othe
--- Will Smith <[EMAIL PROTECTED]> wrote:
> [session stuff]
If you were already okay with manually loading
non-lazy loaded stuff, why not just:
Hibernate.initialize(rootObject.getNameOfLazyCollection());
Otherwise:
- Set lazy="false" in the mapping, and load it all the
time, or
- Use an open-se
Hi, I'm sure this has probably been beaten to death, but I can't seem to
find a viable solution without using spring.
I just switched over to using hibernate from ibatis (so much better now),
and I'm having trouble working my actions around hibernate's transaction
model. With ibatis you had to ma
On Tue, 1 Mar 2005 17:48:40 -0500, Joe Hertz <[EMAIL PROTECTED]> wrote:
> That is, usually you want the request to begin a transaction early
> and either commit or rollback at the end.
Hmm... I was under the impression that you **always** want to begin
your transaction as late as possible, not ear
This particular application (tiny, not used much, never will be, and was
written in a hurry and not by me) implementing it after the fact ain't going
to happen. Not worth the cost to the customer.
In general though, youre quite correct (and I'm cutting through the layers
of abstraction. Ultimate
This particular application (tiny, not used much, never will be, and was
written in a hurry and not by me) implementing it after the fact ain't going
to happen. Not worth the cost to the customer.
In general though, youre quite correct (and I'm cutting through the layers
of abstraction. Ultimate
Joe Hertz wrote:
I've been hearing this from the Spring set. I'm waiting for a good book to
come out on it.
www.springlive.com a REALLY good book for more than just spring. It's
30 bucks online, money WELL spent.
Brandon
-
T
On Tuesday 01 March 2005 22:07, Joe Hertz wrote:
> Curious as to which concept Struts/Hibernate implementers like more
> for implementation:
>
> #1- Ted Husted's example of Struts and Hibernate. Stick the Hibernate
> Session object into the httpServletRequest. Every action has a fresh
> Hibernate S
ling issue, but it got me wondering about where the
bathwater began and where the baby ended.
-Original Message-
From: Brandon Mercer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 4:48 PM
To: Struts Users Mailing List
Subject: Re: Hibernate and Struts Usage Pattern question/su
ling issue, but it got me wondering about where the
bathwater began and where the baby ended.
-Original Message-
From: Brandon Mercer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 4:48 PM
To: Struts Users Mailing List
Subject: Re: Hibernate and Struts Usage Pattern question/su
Joe Hertz wrote:
Curious as to which concept Struts/Hibernate implementers like more for
implementation:
#1- Ted Husted's example of Struts and Hibernate. Stick the Hibernate
Session object into the httpServletRequest. Every action has a fresh
Hibernate Session raring to go if it needs it. Then aga
Curious as to which concept Struts/Hibernate implementers like more for
implementation:
#1- Ted Husted's example of Struts and Hibernate. Stick the Hibernate
Session object into the httpServletRequest. Every action has a fresh
Hibernate Session raring to go if it needs it. Then again it has it eve
Curious as to which concept Struts/Hibernate implementers like more for
implementation:
#1- Ted Husted's example of Struts and Hibernate. Stick the Hibernate
Session object into the httpServletRequest. Every action has a fresh
Hibernate Session raring to go if it needs it. Then again it has it eve
20 matches
Mail list logo