If you want to recreate this feature yourself with different databases
you're going to have to map your entrypoint (initial URL) to your specific
client and from there to the specific database datasource. Once you have
the data source, associate it with the SessionFactory and everything will
work c
Oracle 12c should fit your needs. Unless you want to recreate this feature
by your self.
On Tue, Jul 8, 2014 at 5:36 AM, Kevin Peterson wrote:
> Hi,
>
> We have an application wherein we want to keep separate database for each
> client. We want to achieve this using multi tenancy approach. A wo
Hi,
We have an application wherein we want to keep separate database for each
client. We want to achieve this using multi tenancy approach. A working example
will be highly appreciated.
Thanks,
Kevin Peterson
-
To unsubscri
Thanks. How initialize session where it should auto inject? . Please give
me example.
On Fri, Sep 14, 2012 at 4:22 PM, Alejandro wrote:
> You must initializate session attribute.
>
> 2012/9/14 pirzada rashid
>
> > Hi,
> >
> > I am using struts2-fullhibernatecore-plugin-2.2.2-GA in a demo strut2
You must initializate session attribute.
2012/9/14 pirzada rashid
> Hi,
>
> I am using struts2-fullhibernatecore-plugin-2.2.2-GA in a demo strut2
> project with Hibernate. I tried my best but can not make it work. I am
> using all the latest jars.
>
> *Am I missing something?*
>
> Please help
>
Hi,
I am using struts2-fullhibernatecore-plugin-2.2.2-GA in a demo strut2
project with Hibernate. I tried my best but can not make it work. I am
using all the latest jars.
*Am I missing something?*
Please help
*ERROR LOG*
2012-09-14 02:06:50 - [ INFO -
SessionTransactionInjectorInterceptor:41
On Sat, Feb 12, 2011 at 9:47 PM, Dave Newton wrote:
> On Sat, Feb 12, 2011 at 10:58 AM, abhishek jain
> wrote:
> > I am not doing any dependency management, i am just relying on myeclipse,
> > what is the best way,
>
> I'm not sure; I haven't used MyEclipse in some time (but I did for
> quite aw
On Sat, Feb 12, 2011 at 10:58 AM, abhishek jain
wrote:
> I am not doing any dependency management, i am just relying on myeclipse,
> what is the best way,
I'm not sure; I haven't used MyEclipse in some time (but I did for
quite awhile; very often worth the (minimal) cost.
I would strongly pursue
On Sat, Feb 12, 2011 at 8:12 PM, Dave Newton wrote:
> On Sat, Feb 12, 2011 at 9:39 AM, abhishek jain
> wrote:
> > no, i am not that experienced in java to do dependency management
> manually,
> > i just tried removing the library after the probelm just in case it
> solved
>
> How are you doing d
On Sat, Feb 12, 2011 at 9:39 AM, abhishek jain
wrote:
> no, i am not that experienced in java to do dependency management manually,
> i just tried removing the library after the probelm just in case it solved
How are you doing dependency management?
Dave
no, i am not that experienced in java to do dependency management manually,
i just tried removing the library after the probelm just in case it solved
thanks
abhi
On Sat, Feb 12, 2011 at 8:06 PM, Dave Newton wrote:
> You need to determine which versions you're actually depending on.
>
> Are you
You need to determine which versions you're actually depending on.
Are you attempting to do dependency management manually?!
Dave
On Sat, Feb 12, 2011 at 9:32 AM, abhishek jain
wrote:
> hi,
> I am using myeclipse , and using its own default classpath.
> I have two antlr-2.7.2.jar in Struts cor
hi,
I am using myeclipse , and using its own default classpath.
I have two antlr-2.7.2.jar in Struts core libraries and antlr-2.7.6.jar in
hibernate core libraries.
I tried removing antlr-2.7.2.jar and still the problem persists.
thanks
abhishek
On Sat, Feb 12, 2011 at 7:05 PM, Maurizio Cucchi
It looks like there something wrong in your dependencies. Check your
classpath (I'm not sure, but at first glance it'd seem the antlr library
version).
I could be proprably wrong but it not seems a struts problem.
Maurizio Cucchiara
Il giorno 12/feb/2011 14.20, "abhishek jain" ha
scritto:
> hi,
Chances are you're not running using the same classpath.
Dave
On Sat, Feb 12, 2011 at 8:20 AM, abhishek jain
wrote:
> hi,
> I am running a simple search of a product via Hibernate on struts code,
> the code runs fine when i run via a function in public static void main
>
> when i run the same co
hi,
I am running a simple search of a product via Hibernate on struts code,
the code runs fine when i run via a function in public static void main
when i run the same code via struts i get the following exception,
the code is:
public static void main(String[] args) {
ProductsDAO pd = new
to use latest versions of Spring and
> > Hibernate with Struts2.
> > Is it possible to use Spring 3.0.2 and Hibernate 3.5 with Struts 2?
> >
> >
> > Krunal Dhamelia
> >
>
>
>
> --
> Cimballi
> JAVA J2EE Freelance
> http://cimballi.elance.com/
Yes !
On Tue, Apr 6, 2010 at 11:15 PM, Krunal Dhamelia wrote:
> Hi All,
>
> I am new to Struts 2 and wanted to use latest versions of Spring and
> Hibernate with Struts2.
> Is it possible to use Spring 3.0.2 and Hibernate 3.5 with Struts 2?
>
>
> Krunal Dhamelia
>
Hi All,
I am new to Struts 2 and wanted to use latest versions of Spring and
Hibernate with Struts2.
Is it possible to use Spring 3.0.2 and Hibernate 3.5 with Struts 2?
Krunal Dhamelia
Thanks for this news! I will give it a try.
On Fri, Aug 7, 2009 at 1:56 PM, Musachy Barroso wrote:
> I have updated the JUnit plugin, to provide support for this kind of
> testing(also for spring testing), see the documentation here:
>
> http://cwiki.apache.org/confluence/display/WW/Testing+Action
I have updated the JUnit plugin, to provide support for this kind of
testing(also for spring testing), see the documentation here:
http://cwiki.apache.org/confluence/display/WW/Testing+Actions
See the 2 classes here:
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/junit/src/main/java/o
>
> In your code below, where you say // and then execute proxy again, are you
> missing some stepls where you need to supply some parameters to the
> action?
>
Yes, that wasn't actual code, just the steps I was considering.
-In any case it's good to know the limitations of the example. You are
ri
On Today at 2:02pm, DC=>Dimitrios Christodoulakis wrote:
DC> [..snip..]
DC>
DC> The CONFIG_LOCATIONS is used to initialize the servletContext which in
DC> turn is used to initialize the applicationContext, right? So, I am not
DC> sure where is the correct place to add the web.xml file, or how
I have used this testing code to a certain extend, and seems to work
fine. So I am interested in making it work against a complete test
case scenario.
So, when trying to load a child entity after the parent is retrieved,
I get a LazyInitializationException Error. Sure enough, when the
system tries
fet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>
>> Date: Mon, 20 Jul 2009 19:07:09 -0500
>> Subject: Re: unit testing Strut
t facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Mon, 20 Jul 2009 19:07:09 -0500
> Subject: Re: unit testing Struts2 application (with Spring and Hibernate)
> From: dimi@gmail.com
> To: user@struts.ap
Thanks for clarifying Haroon,
Actually the additions you are mentioning sum up the original testing
code pretty well. Like I said, from an educational point of view, I
think one can learn a lot about the framework itself by studying that
article and the comments. Thanks for the "preparable" bit t
On Today at 4:32pm, DC=>Dimitrios Christodoulakis wrote:
DC> Thanks Haroon for the handy advice. That seems to do the trick as far
DC> as the session object is concerned. The test passes now.
DC>
Glad it worked out.
DC>
DC> Would it be easy for someone to extend your code to include actions
Thanks Haroon for the handy advice. That seems to do the trick as far
as the session object is concerned. The test passes now. Would it be
easy for someone to extend your code to include actions that implement
the -aware interfaces? If I wanted to take a shot at that, is there a
particular point yo
On Yesterday at 9:16pm, DC=>Dimitrios Christodoulakis ...:
DC> [..snip..]
DC>
DC> When testing (junit 4) an action implementing the Sessionaware
DC> interface (my login and register classes) I noticed that the session
DC> object is set to null by BaseStrutsTestCase. This was mentioned before
D
On Sunday 19 July 2009 10:16:59 pm Dimitrios Christodoulakis wrote:
>
> 2) If one with general knowledge of servlets & jsp wants to dive into
> the struts2 source code, to get better understanding of the basic
> mechanics, what would be the starting point? So should I start lets
> say with the stru
Primarily for the sake of learning the inner mechanics of the struts2
framework, and unit testing, I took some time to study and experiment
with the code published at:
http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/
When testing (junit 4) an action i
Paweł Wielgus wrote:
Hi Dave,
when i record my tests with selenium ide,
all click or assert alements takes various loactor addresses,
very often they contain DOM paths,
so when layout is changed from tables to divs,
all these addresses are no longer valid.
On the rare occasions I use the IDE to
Hi Dave,
when i record my tests with selenium ide,
all click or assert alements takes various loactor addresses,
very often they contain DOM paths,
so when layout is changed from tables to divs,
all these addresses are no longer valid.
To present one simple example,
when i record logout click on o
Paweł Wielgus wrote:
But You will hit the same scale of problems when You will change
layout - all selenium tests are dead,
I haven't really found that to be the case--I only rarely test deep
structure with Selenium, but instead look for the presence of specific
CSS selectors containing text
t;
> -Original Message-
> From: Greg Lindholm
> To: Struts Users Mailing List
> Sent: Sat, Jul 18, 2009 3:00 am
> Subject: Re: unit testing Struts2 application (with Spring and Hibernate)
>
>
>
>>
>> > >
>> > > IMO that's outside the
. It is a bummer when you
switch versions and find
the tests are dead.
Chris
-Original Message-
From: Greg Lindholm
To: Struts Users Mailing List
Sent: Sat, Jul 18, 2009 3:00 am
Subject: Re: unit testing Struts2 application (with Spring and Hibernate)
>
> > >
> > &g
On Fri, Jul 17, 2009 at 2:28 PM, Dimitrios
Christodoulakis wrote:
[snip]
>
> Just a quick question to Wes: In your upcoming book, which is in the
> MEAP phase, there is an appendix titled Unit testing with JUnit and
> TestNG . Is there any plan to include some examples describing the
> different ki
Of course you're right Greg, it's not a contest... no right or wrong
here. I am glad to hear all the views coming from everyone and
commiters too.
Well, my original motivation was to learn how to do this kind of
tip-to-tail, all inclusive testing, with the interceptor stack
involved.
For example
On Fri, Jul 17, 2009 at 2:00 PM, Greg Lindholm wrote:
>
> Not to pick on anyone but this isn't really a popularity contest. Different
> situations have different needs and there is no reason to suggest that one
> solution will work best for everyone.
Greg, I didn't want it to come off as a popular
>
> > >
> > > IMO that's outside the purview of unit testing, though--by definition
> > > this describes integration testing: the testing of an action along with
> > > the framework.
> > >
> > > There's nothing *wrong* with doing that testing, I just don't think
> it's
> > > the same thing as unit
Couldn't agree more.
> From: w...@wantii.com
> To: user@struts.apache.org
> Subject: Re: unit testing Struts2 application (with Spring and Hibernate)
> Date: Thu, 16 Jul 2009 21:59:35 -0400
>
> On Thursday 16 July 2009 07:14:30 pm Dave Newton wrote:
> >
> >
sts to test
the whole enchilada.
Chris
-Original Message-
From: Wes Wannemacher
To: Struts Users Mailing List
Sent: Fri, Jul 17, 2009 10:59 am
Subject: Re: unit testing Struts2 application (with Spring and Hibernate)
On Thursday 16 July 2009 07:14:30 pm Dave Newton wrote:
>
&g
Hi all,
while i do selenium tests and i do prefer it for integration tests,
i'm feeling obligated to point out one disadvantage,
while being very easy and fun to write or record,
they tend to take a lot more time to run in comparison to unit tests.
My case is tons of selenium tests which takes abou
On Thursday 16 July 2009 07:14:30 pm Dave Newton wrote:
>
> IMO that's outside the purview of unit testing, though--by definition
> this describes integration testing: the testing of an action along with
> the framework.
>
> There's nothing *wrong* with doing that testing, I just don't think it's
>
Haroon Rafique wrote:
We like to test against the complete struts context include the relevant
interceptor stack. This gives us the ability to test for all kinds of
combinations of compelte and partially incomplete input.
IMO that's outside the purview of unit testing, though--by definition
t
d
> points.
>
> I was wondering with popular frameworks like struts, spring and
> hibernate integrated together and the increasing adoption of test
> driven, and agile development, there should be at least a couple of
> comprehensive, and well documented strategies on how to perform s
On Today at 1:19pm, GL=>Greg Lindholm wrote:
GL> Well everyone has an opinion so here mine:
GL>
GL> I want to unit test my Struts actions in the full Struts context which
GL> includes the interceptor stack and validation. This way I know my
GL> actions and results are configured correctly sinc
Thanks everyone for their opinions. I was indeed hoping to hear both
sides of this matter, with both bringing valid arguments and make good
points.
I was wondering with popular frameworks like struts, spring and
hibernate integrated together and the increasing adoption of test
driven, and agile
n Thu, Jul 16, 2009 at 10:43 AM, Dimitrios Christodoulakis <
dimi@gmail.com> wrote:
> Hello,
>
> I was hoping to hear the community's views about unit testing a
> Struts2 application which is integrated with Spring and Hibernate. My
> plan is to unit test the actio
>
> -Wes
>
> On Thu, Jul 16, 2009 at 10:43 AM, Dimitrios
> Christodoulakis wrote:
>> Hello,
>>
>> I was hoping to hear the community's views about unit testing a
>> Struts2 application which is integrated with Spring and Hibernate. My
>> plan is to un
unity's views about unit testing a
> Struts2 application which is integrated with Spring and Hibernate. My
> plan is to unit test the actions with the framework's interceptors
> running, rather than each action class in a stand-alone isolated
> fashion.
>
>
Hello,
I was hoping to hear the community's views about unit testing a
Struts2 application which is integrated with Spring and Hibernate. My
plan is to unit test the actions with the framework's interceptors
running, rather than each action class in a stand-alone isolated
fashion.
Wha
-And-Hibernate-Problem-tp18121609p18140542.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Are you using spring to instantiate your actions? If so, did you setup
to not use singletons?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
are new objects each time ([EMAIL PROTECTED]).
I hope this sheds some light on what can be going wrong because I can still
not find the solution.
Thank you all.
--
View this message in context:
http://www.nabble.com/Struts-2-And-Hibernate-Problem-tp18121609p18139584.html
Sent from the Struts
t to null first then changed it, the values would
change, not sure if that makes much sense.
If anyone has an idea on what can be causing this I would greatly appretiate
your help.
--
View this message in context:
http://www.nabble.com/Struts-2-And-Hibernate-Problem-tp18121609p18121609.html
Sent fr
Hi!
I don't see why it shouldn't be possible to create a similar
interceptor for Struts 2. It would certainly be the cleanest and best
way to do it.
Nils-H
On 5/10/08, Parker Grimes <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Since portlets cannot use servlet session filters like the Spring
> OpenSes
Hi,
Since portlets cannot use servlet session filters like the Spring
OpenSessionInViewFilter, what is the recommended approach to the Hibernate
lazy-load issue with Struts2 portlets?
The Spring Portlet MVC framework has the OpenSessionInViewInterceptor in
conjunction with their HandlerMapping st
the
whole dojo plugin) worth it.
-nick
-Original Message-
From: Andre Prasetya [mailto:[EMAIL PROTECTED]
Sent: October 19, 2007 2:39 AM
To: Struts Users Mailing List
Subject: Re: and Hibernate
Where can i get this new dojo plugin ? and is it usable using 2.0.9 ?
-Andre-
Engelking, Nicholas wro
, 2007 11:20 PM
To: Struts Users Mailing List
Subject: Re: and Hibernate
Yes! My Jsp file looks exactly like the one provided into the "Example
Applications" (struts-2.0.9-apps.zip).
function treeNodeSelected(nodeId) {
dojo.io.bind({
url: "<s:url
va
Where can i get this new dojo plugin ? and is it usable using 2.0.9 ?
-Andre-
Engelking, Nicholas wrote:
I just went through the same thing. In struts 2.1 there is a new href attribute
on the tree tag. It points to an action that returns some json using the json
plugin that gives all the info
label: "text of node2",
id: "id2",
hasChildren: false
}
]
See https://issues.apache.org/struts/browse/WW-1910 for more info. Remember to
put the json and dojo plugins in you lib directory.
-Original Message-
From: Cosmin Stanciu [mailto:[EMAIL PROTECTED]
Sent: October 1
- Original Message
From: Dave Newton <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Thursday, October 18, 2007 7:27:32 PM
Subject: Re: and Hibernate
--- Cosmin Stanciu <[EMAIL PROTECTED]> wrote:
> Action tab the funtionality is not shown. :(
Are you filling tree
--- Cosmin Stanciu <[EMAIL PROTECTED]> wrote:
> Action tab the funtionality is not shown. :(
Are you filling tree data via Ajax (which the example
on the wiki isn't)?
d.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
ay, October 18, 2007 6:22:39 PM
Subject: Re: and Hibernate
Is the documentation at
http://struts.apache.org/2.0.9/docs/tree.html out of
date? I haven't looked at it in quite awhile now.
d.
--- Cosmin Stanciu <[EMAIL PROTECTED]> wrote:
> Hi!
> I have been trying for a week now
Is the documentation at
http://struts.apache.org/2.0.9/docs/tree.html out of
date? I haven't looked at it in quite awhile now.
d.
--- Cosmin Stanciu <[EMAIL PROTECTED]> wrote:
> Hi!
> I have been trying for a week now to populate one
> with the data from a database table but
> with no luck . I
Hi!
I have been trying for a week now to populate one with the data from a
database table but with no luck . I would really apreciate some guidance in how
to write the ShowDynamicTreeAction class that sends the date to the tree.
I'm using Hibernate DAO to receive the data from my database tabl
it works as ear project with access to the ejbs by prewriting the
ear-archive name
2006/7/1, stephan opitz <[EMAIL PROTECTED]>:
i've looked hours for it and it didn't work... using eclipse... also
examples from inet whicht i imported in eclipse...
out-of-container ejb shouldn't be that problem
DOUILLARD David on 03/07/06 08:02, wrote:
Hello,
I'm working on struts and hibernate. J'ai une tache qui est affectée à un
utilisateur.
I have a Actionform named Task.
Private Integer code ;
Private String codeus ; // Login of user
Private String libelle;
I have also a POJO Task
Hello,
I'm working on struts and hibernate. J'ai une tache qui est affectée à un
utilisateur.
I have a Actionform named Task.
Private Integer code ;
Private String codeus ; // Login of user
Private String libelle;
I have also a POJO Task.
Private Integer code;
Private User user;
i've looked hours for it and it didn't work... using eclipse... also
examples from inet whicht i imported in eclipse...
out-of-container ejb shouldn't be that problem but it is... i've used
the glassfish reference implementation. also built a jar containing
the meta-inf (& persistence.xml)
craig
On 6/30/06, Adam Brod <[EMAIL PROTECTED]> wrote:
I had to put my directory structure like this:
[mywebapp]\WEB-INF\classes\META-INF\persistence.xml
It didn't work when I put it in a top-level META-INF directory.
It also works if the persistence.xml file is in the META-INF directory of a
jar
pond to
"Struts Users Mailing List"
To
"Struts Users Mailing List"
cc
Subject
Re: [shale] and ejb 3.0 and hibernate working together example
hello,
i defined my ejb 3.0... created a persistence.xml with a pu in the
meta-inf folder.
using eclipse with maven2 plugin
hello,
i defined my ejb 3.0... created a persistence.xml with a pu in the
meta-inf folder.
using eclipse with maven2 plugin (all dependicies are correct)
Exception: javax.persistence.PersistenceException: No Persistence
provider for EntityManager.
i'm not the only one with this problem, but no
thx...
thats great... i learned on studying the mailreader example...
when it is ready to service... i'm right now writing on an application
using mailreader as base... thats why it will be great using/learning
from yours...
using hibernate and ejb 3.0 is not so simple - i could find an
example
On 6/29/06, stephan opitz <[EMAIL PROTECTED]> wrote:
hello...
does exist any kind of good example which include in the controller
component hibernate with normal pojos or maybe already ejb 3.0???
I am almost through with a Shale+EJB3 (well, actually its Shale+JPA)
example. It's the good ol'
hello...
does exist any kind of good example which include in the controller
component hibernate with normal pojos or maybe already ejb 3.0???
stephan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
To unsubscribe, e-mail: [EMAIL PROTECTED]
On 8/25/05, Shajee <[EMAIL PROTECTED]> wrote:
>
> Hi i want to unsubscribe from this group.
>
> Kindly unsubscribe me.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional
Hi i want to unsubscribe from this group.
Kindly unsubscribe me.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Konrad Billewicz wrote:
Lindholm, Greg neom.com> writes:
What I do is use a Hibernate Servlet Filter that closes the Hibernate
session
at the end of the request. This is used in conjunction with the
HibernateUtils
class that stores the Hibernate session in ThreadLocal storage.
An example
Gareth Evans msoft.co.uk> writes:
> http://www.javalobby.org/java/forums/t20533.html
While ago other kind person gave mi a link to the Hibernate web site and I
solved my problem. I'll read this article later. Thank you for it.
Best regards,
Konrad Billewicz
Lindholm, Greg neom.com> writes:
> What I do is use a Hibernate Servlet Filter that closes the Hibernate
> session
> at the end of the request. This is used in conjunction with the
> HibernateUtils
> class that stores the Hibernate session in ThreadLocal storage.
>
> An example of this techni
http://www.javalobby.org/java/forums/t20533.html
Marco Mistroni wrote:
Hello,
Could you tell me more? Which filter? Do you mean Tomcat filters? Which
plugin?
It's a Servlet Filter if I am correct..
Plugin is a Struts plugin
If you check www.hibernate.org in FAQ there should be a link
Hello,
>Could you tell me more? Which filter? Do you mean Tomcat filters? Which
>plugin?
It's a Servlet Filter if I am correct..
Plugin is a Struts plugin
If you check www.hibernate.org in FAQ there should be a link to those
informations..
Regards
marco
-
Nick Heudecker gmail.com> writes:
> The most common way to solve this problem is to use the Open Session
> In View pattern, which leaves the Hibernate session open until the JSP
> has finished rendering. Typically accomplished with a filter, there
> is also a Struts plugin to help with this patt
://www.hibernate.org/43.html)
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Konrad Billewicz
Sent: Tuesday, August 09, 2005 10:11 AM
To: user@struts.apache.org
Subject: Struts and Hibernate lazy
Hello,
I am using Hibernate in my Struts project. A have a problem with
Hibernate
The most common way to solve this problem is to use the Open Session
In View pattern, which leaves the Hibernate session open until the JSP
has finished rendering. Typically accomplished with a filter, there
is also a Struts plugin to help with this pattern.
Google for "Open Session In View" and
Hello,
I am using Hibernate in my Struts project. A have a problem with Hibernate lazy
option. When I am setting it to true, I get an error in my JSPs:
org.apache.jasper.JasperException: could not initialize proxy - the owning
Session was closed
Of course I know why this error occurs. I am clo
Hi,
We are looking for developers with good understanding of Struts and
Hibernate in Hungary and Romania.
If you are interested in please contact me at:
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Carl-Eric Menzel wrote:
> It is possible to reassociate an object from an older session with the
> current session by using the Session.lock() method. See
>
>
http://www.hibernate.org/hib_docs/reference/en/html/manipulatingdata.html#manipulatingdata-update-lock
>
GREAT !!
This is EXACTLY what
> At 1:57 PM +0200 5/5/04, Lionel wrote:
>>The problem is that when I load an object, put the object into HttpSession,
>>close the hibernate Session.
>>If later I call a getter on lazy loaded children, I get a LazyException,
>>connection closed
>>I want to keep the children lazy loaded because
At 2:10 PM +0200 5/5/04, Lionel wrote:
Nicolas de Amorrortu wrote:
Have you tried the following? http://www.hibernate.org/43.html.
this is what I was thinking about when I posted my question...but haven't
tried it yet.
I don't think it will solve my problem as the object I load is put in
session a
Nicolas de Amorrortu wrote:
> Have you tried the following? http://www.hibernate.org/43.html.
this is what I was thinking about when I posted my question...but haven't
tried it yet.
I don't think it will solve my problem as the object I load is put in
session and can be accessed many requests late
Have you tried the following? http://www.hibernate.org/43.html.
Regards,
Nicolás
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Lionel
Sent: Miércoles, 05 de Mayo de 2004 08:58 a.m.
To: [EMAIL PROTECTED]
Subject: Re: Struts and Hibernate Session
Joe Germuska wrote
Joe Germuska wrote:
>> Acutally, I have put the getHibernateSession() on a ActionFormBase.
>> After each SQL action (load, find...) I close the Session.
>> I don't believe this is a good design and would like to improve it.
>
> This is actually how Hibernate is meant to be used. The session
> lif
Where is the best way to keep the current opened Hibernate Session ?
-in the HttpSession of each user ?
-in a singleton ?
-...
When to close this Session ?
-after each request ?
-when the HttpSession closes ?
-...
Acutally, I have put the getHibernateSession() on a ActionFormBase.
After each SQL ac
-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Lionel
Sent: 05 May 2004 11:31
To: [EMAIL PROTECTED]
Subject: Struts and Hibernate Session
Hi !
I use struts 1.2 and Hibernate on Websphere 5.
I use the struts plugin to store the SessionFactory on applicaiton
context.
Where is the best way to keep
Hi !
I use struts 1.2 and Hibernate on Websphere 5.
I use the struts plugin to store the SessionFactory on applicaiton context.
Where is the best way to keep the current opened Hibernate Session ?
-in the HttpSession of each user ?
-in a singleton ?
-...
When to close this Session ?
-after each
sses/com/edhand/whatever.java
Regards,
David
-Original Message-
From: Mario St-Gelais [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 10:14 PM
To: Struts Users Mailing List
Subject: Re: Struts and Hibernate
David Friedman wrote:
>Mario,
>
>Where is your hibernate.properties f
1 - 100 of 115 matches
Mail list logo