Re: validation xmls in a Struts2 application with no Internet connection

2013-12-16 Thread Yasser Zamani
I could not re-produce it with most recent version, 2.3.16. Both DTD versions work correctly on an off-line Tomcat :) I think there is a mis-version-configuration between struts and xwork with that non-maven old application. Sorry for the inconvenience! Thanks! On 12/15/2013 03:53 PM,

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-16 Thread Lukasz Lenart
No problem! Thanks for conformation! 2013/12/16 Yasser Zamani yasser.zam...@live.com: I could not re-produce it with most recent version, 2.3.16. Both DTD versions work correctly on an off-line Tomcat :) I think there is a mis-version-configuration between struts and xwork with that

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Lukasz Lenart
2013/12/14 Yasser Zamani yasser.zam...@live.com: Hi there, We have a Struts2 application with some validation XMLs with following DOCTYPE: !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.3//EN http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd; When we run

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Yasser Zamani
I reviewed Struts internally and discovered that in all places it uses 1.0.2 instead of 1.0.3. So, I guessed if I rewrite my DOCTYPE to: !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.2//EN http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd; it may work. I tried and

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Lukasz Lenart
Hmm... so it must be some small bug, a typo somewhere. Can you register an issue with the stacktrace and explanation that it works with 1.0.2? Thanks -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/12/15 Yasser Zamani yasser.zam...@live.com: I reviewed Struts internally and

validation xmls in a Struts2 application with no Internet connection

2013-12-14 Thread Yasser Zamani
Hi there, We have a Struts2 application with some validation XMLs with following DOCTYPE: !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.3//EN http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd; When we run this application on a server which has access to

Connection between Struts Application and DB.

2012-04-23 Thread Anjib Mulepati
Hi All, I have my DB and web application running in different machine. And whenever my DB machine restart my application fail since it can't connect to the DB. I have to restart my application every time my DB start. I am using Struts Plug-in to load connection information from web.xml file

Struts 2 PASSING CONNECTION TO IREPORT

2012-02-25 Thread Thameem
out how to use a database connection as a datasource and how to pass parameters to the report. I have the jrxml and jasper files. I need to pass the connection to ireport. Can anyone give me a solution.? Thanking you advance. -- View this message in context: http://struts.1045723.n5.nabble.com

RE: [struts-user] Struts 2 PASSING CONNECTION TO IREPORT

2012-02-25 Thread Jason Pyeron
-Original Message- From: Thameem [mailto:thameem@gmail.com] Sent: Saturday, February 25, 2012 0:21 To: user@struts.apache.org Subject: [struts-user] Struts 2 PASSING CONNECTION TO IREPORT I have created some reports with iReport BY connecting to sql server database, and I

Re: Struts 2 PASSING CONNECTION TO IREPORT

2012-02-25 Thread Dave Newton
The JR plugin expects the datasource to be the S2 action, not a connection. If you have an existing JR report you may want to consider just keeping it as-is and streaming back the result. Dave On Sat, Feb 25, 2012 at 12:20 AM, Thameem thameem@gmail.com wrote: I have created some reports

Re: Struts 2 PASSING CONNECTION TO IREPORT

2012-02-25 Thread Frans Thamura
application. While the documentation for the jasperReport plugin explains how to use a datasource and a compiled template to generate a report, I wasn't able to find out how to use a database connection as a datasource and how to pass parameters to the report. I have the jrxml and jasper files. I

RE: Connection Pooling with Struts

2010-12-08 Thread adam pinder
Anjib, i'd certainly take a look at hibernate, i've been using it for a while now and find it easy enough and functionally rich enough for most things. adam Date: Tue, 7 Dec 2010 14:36:01 -0500 From: anji...@hotmail.com To: user@struts.apache.org Subject: Connection Pooling

Re: Connection Pooling with Struts

2010-12-08 Thread Anjib Mulepati
: anji...@hotmail.com To: user@struts.apache.org Subject: Connection Pooling with Struts I have to do DB connection (Oracle 10g) in my application developed in Struts 1.3.8. Currently I am implementing JDBC. As far I understand this is not a good technique for real project. So I am hoping someone

Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
I have to do DB connection (Oracle 10g) in my application developed in Struts 1.3.8. Currently I am implementing JDBC. As far I understand this is not a good technique for real project. So I am hoping someone could suggest me how to do DB handling efficiently? Thanks Anjib

Re: Connection Pooling with Struts

2010-12-07 Thread Johannes Geppert
to do DB connection (Oracle 10g) in my application developed in Struts 1.3.8. Currently I am implementing JDBC. As far I understand this is not a good technique for real project. So I am hoping someone could suggest me how to do DB handling efficiently? Thanks Anjib

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
, spring jdbc tempalate, ... . google for it and look which framework is the best for your project. Johannes anjibman wrote: I have to do DB connection (Oracle 10g) in my application developed in Struts 1.3.8. Currently I am implementing JDBC. As far I understand this is not a good technique

Re: Connection Pooling with Struts

2010-12-07 Thread Arthur Neves
, myBatis, spring jdbc tempalate, ... . google for it and look which framework is the best for your project. Johannes anjibman wrote: I have to do DB connection (Oracle 10g) in my application developed in Struts 1.3.8. Currently I am implementing JDBC. As far I understand this is not a good

Re: Connection Pooling with Struts

2010-12-07 Thread Dave Newton
Is the question about connection pooling, as the subject line indicates, or is the question about generic DB handling and JDBC v. ORMs? Dave On Tue, Dec 7, 2010 at 4:20 PM, Arthur Neves arthu...@gmail.com wrote: Nop, You dont need using a framework... if you pick one just will make your life

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
Ok now I get confuse. I was thinking simple JDBC can't (or complex to ) handle connection pooling. So framework make work easy. If framework is not used what are other alternatives to handle connection pooling beside JDBC itself? Anjib On 12/7/2010 4:20 PM, Arthur Neves wrote: Nop, You

Re: Connection Pooling with Struts

2010-12-07 Thread Dave Newton
A connection pooling library? On Tue, Dec 7, 2010 at 4:25 PM, Anjib Mulepati anji...@hotmail.com wrote: Ok now I get confuse. I was thinking simple JDBC can't (or complex to ) handle connection pooling. So framework make work easy. If framework is not used what are other alternatives

Re: Connection Pooling with Struts

2010-12-07 Thread Ty Connell
E.g -. http://commons.apache.org/dbcp/ On Tue, Dec 7, 2010 at 4:27 PM, Dave Newton davelnew...@gmail.com wrote: A connection pooling library? On Tue, Dec 7, 2010 at 4:25 PM, Anjib Mulepati anji...@hotmail.com wrote: Ok now I get confuse. I was thinking simple JDBC can't (or complex

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
So I can use this DBCP Componenet instead of framework? Anjib E.g -. http://commons.apache.org/dbcp/ On Tue, Dec 7, 2010 at 4:27 PM, Dave Newtondavelnew...@gmail.com wrote: A connection pooling library? On Tue, Dec 7, 2010 at 4:25 PM, Anjib Mulepatianji...@hotmail.com wrote: Ok now I get

Re: Connection Pooling with Struts

2010-12-07 Thread stanlick
Dude, I can't sit quietly any longer! How you connect to a database has NOTHING WHATSOEVER to do with the Struts/2 Framework. I would advise you to keep the two separated in your mind. Much like you wouldn't look to a Database connection to serve a web page, neither should you look to Struts/2

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib
would advise you to keep the two separated in your mind. Much like you wouldn't look to a Database connection to serve a web page, neither should you look to Struts/2 as a Database connection. On Tue, Dec 7, 2010 at 3:36 PM, Anjib Mulepatianji...@hotmail.com wrote: So I can use this DBCP

Re: Connection Pooling with Struts

2010-12-07 Thread Dave Newton
On Tue, Dec 7, 2010 at 6:15 PM, Anjib wrote: I am asking about ORM tool not Struts framework itself. I think the point was more along the lines of why are you asking here, since you're not asking about the Struts framework. Dave

Re: Connection Pooling with Struts

2010-12-07 Thread Ty Connell
On 12/7/2010 5:19 PM, stanl...@gmail.com wrote: Dude, I can't sit quietly any longer! How you connect to a database has NOTHING WHATSOEVER to do with the Struts/2 Framework. I would advise you to keep the two separated in your mind. Much like you wouldn't look to a Database connection

RE: Connection Pooling with Struts

2010-12-07 Thread Martin Gainty
: Tue, 7 Dec 2010 16:19:48 -0600 Subject: Re: Connection Pooling with Struts From: stanl...@gmail.com To: user@struts.apache.org Dude, I can't sit quietly any longer! How you connect to a database has NOTHING WHATSOEVER to do with the Struts/2 Framework. I would advise you to keep the two

Re: Error: Cannot get a connection, pool error Timeout waiting for idle object

2010-03-15 Thread abhishek jain
thanks abhishek On Sat, Mar 13, 2010 at 4:48 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends. I am using strurts 1 with mysql and is using the datasource in struts-config.xml. I am gettting the following errors in my log file, Cannot get a connection, pool error Timeout waiting

Re: Error: Cannot get a connection, pool error Timeout waiting for idle object

2010-03-15 Thread abhishek jain
Hi friends, Additional to the config file i also realized that the connection with my server never ends when viewed on browser, i mean the status bar always says that Waiting for URL., Pl. help on the Error: Cannot get a connection, pool error Timeout waiting for idle object, thanks

Error: Cannot get a connection, pool error Timeout waiting for idle object

2010-03-13 Thread abhishek jain
Hi friends. I am using strurts 1 with mysql and is using the datasource in struts-config.xml. I am gettting the following errors in my log file, Cannot get a connection, pool error Timeout waiting for idle object What could be the reason to this error, it seems like this is because of db which

Creating connection object in Handlers

2009-10-06 Thread shikai
Hi , Is it a best practice to create a connection object in handlers and sending that object to DB functions that are called from handlers? Previously I was creating connection object in every DB function and closing it while coming back. I got some connection issues and now I am creating

how to initialize database connection pool in struts 2?

2009-04-07 Thread john lee
  in structs 1, in APPLICATION/WEB-INF/web.xml, i have the following line     servlet     servlet-nameDBInit/servlet-name     servlet-classneuco.db.DBInitServlet/servlet-class     load-on-startup1/load-on-startup     /servlet   to initialize/launch default databse connection pool, how

Re: how to initialize database connection pool in struts 2?

2009-04-07 Thread Wes Wannemacher
to initialize/launch default databse connection pool, how can i do this in struts 2 ? tks in advance john Same way would work... -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com

RE: how to initialize database connection pool in struts 2?

2009-04-07 Thread Sidharth Bhatia
You can also use struts 2 spring capability and have the connection given to you through dependency injection. Sid Bhatia Try not. Do... or do not. There is no try -- Yoda _ _ mailto:sidharth.bhat...@gmail.com -Original Message- From: Wes Wannemacher [mailto:w

RE: how to initialize database connection pool in struts 2?

2009-04-07 Thread john lee
Could you tel me in detail/example?   tks in advance   john --- On Tue, 4/7/09, Sidharth Bhatia sidharth.bhat...@gmail.com wrote: From: Sidharth Bhatia sidharth.bhat...@gmail.com Subject: RE: how to initialize database connection pool in struts 2? To: 'Struts Users Mailing List' user

RE: JasperReports Plugin:How to specify JDBC connection?

2009-01-27 Thread Mel Rosenberg
I have been working on using Jasper with Struts2 2.0.11. Looking at the documentation it seems that the dataSource param is looking for a list. The question is what is in the list. Is it a list of connection parameters to the database, ie.. url, login name, password... or is it a list

RE: JasperReports Plugin:How to specify JDBC connection?

2009-01-27 Thread dusty
for a list. The question is what is in the list. Is it a list of connection parameters to the database, ie.. url, login name, password... or is it a list of results? Can anyone point me in the right direction? I have searched the web and cant find an article that shows how to connect

Re: JasperReports Plugin:How to specify JDBC connection?

2009-01-27 Thread Dave Newton
Mel Rosenberg wrote: I have been working on using Jasper with Struts2 2.0.11. Looking at the documentation it seems that the dataSource param is looking for a list. The question is what is in the list. Is it a list of connection parameters to the database, ie.. url, login name, password

JasperReports Plugin:How to specify JDBC connection?

2009-01-13 Thread Rajeshwari Godbole
. After I got the JasperReportResult.java, I got errors while compiling that required the classes com.opensymphony.xwork2.util.logging.Logger and LoggerFactory so I got xwork-2.1.0.jar that has the logging classes (was using xwork-2.0.5 earlier). Now I'm getting an error on line 288 that says Connection

RE: JasperReports Plugin:How to specify JDBC connection?

2009-01-13 Thread ravindra
populate the list object in your prepare method. (param name=dataSource mypojoList/param -Original Message- From: Rajeshwari Godbole [mailto:rgodb...@gmail.com] Sent: Tuesday, January 13, 2009 2:12 PM To: user@struts.apache.org Subject: JasperReports Plugin:How to specify JDBC connection

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-12 Thread Milan Milanovic
- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/-S2--Struts-%2B-JasperReports-%28iReport%29---setting-connection-tp20937308p20981232.html Sent from

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-12 Thread Dave Newton
Nope. --- On Fri, 12/12/08, Milan Milanovic milanmilanov...@yahoo.com wrote: From: Milan Milanovic milanmilanov...@yahoo.com Subject: Re: [S2] Struts + JasperReports (iReport) - setting connection To: user@struts.apache.org Date: Friday, December 12, 2008, 1:41 PM Dear Dave, have you

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-12 Thread Milan Milanovic
...@yahoo.com Subject: Re: [S2] Struts + JasperReports (iReport) - setting connection To: user@struts.apache.org Date: Friday, December 12, 2008, 1:41 PM Dear Dave, have you maybe managed to find time to see how we can define datasource in JasperReports for this kind of integration between Struts

[OT] Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-12 Thread Dave Newton
) - setting connection To: user@struts.apache.org Date: Friday, December 12, 2008, 2:10 PM Dear Dave, O.K. I'm waiting for your (or anyone else's) answer. I asked the same thing on JR forum, so maybe I will get there answer, too. -- M. newton.dave wrote: Nope. --- On Fri

Re: [OT] Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-12 Thread Milan Milanovic
--- On Fri, 12/12/08, Milan Milanovic milanmilanov...@yahoo.com wrote: From: Milan Milanovic milanmilanov...@yahoo.com Subject: Re: [S2] Struts + JasperReports (iReport) - setting connection To: user@struts.apache.org Date: Friday, December 12, 2008, 2:10 PM Dear Dave, O.K. I'm waiting

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-11 Thread Milan Milanovic
No one knows how to set-up Jasper report connection for this kind integration with Struts 2 ? -- M. Milan Milanovic wrote: Hi, I'm following this tutorial for integrating JasperReports in Struts app: http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html http

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-11 Thread Dave Newton
--- On Thu, 12/11/08, Milan Milanovic wrote: No one knows how to set-up Jasper report connection for this kind integration with Struts 2 ? You've gotta have a little more patience. I'll see how my report is configured, but I don't recall anything about a factory in the report itself; I thought

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-11 Thread Milan Milanovic
. -- Thx, M. newton.dave wrote: --- On Thu, 12/11/08, Milan Milanovic wrote: No one knows how to set-up Jasper report connection for this kind integration with Struts 2 ? You've gotta have a little more patience. I'll see how my report is configured, but I don't recall anything about

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-11 Thread Dave Newton
--- On Thu, 12/11/08, Milan Milanovic wrote: O.K. Thank you. When Jasper report is designed I need to set datasource for it and for every type of data source I need to fill those elements (data source class, method which return data source elements, etc.). There is no such things explained

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-11 Thread Milan Milanovic
in context: http://www.nabble.com/-S2--Struts-%2B-JasperReports-%28iReport%29---setting-connection-tp20937308p20956829.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

[S2] Struts + JasperReports (iReport) - setting connection

2008-12-10 Thread Milan Milanovic
Hi, I'm following this tutorial for integrating JasperReports in Struts app: http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html . But I'm wondering how I should set up my connection on my report (e.g., in iReport

Re: connection to db with pooling in Struts

2008-11-30 Thread Adam Ruggles
You can use this little snippet to get a connection: public Connection getConnection(String url, String driverClassName, String username, String password) throws SQLException { try { Class.forName(driverClassName); } catch

Re: connection to db with pooling in Struts

2008-11-30 Thread Nils-Helge Garli Hegvik
That won't use the pool. Take a look at some of the code snippets at [1] Nils-H [1] - http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html On Mon, Dec 1, 2008 at 8:09 AM, Adam Ruggles [EMAIL PROTECTED] wrote: You can use this little snippet to get a connection

connection to db with pooling in Struts

2008-11-28 Thread gbattine
Hello guys, I'm newbie about Struts and I'm trying to understand a complex task (for me), that is obtaining a connection from connection pool (I use dbcp for this) and a datasource (that one of tomcat) and use this connection in dao layer. I'm trying to get this working, but it seems very

Struts 2 Database Connection Pooling

2008-08-20 Thread Roger
I need to implement a database connection pool and was considering using the JNDI facilities provided by the servlet container (in my case, Apache Tomcat). Is there a Struts pattern for accessing JNDI resources in (a) a container neutral manner and (b) without tying my action classes

Re: Struts 2 Database Connection Pooling

2008-08-20 Thread Gabriel Belingueres
AFAIK, there is no pattern. You can configure a datasource through Spring, or you could get it from JNDI once when your app starts (by writing a ServletContextListener) 2008/8/20, Roger [EMAIL PROTECTED]: I need to implement a database connection pool and was considering using the JNDI

Re: ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Lukasz Lenart
My understanding is that the webwork API for ApplicationAware means that the interceptor will have it's setApplication(Map applicationData); triggered when the interceptor is run, thereby giving me access to the applicationcontext. ApplicationAware should be used with Actions not with

ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Dave Belfer-Shevett
name=mystack interceptor-ref name=dbsetup / interceptor-ref name=defaultStack / /interceptor-stack /interceptors (The goal here is to store a c3p0 connection pool object in the application context, so that I can get a connection from it on every hit - I

Re: ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Jeromy Evans
Dave Belfer-Shevett wrote: Hi folks - i'm trying to write an interceptor in struts2 that has access to the ApplicationMap in the application context. My understanding is that the webwork API for ApplicationAware means that the interceptor will have it's setApplication(Map applicationData);

Re: ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Dave Belfer-Shevett
Lukasz Lenart wrote: My understanding is that the webwork API for ApplicationAware means that the interceptor will have it's setApplication(Map applicationData); triggered when the interceptor is run, thereby giving me access to the applicationcontext. ApplicationAware should be used with

Re: [Struts2] Exception starting filter (Connection Timed Out)

2008-05-11 Thread Pierre Thibaudeau
Thanks for the suggestion, but I use Spring very heavily! ;) (Everything's bean-ified, and dependency injected...) 2008/5/5 KonTiki [EMAIL PROTECTED]: The Spring context listener is needed only if you do use Spring. If you do not, then this might be causing the error as Tomcat was unable to

Re: [Struts2] Exception starting filter (Connection Timed Out)

2008-05-05 Thread KonTiki
The Spring context listener is needed only if you do use Spring. If you do not, then this might be causing the error as Tomcat was unable to find the Spring classes. Try removing this: listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class

Re: [Struts2] Exception starting filter (Connection Timed Out)

2008-04-30 Thread Mead Lai
/04/29 00:59:30 | at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238) 2008/04/29 00:59:30 | at java.lang.Thread.run(Thread.java:619) 2008/04/29 00:59:30 | Caused by: Connection timed out - [unknown location] 2008/04/29 00:59:30 | at com.opensymphony.xwork2

[Struts2] Exception starting filter (Connection Timed Out)

2008-04-28 Thread Pierre Thibaudeau
| at java.lang.Thread.run(Thread.java:619) 2008/04/29 00:59:30 | Caused by: Connection timed out - [unknown location] 2008/04/29 00:59:30 | at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123) 2008/04/29 00:59:30 | at com.opensymphony.xwork2

Noob question(s). Interceptor breaking forms, and Connection handling?

2008-04-07 Thread Dave Belfer-Shevett
struts.xml file, the Logon form validator fails. Line 29 shows 'null' in Logon.java. If i leave it commented out, it works fine. Question 2... In Logon.java, I'm using the execute() method to set up my JDBC connection (as pulled from my JBoss container datasource), setting up the Connection

Re: Noob question(s). Interceptor breaking forms, and Connection handling?

2008-04-07 Thread Dave Newton
for that action. You either need to create a *complete* stack with your interceptor included or specify *all* the interceptors your action requires. Question 2... I tried doing this, and saw the connection start up, but the Action class kept having the connection as 'null'. I think I'm either

Re: Struts2 connection pooling using MySQL

2008-02-21 Thread RajiR
sources that worked across servlet containers. That changed a long time ago and Struts first deprecated, and then removed, its support for the data-source configuration element. The preferred way to set up a data source (using a connection pool or not) is through JNDI using your servlet

Re: Struts2 connection pooling using MySQL

2008-02-21 Thread Dave Newton
--- RajiR [EMAIL PROTECTED] wrote: As struts2 comes along with spring integration with struts2-spring-plugin-2.0.11.jar,after starting the tomcat server its unable to load that jar and getting an exception as: Looks more like you don't have Spring itself on your classpath: Caused by:

Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Hi All, Since struts1 has connection pooling mechanism using data-source/ tag,what is the procedure of connection pooling mechanism in struts2? Can we do tht using bean class=/ tag?I have seen from some of the search results for oracle db using

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Jeromy Evans
RajiR wrote: Can't we implement connection pooling in struts2 alone?If so ,may I know the reason please...!!! Thanks. Struts 2 itself doesn't provide a connection pooling implementation and probably shouldn't. MySql provide a pooled DataSource that you can use immediately. Set it up

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
hi there i got a too many connection when try use spring-hibernate with struts2 and this is not struts2 problem i think the connection pool is not struts2 responsibility as the controller and if we use spring, this will become injection work with the database tech like ORM ot JDBC F

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Can't we implement connection pooling in struts2 alone?If so ,may I know the reason please...!!! Thanks. nuwan chandrasoma-2 wrote: Hi, Why do not you give a try with Spring. as struts2 has built in support for spring, you can use springs connection pooling very easily. Thanks

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Nuwan Chandrasoma
Hi, Why do not you give a try with Spring. as struts2 has built in support for spring, you can use springs connection pooling very easily. Thanks, Nuwan. RajiR wrote: Hi All, Since struts1 has connection pooling mechanism using data-source/ tag,what is the procedure of connection

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Jeromy Evans
-resources/articles/connection_pooling_with_connectorj.html, we can preform connection pooling only after configuring it in our configuration files.If it is in the case of struts1, struts-config.xml file has a tag called data-source/ and there we can configure.But,what about struts2 how can we configure

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Laurie Harper
-source configuration element. The preferred way to set up a data source (using a connection pool or not) is through JNDI using your servlet container configuration. The article Jeromy linked to mentions JNDI and links to more detailed documentation for various servlet containers and application

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
eg. http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html is this connectio data source is the best implementation we are using hibernate c3p0, any suggestion F - To unsubscribe, e-mail: [EMAIL

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Hi, In this link : http://dev.mysql.com/tech-resources/articles/connection_pooling_with_connectorj.html, we can preform connection pooling only after configuring it in our configuration files.If it is in the case of struts1, struts-config.xml file has a tag called data-source/ and there we can

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
data sources that worked across servlet containers. That changed a long time ago and Struts first deprecated, and then removed, its support for the data-source configuration element. The preferred way to set up a data source (using a connection pool or not) is through JNDI using your

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
dont forget to share the code. Thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

OOT: Too Many Connection

2008-02-08 Thread Frans Thamura
hi there, i am developing system using struts2, hibernate, and spring and show off the error too many connection , and the error show off after there is 300 user log to the systme can help anyone F - To unsubscribe, e-mail

Re: OOT: Too Many Connection

2008-02-08 Thread Jeromy Evans
Hi Frans, You need to isolate what there's too many connections to. Is it the database, the http server or some other resource? My wild stab in the dark is that you're using the Session In View pattern with hibernate and a connection pool setup through spring. The pool is probably

Re: Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-18 Thread kenk
Filipe, Funny, I was looking for the same information. Here's the Spring configuration I'm moving forward with to use the Oracle connection pooling: !-- Database connection using the Oracle connection pool -- bean id=dataSource class=oracle.jdbc.pool.OracleConnectionCacheImpl property

Re: Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-18 Thread Filipe David Manana
, kenk [EMAIL PROTECTED] wrote: Filipe, Funny, I was looking for the same information. Here's the Spring configuration I'm moving forward with to use the Oracle connection pooling: !-- Database connection using the Oracle connection pool -- bean id=dataSource class

Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-11 Thread Filipe David Manana
Hi all, I want to create a web app with Struts 2 that is Oracle database driven. Integrating Struts 2 + Spring 2 + JPA (as described in http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html), how do I configure Oracle database Connection Caching (pooling)? Oracle's JDBC driver

Re: Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-11 Thread Musachy Barroso
driven. Integrating Struts 2 + Spring 2 + JPA (as described in http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html), how do I configure Oracle database Connection Caching (pooling)? Oracle's JDBC driver provided in the Oracle Instant Client package has a Connection Cache

Re: Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-11 Thread Alberto A. Flores
Database Connection Pooling is typically handled (already) by the container. You can get your datasource from this connection pooling using JNDI. Spring has a way of doing this nicely using the JndiObjectFactoryBean. Each container has a different way to configure this JNDI configuration, so

Re: HELP! Could not open connection with host: jakarta.apache.org and port: 80??

2007-08-31 Thread Laurie Harper
the below error messages. Why is it trying to pull the DTD remotely? How can I fix? Thanks for any and all help Ed struts-config_1_2.dtd Aug 30, 2007 2:47:03 PM EDT Warning Net BEA-000905 Could not open connection with host: jakarta.apache.org and port: 80. Aug 30, 2007 2:47:03 PM EDT Error HTTP BEA

HELP! Could not open connection with host: jakarta.apache.org and port: 80??

2007-08-30 Thread Ed snooper
:03 PM EDT Warning Net BEA-000905 Could not open connection with host: jakarta.apache.org and port: 80. Aug 30, 2007 2:47:03 PM EDT Error HTTP BEA-101216 Servlet: action failed to preload on startup in Web application: NCNR-IMS. javax.servlet.UnavailableException: Cannot load a validator resource

Re: Connection Pooling How To ?

2007-05-23 Thread Christopher Schultz
this was the load client specified ... i had set the max limit of my pool to 100 ... that may be the problem . i will go and increase it now... If you need to serve 200 requests per second, ten you need to evaluate what percentage of requests result in DB connection use, and then estimate the number

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name

Re: [OT] Connection Pooling

2007-05-22 Thread Nuwan Chandrasoma
List user@struts.apache.org Sent: Tuesday, May 22, 2007 6:39 AM Subject: Re: [OT] Connection Pooling Thanks for helping. Sure, here are all my settings. I use MySQL 5.0.37, Tomcat 5.5.17 and Windows XP SP2 and MySQL Connector/J 5.0.5. The name of the database that I'd like to connect to is called

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
Chandrasoma [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, May 22, 2007 2:33:34 PM Subject: Re: [OT] Connection Pooling hi, i just had a look, i think your url is wrong. where is the DB name? eg:- you have it like jdbc:mysql://localhost:3306 but should

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
I forgot that I also have a resource-ref entry in my web.xml file... just in case it counts... resource-ref descriptionDB Connection/description res-ref-namejdbc/akr_db/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref

Re: [OT] Connection Pooling

2007-05-22 Thread Nuwan Chandrasoma
Users Mailing List user@struts.apache.org Sent: Tuesday, May 22, 2007 7:34 AM Subject: Re: [OT] Connection Pooling I forgot that I also have a resource-ref entry in my web.xml file... just in case it counts... resource-ref descriptionDB Connection/description res-ref-namejdbc

Connection Pooling in Struts

2007-05-22 Thread Saravanan Vijayappan
Hi To set up connection pooling in struts which is the recommended way whether and please explain the benifts 1) Configure through struts-config 2) Configure through Server (like in tomcat data-source configuration) Thanks Regards, Saravanan Vijayappan, +91 9448833571

RE: Connection Pooling in Struts

2007-05-22 Thread Raghupathy, Gurumoorthy
Hi, Struts way (not good) Connection pooling is not available in latest version of struts 1 and struts 2. So if you upgrade your application to latest struts then you will be in trouble. Server (JNDI) very good All application servers provide

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
Many thanks for your help, I managed to set connection pooling up (however, I don't know whether it uses conn. pooling or not...) To help others, here are all the configurations that need to be done: (This works with Tomcat 5.5, MySQL 5.0, Win XP SP2) 1) Place your database driver in your

Re: [OT] Connection Pooling

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: Thanks for helping. Sure, here are all my settings. I think you have more configuration than you need. Here is exactly what I have for a similar setup (MySQL 5.x, Connector/J 5.x, Tomcat 5.5.x): Context

Re: [OT] Connection Pooling

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: 2) open your server.xml and put the following lines between GlobalNamingResources/GlobalNamingResources tags (this is what I missed...) (Modify it properly...) Although this is possible, most will recommend

Connection Pooling How To ?

2007-05-22 Thread jasdeep
Hi All , i am developing a struts based web-application with JBoss 4.0.5 as Application Server and Oracle 10g Express edition . I am configuring my application for connection pooling . I have tried following methods : 1. Oracle Connection Pooling following thius link http

  1   2   3   4   >