Re: How to implement multi tenancy with separate database in struts and hibernate?

2014-07-08 Thread Néstor Boscán
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

Re: How to implement multi tenancy with separate database in struts and hibernate?

2014-07-08 Thread john feng
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

How to implement multi tenancy with separate database in struts and hibernate?

2014-07-08 Thread Kevin Peterson
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

Re: struts2-fullhibernatecore-plugin-2.2.2-GA with struts2 and Hibernate

2012-09-14 Thread pirzada rashid
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

Re: struts2-fullhibernatecore-plugin-2.2.2-GA with struts2 and Hibernate

2012-09-14 Thread Alejandro
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 >

struts2-fullhibernatecore-plugin-2.2.2-GA with struts2 and Hibernate

2012-09-14 Thread 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 *ERROR LOG* 2012-09-14 02:06:50 - [ INFO - SessionTransactionInjectorInterceptor:41

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
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

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
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

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
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

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
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

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
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

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
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

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
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

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Maurizio Cucchiara
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,

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
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

error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
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

Re: Which Spring and Hibernate versions are compatible

2010-04-07 Thread aum strut
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/

Re: Which Spring and Hibernate versions are compatible

2010-04-06 Thread Cimballi
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 >

Which Spring and Hibernate versions are compatible

2010-04-06 Thread 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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-08-07 Thread Dimitrios Christodoulakis
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-08-07 Thread Musachy Barroso
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-21 Thread Dimitrios Christodoulakis
> > 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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-21 Thread Haroon Rafique
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-21 Thread Dimitrios Christodoulakis
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-20 Thread Dimitrios Christodoulakis
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

RE: unit testing Struts2 application (with Spring and Hibernate)

2009-07-20 Thread Martin Gainty
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-20 Thread Dimitrios Christodoulakis
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-20 Thread Haroon Rafique
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-20 Thread Dimitrios Christodoulakis
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-20 Thread Haroon Rafique
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-19 Thread Wes Wannemacher
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-19 Thread Dimitrios Christodoulakis
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-19 Thread Dave Newton
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-19 Thread Paweł Wielgus
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-19 Thread Dave Newton
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-19 Thread Paweł Wielgus
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-19 Thread musomesa
. 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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-17 Thread Wes Wannemacher
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-17 Thread Dimitrios Christodoulakis
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-17 Thread Wes Wannemacher
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-17 Thread Greg Lindholm
> > > > > > > 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

RE: unit testing Struts2 application (with Spring and Hibernate)

2009-07-17 Thread Andy
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: > > > >

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-17 Thread musomesa
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-17 Thread Paweł Wielgus
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-16 Thread Wes Wannemacher
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 >

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-16 Thread Dave Newton
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-16 Thread Nils-Helge Garli Hegvik
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-16 Thread Haroon Rafique
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-16 Thread Dimitrios Christodoulakis
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-16 Thread Greg Lindholm
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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-16 Thread Musachy Barroso
> > -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

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-16 Thread Wes Wannemacher
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. > >

unit testing Struts2 application (with Spring and Hibernate)

2009-07-16 Thread Dimitrios Christodoulakis
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

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread cree
-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]

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread Lukasz Lenart
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

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread cree
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

Struts 2 And Hibernate Problem

2008-06-25 Thread cree
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

Re: Struts2 Portlet and Hibernate lazy-loading

2008-05-10 Thread Nils-Helge Garli Hegvik
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

Struts2 Portlet and Hibernate lazy-loading

2008-05-09 Thread Parker Grimes
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

RE: and Hibernate

2007-10-19 Thread Engelking, Nicholas
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

RE: and Hibernate

2007-10-19 Thread Manu Mahajan
, 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

Re: and Hibernate

2007-10-18 Thread Andre Prasetya
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

RE: and Hibernate

2007-10-18 Thread Engelking, Nicholas
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

Re: and Hibernate

2007-10-18 Thread Cosmin Stanciu
- 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

Re: and Hibernate

2007-10-18 Thread Dave Newton
--- 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

Re: and Hibernate

2007-10-18 Thread Cosmin Stanciu
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

Re: and Hibernate

2007-10-18 Thread Dave Newton
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

and Hibernate

2007-10-18 Thread Cosmin Stanciu
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

Re: [shale] and ejb 3.0 and hibernate working together example

2006-07-05 Thread stephan opitz
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

Re: Struts and Hibernate

2006-07-03 Thread Adam Hardy
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

Struts and Hibernate

2006-07-03 Thread DOUILLARD David
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;

Re: [shale] and ejb 3.0 and hibernate working together example

2006-07-01 Thread stephan opitz
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

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-30 Thread Craig McClanahan
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

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-30 Thread Adam Brod
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

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-30 Thread stephan opitz
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

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-29 Thread stephan opitz
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

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-29 Thread Craig McClanahan
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'

[shale] and ejb 3.0 and hibernate working together example

2006-06-29 Thread stephan opitz
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:

Re: [OT]: Struts and Hibernate lazy

2005-08-25 Thread Letícia Álvares Barbalho
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

Re: [OT]: Struts and Hibernate lazy

2005-08-25 Thread Shajee
Hi i want to unsubscribe from this group. Kindly unsubscribe me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT]: Struts and Hibernate lazy

2005-08-10 Thread David Durham
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

Re: Struts and Hibernate lazy

2005-08-10 Thread Konrad Billewicz
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

Re: [OT]: Struts and Hibernate lazy

2005-08-10 Thread 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

Re: Struts and Hibernate lazy

2005-08-10 Thread Gareth Evans
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

RE: Struts and Hibernate lazy

2005-08-10 Thread Marco Mistroni
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 -

Re: Struts and Hibernate lazy

2005-08-10 Thread Konrad Billewicz
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

[OT]: Struts and Hibernate lazy

2005-08-09 Thread Lindholm, Greg
://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

Re: Struts and Hibernate lazy

2005-08-09 Thread Nick Heudecker
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

Struts and Hibernate lazy

2005-08-09 Thread Konrad Billewicz
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

Wanted Struts and Hibernate developers in Hungary and Romania!

2005-08-03 Thread Zsolt
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

Re: Re[2]: Struts and Hibernate Session

2004-05-05 Thread Lionel
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

Re[2]: Struts and Hibernate Session

2004-05-05 Thread Carl-Eric Menzel
> 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

Re: Struts and Hibernate Session

2004-05-05 Thread Joe Germuska
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

Re: Struts and Hibernate Session

2004-05-05 Thread Lionel
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

RE: Struts and Hibernate Session

2004-05-05 Thread Nicolas de Amorrortu
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

Re: Struts and Hibernate Session

2004-05-05 Thread Lionel
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

Re: Struts and Hibernate Session

2004-05-05 Thread Joe Germuska
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

RE: Struts and Hibernate Session

2004-05-05 Thread Marco Mistroni
- 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

Struts and Hibernate Session

2004-05-05 Thread Lionel
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

RE: Struts and Hibernate

2004-04-21 Thread David Friedman
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   2   >