Antwort: Re: Struts2 + EJB 3.0 + Hibernate

2009-11-25 Thread jheidenreich
rather than spring. Struts2 + spring + hibernate will be a good combination if it is suitable for your problem domain. Emil On Thu, Nov 26, 2009 at 12:08 PM, vikrant S shimpi.vikr...@gmail.comwrote: Is It a good idea to build a project using the combination Struts2 + EJB 3.0 + Hibernate using

Re: Re: Struts2 + EJB 3.0 + Hibernate

2009-11-25 Thread emil thushanga
is to lookup your local or remote EJB interface, which is in fact 1 line of code. Joachim Struts2 is good for your presentation layer. It is the MVC front controller. Accessing EJB is a kind of a challenge inside Struts2 rather than spring. Struts2 + spring + hibernate will be a good

Re: Hibernate/Spring

2009-11-17 Thread Musachy Barroso
/ Spring / Hibernate application, using the JPA specification as it seems to be the case here. It is not required to go through all the pain of using EJB entities. I am running this application both in Websphere and Tomcat, without using the container at all. To me the problem is only a JPA

Re: Hibernate/Spring

2009-11-17 Thread Burton Rhodes
of them. On Sat, Nov 14, 2009 at 9:18 PM, Denis Cabasson denis.cabas...@gmail.com wrote: Hi Martin, I am building a Struts 2 / Spring / Hibernate application, using the JPA specification as it seems to be the case here. It is not required to go through all the pain of using EJB entities. I am

Re: Hibernate/Spring

2009-11-15 Thread phillips1021
I wrote up a blog article on using Struts 2, Spring, and Hibernate together. The article includes an example application and a list of references you can use to learn more about these three technologies. See: http://www.brucephillips.name/blog/index.cfm/2009/11/14/A-Struts-2-Spring

RE: Hibernate/Spring

2009-11-15 Thread Martin Gainty
can we use hibernate to automate mapping of blogCFC entities (specifically blog-category) to Database tables? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich

Re: Hibernate/Spring

2009-11-15 Thread Alex Siman
wrote: Hi Martin, I am building a Struts 2 / Spring / Hibernate application, using the JPA specification as it seems to be the case here. It is not required to go through all the pain of using EJB entities. I am running this application both in Websphere and Tomcat, without using the container

Re: Hibernate/Spring

2009-11-15 Thread Musachy Barroso
, or a bot, or very very stupid, or all of them. On Sat, Nov 14, 2009 at 9:18 PM, Denis Cabasson denis.cabas...@gmail.com wrote: Hi Martin, I am building a Struts 2 / Spring / Hibernate application, using the JPA specification as it seems to be the case here. It is not required to go through all

Re: Hibernate/Spring

2009-11-14 Thread Denis Cabasson
are dealing with your entities. Denis. Chris Cranford a écrit : I have done a fair amount of reading today on the topic again and developed a few simple classes to support my service, model, and dao architecture for using Hibernate 3.3.2 and Spring 2 with Struts2. The problem I am currently facing is I

RE: Hibernate/Spring

2009-11-14 Thread Martin Gainty
good morning denis i sent chris a summary of working hibernate examples in Glassfish the getReference is a method from Ejb3Configuration the merge method comes from org.hibernate.ejb.AbstractEntityManagerImpl (and implements the sessions merge) whichever app server he will be implementing

Re: Hibernate/Spring

2009-11-14 Thread phillips1021
Chris - I just happened to be learning Hibernate and have created an example application that uses Struts 2, Spring, and Hibernate together. You can download the example application here: http://www.brucephillips.name/struts/Struts2_Spring_Hibernate_Example.zip After you unzip the archive

Re: Hibernate/Spring

2009-11-14 Thread Denis Cabasson
Hi Martin, I am building a Struts 2 / Spring / Hibernate application, using the JPA specification as it seems to be the case here. It is not required to go through all the pain of using EJB entities. I am running this application both in Websphere and Tomcat, without using the container

Re: Hibernate/Spring

2009-11-14 Thread Musachy Barroso
never mind him, he is a troll, or a bot, or very very stupid, or all of them. On Sat, Nov 14, 2009 at 9:18 PM, Denis Cabasson denis.cabas...@gmail.com wrote: Hi Martin, I am building a Struts 2 / Spring / Hibernate application, using the JPA specification as it seems to be the case here

Re: Struts2 + Spring/Hibernate

2009-11-13 Thread wild_oscar
to be mapped to method someaction of class SomethingAction and have a result of pages/Something/someaction -- View this message in context: http://old.nabble.com/Struts2-%2B-Spring-Hibernate-tp26329368p26333817.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts2 + Spring/Hibernate

2009-11-13 Thread Jozef Fiflik
, CRANFORD, CHRIS chris.cranf...@setech.com wrote: I am in the process of implementing Struts2 along with integrated support with Spring and Hibernate. While I have found various examples on the web, I tend to find they vary. My application will primarily focus about 75% of the time on data

RE: Struts2 + Spring/Hibernate

2009-11-13 Thread CRANFORD, CHRIS
Hi Wild Oscar, thanks for your input. First, I agree my design needs work with respect to naming conventions and thank you for the suggestions. This was more of a very crude example of how I should be relating components in the Hibernate/Spring/Struts2 design pattern so I can grasp

Hibernate/Spring

2009-11-13 Thread Chris Cranford
I have done a fair amount of reading today on the topic again and developed a few simple classes to support my service, model, and dao architecture for using Hibernate 3.3.2 and Spring 2 with Struts2. The problem I am currently facing is I get a detached error when deleting an object and I get

Struts2 + Spring/Hibernate

2009-11-12 Thread CRANFORD, CHRIS
I am in the process of implementing Struts2 along with integrated support with Spring and Hibernate. While I have found various examples on the web, I tend to find they vary. My application will primarily focus about 75% of the time on data queries and displaying this data to end users while

Re: Struts2 / Hibernate Question

2009-10-24 Thread Eduard Neuwirt
Hm, interesting. I checked against my configurations. I have in my WEB-INF/lib spring.jar, all necessary hibernate archives and the configuration of filters is done as described in the link I already posted. Best Eduard Dennis Atkinson schrieb: OK, that's good. So -- uh - how would I

Re: Struts2 / Hibernate Question

2009-10-24 Thread Dennis Atkinson
I have neglected to do? Some other configuration, perhaps? --Dennis From: Eduard Neuwirt eduard.neuw...@googlemail.com To: Struts Users Mailing List user@struts.apache.org Sent: Sat, October 24, 2009 2:52:27 AM Subject: Re: Struts2 / Hibernate Question Hm

Re: Can't view the image after uploading the image in netbeans 6.7 using struts 1.3.8 + hibernate both in windows and linux machine.

2009-10-23 Thread Dale Newfield
swamy007 wrote: My question is while we uplaod some image it got refelected in the database but we are not able to view the image. Only after deploying the project in netbeans it is been viewable. A file uploaded to your server by a browser as part of a POST is put in a temporary location for

Struts2 / Hibernate Question

2009-10-23 Thread Dennis Atkinson
there is no session when the read actually occurs, and the exception is thrown. It seems like any complex Struts / Hibernate system would eventually run into this issue, as I have. I could specify everything as EAGER, but that would (eventually) load my entire database and that's far from

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
Hi, Obviously there is a gap between Hibernate and Web-Application. OpenSessionInViewFilter working well, almost. I am using this filter and in the most cases it is enough. Sometimes I have to load Collection with size(). The another solution is to store only keys in the session and load

Re: Struts2 / Hibernate Question

2009-10-23 Thread Johannes Geppert
I use the FullHibernatePlugin in some small Projects, this is working very well for me. In larger Projects today I prefer Hibernate in combination with Spring Framework. Best Regards Johannes Geppert -- http://www.jgeppert.com http://twitter.com/jogep Dennis Atkinson wrote: Hello all

Re: Struts2 / Hibernate Question

2009-10-23 Thread Thomas Sattler
eduard.neuw...@googlemail.com wrote: Hi, Obviously there is a gap between Hibernate and Web-Application. OpenSessionInViewFilter working well, almost. I am using this filter and in the most cases it is enough. Sometimes I have to load Collection with size(). The another solution is to store

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
Hello Johannes, I am a little bit confusing. I thougth that Spring + Hibernate do not solve the LazyInitializationException-issue because the hibernate session is attached to request scope, so it leads to the problem ? Do you store the session in the session scope ? Regards Eduard Johannes

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
triple-check to make sure that jar is loaded. --Dennis On Fri, Oct 23, 2009 at 2:35 PM, Eduard Neuwirt eduard.neuw...@googlemail.com wrote: Hi, Obviously there is a gap between Hibernate and Web-Application. OpenSessionInViewFilter working well, almost. I am using this filter

Re: Struts2 / Hibernate Question

2009-10-23 Thread Dennis Atkinson
Eduard, I thought the FullHibernatePlugin implements this. --Dennis From: Eduard Neuwirt eduard.neuw...@googlemail.com To: Struts Users Mailing List user@struts.apache.org Sent: Fri, October 23, 2009 3:08:44 PM Subject: Re: Struts2 / Hibernate Question Hi

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
implements this. --Dennis From: Eduard Neuwirt eduard.neuw...@googlemail.com To: Struts Users Mailing List user@struts.apache.org Sent: Fri, October 23, 2009 3:08:44 PM Subject: Re: Struts2 / Hibernate Question Hi, please have a look to the https

Re: Struts2 / Hibernate Question

2009-10-23 Thread Dennis Atkinson
Subject: Re: Struts2 / Hibernate Question Hi Dennis, sorry i don't know anything about FullHibernatePlugin. I am using only the OpenSessionInView-approach. The Google delivers several threads to this topic. It seems to be rather interesting problem. Regards Eduard Dennis Atkinson schrieb

Can't view the image after uploading the image in netbeans 6.7 using struts 1.3.8 + hibernate both in windows and linux machine.

2009-10-22 Thread swamy007
://www.nabble.com/Can%27t-view-the-image-after-uploading-the-image-in-netbeans-6.7-using-struts-1.3.8-%2B-hibernate-both-in-windows-and-linux-machine.-tp26021227p26021227.html Sent from the Struts - User mailing list archive at Nabble.com

Any good Open source project using Struts2 + Hibernate+Spring I can learn from ?

2009-10-02 Thread BlackKnight
Hi,Folks, I've been using SSH for a while and are hoping to learn from some open source code if there are any. As for .net there are petshop. and Ejb there are petstore. Are there any good open sourced project using SSH? Thanks! Frank

Re: Any good Open source project using Struts2 + Hibernate+Spring I can learn from ?

2009-10-02 Thread Antonio Petrelli
2009/10/2 BlackKnight ar3...@gmail.com: Are there any good open sourced project using SSH? Well, in fact I mean something else for SSH, anyway the Roller weblogger uses it: http://roller.apache.org/ Antonio - To

Re: Any good Open source project using Struts2 + Hibernate+Spring I can learn from ?

2009-10-02 Thread Rafael Nami
Appfuse 2 (http://appfuse.org) 2009/10/2 Antonio Petrelli antonio.petre...@gmail.com 2009/10/2 BlackKnight ar3...@gmail.com: Are there any good open sourced project using SSH? Well, in fact I mean something else for SSH, anyway the Roller weblogger uses it: http://roller.apache.org/

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:

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 Barrosomusa...@gmail.com wrote: I have updated the JUnit plugin, to provide support for this kind of testing(also for spring testing), see the documentation here:

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

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

2009-07-21 Thread Haroon Rafique
On Today at 2:02pm, DC=Dimitrios Christodoulakis dimi@gmail.com 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

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 right,

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

2009-07-20 Thread Haroon Rafique
On Yesterday at 9:16pm, DC=Dimitrios Christodoulakis dimi@gmail.com...: 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

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

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

2009-07-20 Thread Haroon Rafique
On Today at 4:32pm, DC=Dimitrios Christodoulakis dimi@gmail.com 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

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

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

2009-07-20 Thread Martin Gainty
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.apache.org Thanks for clarifying Haroon

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

2009-07-20 Thread Dimitrios Christodoulakis
ê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.apache.org Thanks for clarifying

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

2009-07-19 Thread musomesa
and Hibernate) 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 testing

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

2009-07-19 Thread Paweł Wielgus
...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Sat, Jul 18, 2009 3:00 am Subject: Re: unit testing Struts2 application (with Spring and Hibernate) IMO that's outside the purview of unit testing, though--by definition this describes integration testing: the testing

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
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

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

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

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

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

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

2009-07-17 Thread musomesa
the whole enchilada. Chris -Original Message- From: Wes Wannemacher w...@wantii.com To: Struts Users Mailing List user@struts.apache.org 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

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: IMO that's outside the purview of unit testing

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 testing: independently

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 Lindholmgreg.lindh...@gmail.com 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

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:28 PM, Dimitrios Christodoulakisdimi@gmail.com 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

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. What approach

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

2009-07-16 Thread Wes Wannemacher
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. What approach do you usually follow? A highly regarded article: http

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

2009-07-16 Thread Musachy Barroso
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. What approach do you usually follow? A highly

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

2009-07-16 Thread Greg Lindholm
don't use Spring so this class would need to be tweaked for Spring but you are welcome to use this as a starting point. This gives me a lot of flexibility for testing, sometimes I test against an actual database (with hibernate) and sometimes I mock the services that the actions use. On Thu, Jul

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 Haroon Rafique
to be tweaked for Spring but you GL are welcome to use this as a starting point. GL GL This gives me a lot of flexibility for testing, sometimes I test GL against an actual database (with hibernate) and sometimes I mock the GL services that the actions use. GL Later, -- Haroon Rafique haroon.rafi

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

2009-07-16 Thread Nils-Helge Garli Hegvik
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 such kind of unit testing with the whole

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

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 the

Struts2/Hibernate/Sitemesh

2009-06-29 Thread CRANFORD, CHRIS
I am looking to use the following tools for our web application: - Struts 2.1.6 - Hibernate 3 - Sitemesh In our WEB.XML file I have added the following lines to support Struts2 with Sitemesh. filter filter-namestruts2-cleanup/filter-name filter-classorg.apache.struts2

mvn archetype/starter project w/ Hibernate Struts 2?

2009-06-05 Thread Jim Collings
Anybody know of such a beast? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: mvn archetype/starter project w/ Hibernate Struts 2?

2009-06-05 Thread Wes Wannemacher
I think AppFuse has archetypes like that... http://www.appfuse.org -Wes On Fri, Jun 5, 2009 at 8:02 AM, Jim Collingsjlistn...@gmail.com wrote: Anybody know of such a beast? - To unsubscribe, e-mail:

Re: struts2+spring+hibernate, objects instantiate order?

2009-05-14 Thread Jim Kiley
1) is correct. I can't tell you the number of times that, on app startup, I've gotten reams and reams of error messages because Spring couldn't instantiate some bean or another.2) is both -- which you could determine for yourself pretty easily by putting a logging statement in the action's

struts2+spring+hibernate, objects instantiate order?

2009-05-13 Thread ren sky
hello everyone, i am new to struts2. i use struts2, spring2.5 and hibernate 3.3.1 to build a simple website. and have some questions about the order of the objects instantiate. here is my config file for spring: -applicationContext.xml

Re: struts2+spring+hibernate, objects instantiate order?

2009-05-13 Thread Dave Newton
ren sky wrote: 1) before running my project, spring has already instantiate all the object defined in the applicationContext.xml? such as LoginAction,PersonServiceImpl and sessionFactory? Singletons probably are, sure. 2) the action used in struts2 is instantiated before a request comes

reconnecting to the Oracle database.with Hibernate 3. I

2009-04-20 Thread srinivasa_v .
Hi I am getting Exception while reconnecting to the Oracle database.with Hibernate 3. I was getting this problem when Data Base server restarts. its start working when restartig the application server. Here is the error message I am getting in logs JDBCException W

Re: reconnecting to the Oracle database.with Hibernate 3. I

2009-04-20 Thread Nils-Helge Garli Hegvik
Maybe you should try a Hibernate list/forum instead? Nils-H On Mon, Apr 20, 2009 at 10:11 AM, srinivasa_v . srinivas...@sify.com wrote: Hi I am getting Exception while reconnecting to the Oracle database.with Hibernate 3. I was getting this problem when Data Base server restarts. its start

Re: reconnecting to the Oracle database.with Hibernate 3. I

2009-04-20 Thread srinivasa_v .
Hibernate list/forum is down and its a prodction issue for me On Mon, Apr 20, 2009 at 1:43 PM, Nils-Helge Garli Hegvik nil...@gmail.comwrote: Maybe you should try a Hibernate list/forum instead? Nils-H On Mon, Apr 20, 2009 at 10:11 AM, srinivasa_v . srinivas...@sify.com wrote: Hi I

Re: reconnecting to the Oracle database.with Hibernate 3. I

2009-04-20 Thread Dave Newton
srinivasa_v . wrote: Hibernate list/forum is down and its a prodction issue for me Keep trying. This list is for Struts-related stuff. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

Re : springOpenEntityManagerInViewFilter (with Hibernate)

2009-03-17 Thread François Rouxel
, 18h27mn 56s Objet : Re: springOpenEntityManagerInViewFilter (with Hibernate) I didn't see a reply to your question. Did you ever find an answer? Interested to know what you found out. On 3/11/09, fr Rouxel rouxe...@yahoo.com wrote: Hi, do you know how this filter manage the rollback when a db

Re: springOpenEntityManagerInViewFilter (with Hibernate)

2009-03-15 Thread Burton Rhodes
-Hibernate%29-tp22455668p22455668.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

springOpenEntityManagerInViewFilter (with Hibernate)

2009-03-11 Thread fr Rouxel
the spring filter thanks fr/ -- View this message in context: http://www.nabble.com/springOpenEntityManagerInViewFilter-%28with-Hibernate%29-tp22455668p22455668.html Sent from the Struts - User mailing list archive at Nabble.com

Re: How do my Actions get to Hibernate so they can persist my objects?

2009-03-11 Thread Peterus Greatus
, but if Spring is your first venture, bare with it a bit, you'll be glad you did. Hi Wes, I took your advice and read Spring in Action to get a handle on what is going on. Its pretty clear to me now how it can be the missing-link between Struts2 an Hibernate. I have to say I'm glad I took

How do my Actions get to Hibernate so they can persist my objects?

2009-03-08 Thread Peterus Greatus
I am hoping someone can paint a picture for me as I do not really understand the relationship between Struts2 + Spring + Hibernate. The reason I know about Spring is every book or tutorial I can find with Struts2 and persistence uses Spring. Background is my last programming in Java was 9 years

Re: How do my Actions get to Hibernate so they can persist my objects?

2009-03-08 Thread Wes Wannemacher
On Sunday 08 March 2009 20:07:26 Peterus Greatus wrote: I am hoping someone can paint a picture for me as I do not really understand the relationship between Struts2 + Spring + Hibernate. The reason I know about Spring is every book or tutorial I can find with Struts2 and persistence uses

Re: How do my Actions get to Hibernate so they can persist my objects?

2009-03-08 Thread Dave Newton
Wes Wannemacher wrote: [...] but if Spring is your first venture, bare with it a bit, Please make sure your webcam is turned off. I'd add that even for smaller apps the AOP TX management is nearly always worth it, and handling JDBC/Hibernate/iBatis/whatever via Spring almost always end up

Re: [OT] Struts/Hibernate Open Session in View

2009-03-04 Thread Antonio Petrelli
performance issues but I am not sure at what point this becomes an issue. AFAIK the problem is the double submit: for instance, if an object is in HTTP session, it might be attached to two Hibernate sessions, causing an exception. If you are putting an Hibernate-loaded object, you should detach it first

[OT] Struts/Hibernate Open Session in View

2009-03-03 Thread Burton Rhodes
Has anyone had issues with the scalability of hibernate's recommended OSiV pattern? I am upgrading my struts app from 5 users to handle 1000+ users and I am curious if I should avoid this pattern for the upgrade. I have heard some have had performance issues but I am not sure at what point this

Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread Antonio Petrelli
2009/2/25 Paul Benedict pbened...@apache.org: Does anyone have a good solution for objects stored in an HTTP Session that should be reattached per request? For example, like the authenticated user object stored in the HTTP Session. I had a servlet filter written that attached the entity per

Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread Antonio Petrelli
2009/2/25 Paul Benedict pbened...@apache.org: I had a servlet filter written that attached the entity per request, but a double-click from the user showed the futility of that approach. You can't have one entity attached to two sessions :-) Uh sorry I did not read correctly this sentence. You

Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread suhas kokal
Hi all, If some body knows hot to use javascript alerts with struts 2.0 (when validation framework fires)please find me the way. Thanks a lot in advance. Suhas. --- On Wed, 25/2/09, Paul Benedict pbened...@apache.org wrote: From: Paul Benedict pbened...@apache.org Subject: Hibernate, HTTP

Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread Nils-Helge Garli Hegvik
)please find me the way. Thanks a lot in advance. Suhas. --- On Wed, 25/2/09, Paul Benedict pbened...@apache.org wrote: From: Paul Benedict pbened...@apache.org Subject: Hibernate, HTTP Session, and LazyInitializationException To: Struts Users Mailing List user@struts.apache.org Date

Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread John Dell'Aera
-- From: suhas kokal kokalsu...@yahoo.com Sent: Wednesday, February 25, 2009 11:12 PM To: Struts Users Mailing List user@struts.apache.org Subject: Re: Hibernate, HTTP Session, and LazyInitializationException Hi all, If some body knows hot to use javascript alerts

Hibernate, HTTP Session, and LazyInitializationException

2009-02-24 Thread Paul Benedict
the futility of that approach. You can't have one entity attached to two sessions :-) And, I don't think it's a GOOD idea for struts code to know anything about Hibernate. So I want to do be able to the reattachment transparently to UI/Web code. Paul

[S1]struts with hibernate

2009-02-10 Thread Lalchandra Rampersaud
hi, i am using struts 1.3 with hibernate which connects to a postgre database. from time to time i would get an error stating that the hibernate session cannot be opened. what could be the cause of the problem? here is the stack trace of the problem.. - SQL Error: 0, SQLState: 08001

Re: [S1]struts with hibernate

2009-02-10 Thread Jim Kiley
database's ability to accept connections. On Tue, Feb 10, 2009 at 3:07 PM, Lalchandra Rampersaud lrampers...@ceis.cujae.edu.cu wrote: hi, i am using struts 1.3 with hibernate which connects to a postgre database. from time to time i would get an error stating that the hibernate session cannot

Re: [S1]struts with hibernate

2009-02-10 Thread Lalchandra Rampersaud
: Re: [S1]struts with hibernate Down in there you have a java.net.SocketException: Connection reset ...and repeated The connection attempt failed. log messages right at the top there. Something's going on between you and your database server; looks like a network problem, or maybe somehow

RE: [S1]struts with hibernate

2009-02-10 Thread Andy
with hibernate Date: Tue, 10 Feb 2009 12:18:38 -0800 i have the database server on localhost:5432.. it works just fine sometimes and i have stopped every unnecessary background program. - Original Message - From: Jim Kiley To: Struts Users Mailing List ; Lalchandra Rampersaud Sent

Re: [S1]struts with hibernate

2009-02-10 Thread Lalchandra Rampersaud
ok, thanks andy. if anyone can think of a solution please write me.. - Original Message - From: Andy andrh...@hotmail.com To: user@struts.apache.org Sent: Tuesday, February 10, 2009 9:30 AM Subject: RE: [S1]struts with hibernate There are several things it could be. You could

Struts2+Spring+Hibernate+Oracle: ORA-12516 (too many connections)

2008-11-24 Thread scho
Hey guys, I'm using Struts2 with a little Spring and Hibernate to persist my object in my oracle database. (I've followed the explanation in the book Struts 2 in action by Donald Brown) Normally, accessing my database isn't a problem. Hibernate saves my objects and executes my queries against

Re: Struts2+Spring+Hibernate+Oracle: ORA-12516 (too many connections)

2008-11-24 Thread Dave Newton
--- On Mon, 11/24/08, scho [EMAIL PROTECTED] wrote: Normally, accessing my database isn't a problem. Hibernate saves my objects and executes my queries against the database as well. But here's my problem: I have to import a huge amount of data into my database via a CSV-File. There are about

<    1   2   3   4   5   6   7   8   9   >