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,
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
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
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
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
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
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
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
-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
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
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
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
: 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
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
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
, 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
, 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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
. 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
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
-
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
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
...@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
) - 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
--- 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
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
--- 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
.
--
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
--- 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
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
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
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
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
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
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
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
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
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
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);
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
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
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
/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
| 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
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
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
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
--- 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:
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
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
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
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
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
-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
-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
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
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
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
dont forget to share the code.
Thx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
, 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
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
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
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
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
: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
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
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
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
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
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
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
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
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
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
-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
-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
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 - 100 of 335 matches
Mail list logo