urgent - data-source and container managed datasource

2004-03-16 Thread Janice
A big thank you to Richard and Shyam! I have things working again and am back on track to get this app deployed!! Janice - Original Message - From: Janice To: [EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 11:56 AM Subject: urgent - data-source and container managed datasource Hi

Re: urgent - data-source and container managed datasource

2004-03-16 Thread Shyam A
ot;DBConnection" class, which manages database connections. I use the code below: InitialContext ic = new InitialContext(); DataSource ds = (DataSource)ic.lookup("jdbc/TestDS"); .. DBConnection.dataSource=ds; //initializeDataSo

Re: urgent - data-source and container managed datasource

2004-03-16 Thread Richard Yee
Janice, Check out these links: http://otn.oracle.com/sample_code/tech/java/codesnippet/j2ee/jdbc/JDBC_in_J2EE.html http://otn.oracle.com/products/jdev/tips/duff/mysql_and_oc4j3.html It works fine for me. -Richard --- Janice <[EMAIL PROTECTED]> wrote: > Hi There, > > I'm getting ready to ship o

urgent - data-source and container managed datasource

2004-03-16 Thread Janice
Hi There, I'm getting ready to ship off my application and I'm trying to use the application server (standalone oc4j) to hold the data source information instead of having it in struts-config.xml. Is this possible? When jDeveloper deploys to the server it builds me a data-sources.xml file which

Re: DataSource help

2004-02-13 Thread Niall Pemberton
What was the error message? Niall -Original Message- From: Raman [mailto:[EMAIL PROTECTED] Sent: 13 February 2004 12:06 To: Struts Users Mailing List Subject: DataSource help Hi All, I have a problem regarding the DB connection. In my application i want to log the session time for

RE: DataSource help

2004-02-13 Thread McCormack, Chris
dev etc.) -Original Message- From: Raman [mailto:[EMAIL PROTECTED] Sent: 13 February 2004 12:06 To: Struts Users Mailing List Subject: DataSource help Hi All, I have a problem regarding the DB connection. In my application i want to log the session time for each session. For that I am

DataSource help

2004-02-13 Thread Raman
database. what I am thinking is to call Insert query in public void sessionCreated(HttpSessionEvent event) { } and update query public void sessionDestroyed(HttpSessionEvent event) {} function But my problem is how to get and pass the DataSource that refers to my DB defined in tag of struts-conf

Problem in using DataSource with Informix9.x Database..?

2004-02-12 Thread Vishal Arora
Hi, I m using Tomcat5.0 and Struts1.1 and Informix 9.x as database When i m trying to use DataSource of org.apache.commons.dbcp.BasicDataSource in my struts application it gives error .I have mentioned in struts-config file also abt sdatasource like username,password,drivername and

Re: Accessing Struts Datasource from another action servlet

2004-02-02 Thread Mark Lowe
have you not seen the threads regarding the struts datasource? the party line seems to frown upon it as it encourages breaking with MVC, unless you pass the connection up to the model tier. that said, in your shoes I'd configure a datasource in the second webapp (albeit with the same c

Accessing Struts Datasource from another action servlet

2004-02-02 Thread James MacKenzie
Hi Guys, I have a web application written in Stuts and am writing a scheduler which is a seperate action servlet which is configured in the web.xml file to start at startup. All of my other action classes are session based so they can get the default datasource (From the struts-config.xml

RE: REPOST: newbie datasource config problems

2004-01-28 Thread Matthias Wessendorf
jim, in 1.2 there is no GenericDataSource. (because legacy.jar will be removed) you can still use a DataSource with BasicDataSource. after 2.0 it will also be moved away (see the faq) with the datasource, you write JDBC in an action-class. do you really want it ? :-) in my case i use

Re: REPOST: newbie datasource config problems

2004-01-28 Thread Jim Anderson
derstanding you correctly? On Jan 28, 2004, at 12:26 PM, Matthias Wessendorf wrote: hi jim! did you add struts-legacy.jar in WEB-INF/lib ? but in 1.2 its not more supported (GenericDataSource) look here: http://jakarta.apache.org/struts/faqs/database.html (The Struts DataSource Manager) then you ne

RE: newbie datasource config problems

2004-01-28 Thread Matthias Wessendorf
/dbcp/ it for 1.2 and later look here for more: http://jakarta.apache.org/struts/faqs/database.html (The Struts DataSource Manager) greetings matthias -Original Message- From: Jim Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 5:07 PM To: Struts Users Mailing List

newbie datasource config problems

2004-01-28 Thread Jim Anderson
I'm trying to configure my Struts 1.1 app for MySQL access and getting nothing but grief. Currently, I'm showing the following error in the log file: java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource Could someone please send me samples of what web.xml and struts-con

RE: REPOST: newbie datasource config problems

2004-01-28 Thread Matthias Wessendorf
hi jim! did you add struts-legacy.jar in WEB-INF/lib ? but in 1.2 its not more supported (GenericDataSource) look here: http://jakarta.apache.org/struts/faqs/database.html (The Struts DataSource Manager) then you need pool.jar and dbcp.jar from the corresponding commons-projects - http

REPOST: newbie datasource config problems

2004-01-28 Thread Jim Anderson
(The original msg didn't seem to make it to the list.) I'm trying to configure my Struts 1.1 app (Tomcat 4) for MySQL access and getting nothing but grief. Currently, I'm showing the following error in the log file: java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource C

AW: LDAP + DataSource

2004-01-23 Thread Oliver Thiel
g, 23. Januar 2004 16:49 An: Struts Users Mailing List Betreff: Re: LDAP + DataSource Hallo, generally, it is right. but, there exist jdbc driver for ldap (for example, http://www.octetstring.com/products/jdbcldapdriver/). I do not use it, becouse I am using the classical way (java ldap packages from n

Re: LDAP + DataSource

2004-01-23 Thread konf
), you can create datasource. But as I wrote, I am using the classic way to access LDAP. Best regards Jiri > LDAP, as the name implies, is a Directory Access Protocol. As such, you > cannot use JDBC to establish connections. However, java does provide an > analagous interface for accessi

Re: LDAP + DataSource

2004-01-23 Thread ian_d_stewart
.de> cc: Subject: LDAP + DataSource 01/23/2004

LDAP + DataSource

2004-01-23 Thread Oliver Thiel
Hi all, Is it possible to set up a DataSource for LDAP? If yes how can I do this? And how do I retrieve a connection? Thanks Oliver

Problem instantiating a datasource

2004-01-19 Thread Engbers, ir. J.B.O.M.
(RequestUtils.java:23 1) .. and when I try to run the application, the browser displays this message: The requested service (Servlet action is currently unavailable) is not currently available. When I remove the datasource, there are no problems. How can I check why instantiating of the

Help : null DataSource

2004-01-18 Thread lixin chu
Hi, I am unable to get a DataSource in my Action. Here is my code snippet: struts-config.xml -- in my lib\ directory, I have jdbc-2_0-stdext.jar mysql-connector-java-3.0.9

RE: Datasource problem

2004-01-07 Thread cnd
Hi Matthias, Thanks for all the info. As you said that only one can be defined without a key hence if I use getDataSource(req); then it should use the default datasource without me having to specify the Globals.DATA_SOURCE_KEY as the second parameter. So looking at my struts-config.xml there is

RE: Datasource problem

2004-01-07 Thread Matthias Wessendorf
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 10:44 AM To: Struts Users Mailing List Subject: RE: Datasource problem Thanks Mathias, just after I sent the email I got it working using the key as you suggested. I tried using the key earlier today and it didn't

RE: Datasource problem

2004-01-07 Thread cnd
I only have the one datasource and all the docs I've seen don't require the key. My understanding is that the key is only required when there is more than one datasource. No? Thanks for your help. Chris On Wed, 7 Jan 2004, Matthias Wessendorf wrote: > hi chris, > > hav

RE: Datasource problem

2004-01-07 Thread Matthias Wessendorf
hi chris, have you tried: getDataSource(req,"dataSource"); greetings -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 10:25 AM To: [EMAIL PROTECTED] Subject: Datasource problem Hi, I must be missing something here b

Datasource problem

2004-01-07 Thread cnd
ve added a datasource to my struts-config and when I run the application I can see it initializes ok: Jan 7, 2004 10:09:48 PM org.apache.struts.legacy.GenericDataSource createConnection INFO:createConnection() Jan 7, 2004 10:09:49 PM org.apache.struts.legacy.GenericDataSource createConne

Re: Oracle DataSource configuration

2004-01-01 Thread Dirk Verbeeck
following exception when issuing a getConnection to an Oracle DataSource. SQLException: Cannot create JDBC driver of class '' for connect URL 'null' It has the following definition in a Tomcat 4.1.29 server.xml file. factory org.apache.commons.dbcp.BasicDataSour

Re: Oracle DataSource configuration

2003-12-29 Thread Kris Schneider
mcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Quoting Ed Dowgiallo <[EMAIL PROTECTED]>: > OK. > > I have moved the Oracle JDBC library from shared/lib to common/lib. Same > error message. SQLException: Cannot create JDBC driver of class '' for > connect U

Re: Oracle DataSource configuration

2003-12-29 Thread Ed Dowgiallo
and classes12dms.jar. Same error message. Logged a few sanity checks. All look OK. Value of servlet init parameter data-source is Library InitialContext is not null Context for java:/comp/env is not null dataSource is not null: [EMAIL PROTECTED] Any other ideas? Has anyone suc

RE: Oracle DataSource configuration

2003-12-29 Thread Steve Muench
Ed, The setup instructions for the "BC4J/Struts Toy Store Demo" at: http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore/index.html go over the specifics of setting up Oracle DataSource for Tomcat. The direct URL to the 80-page whitepaper that explains the demo's

RE: Oracle DataSource configuration

2003-12-29 Thread Kris Schneider
>From: "Ed Dowgiallo" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >Subject: Oracle DataSource configuration > >Date: M

RE: Oracle DataSource configuration

2003-12-29 Thread Ben Anderson
uot; <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Oracle DataSource configuration Date: Mon, 29 Dec 2003 11:12:11 -0500 I'm running into the following exception when issuing a getConnection to an Oracle DataSource. SQLException: Canno

Oracle DataSource configuration

2003-12-29 Thread Ed Dowgiallo
I'm running into the following exception when issuing a getConnection to an Oracle DataSource.   SQLException: Cannot create JDBC driver of class '' for connect URL 'null'   It has the following definition in a Tomcat 4.1.29 server

RE: How find DataSource?

2003-12-23 Thread Edgar P Dollin
IL PROTECTED] > Subject: Re: How find DataSource? > > > > > e-denton Java Programmer wrote: > > > > > Has anyone set up a connection pool using web.xml? Steps? Examples? > > Tips? > > > No one has, it can't be done. You can declare it in web

Re: How find DataSource?

2003-12-22 Thread Vic Cekvenich
e-denton Java Programmer wrote: Has anyone set up a connection pool using web.xml? Steps? Examples? Tips? No one has, it can't be done. You can declare it in web.xml, that's all. Read Rick Reumans tutorial on ibatis dao and ibatis petstore 3 example and do that, and you will be in a good pla

Re: How find DataSource?

2003-12-22 Thread e-denton Java Programmer
access it. Has anyone set up a connection pool using web.xml? Steps? Examples? Tips? I can't even seem to change the driver without problems. And, web.xml doesn't use JNDI, does it? Has anyone used server.xml instead? Where did you keep the DataSource Object? I looked into keeping

Re: How find DataSource?

2003-12-22 Thread Craig R. McClanahan
than caching it. Craig > - Original Message - > From: "Vic Cekvenich" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, December 22, 2003 8:31 AM > Subject: Re: How find DataSource? > > > > I put mine in a static block of the

Re: How find DataSource?

2003-12-22 Thread Craig R. McClanahan
Quoting e-denton Java Programmer <[EMAIL PROTECTED]>: > Merry Christmas, > > Wow, I finally connected to my data source! Now, I want to put the code > somewhere it will be executed only once, and save the DataSource object > where Actions, beans, etc. can get at it. That

Re: How find DataSource?

2003-12-22 Thread e-denton Java Programmer
, December 22, 2003 8:31 AM Subject: Re: How find DataSource? > I put mine in a static block of the base DAO. (static as in once per > class, and all DAO's extend my base DAO). > > > .V > > > e-denton Java Programmer wrote: > > > Merry Christmas, > > >

Re: How find DataSource?

2003-12-22 Thread Vic Cekvenich
repost (news error?) Martin Gainty wrote: how about putting it into DynaActionForm::initialize which initialises the beans anyhow.. -Martin A DAO in a form or a bean hmmm. If that is what you want to do in an MVC framework. I don't do data source in formbeans. Take a peak at PetStore

Re: How find DataSource?

2003-12-22 Thread Martin Gainty
how about putting it into DynaActionForm::initialize which initialises the beans anyhow.. -Martin this way your connections are - Original Message - From: "Vic Cekvenich" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 22, 2003 9:31 AM Subject: R

Re: How find DataSource?

2003-12-22 Thread Vic Cekvenich
e the DataSource object where Actions, beans, etc. can get at it. That way, I don't have to perform the lookup all the time. Any suggestions on where to put the one time setup code, and where to save the DataSource object reference (in the application?). Thanks again, Will - Original Message -

RE: How find DataSource?

2003-12-22 Thread Marco Mistroni
Hi, How about a plugIn? Regards marco -Original Message- From: e-denton Java Programmer [mailto:[EMAIL PROTECTED] Sent: 22 December 2003 14:11 To: Struts Users Mailing List Subject: Re: How find DataSource? Merry Christmas, Wow, I finally connected to my data source

Re: How find DataSource?

2003-12-22 Thread e-denton Java Programmer
Merry Christmas, Wow, I finally connected to my data source! Now, I want to put the code somewhere it will be executed only once, and save the DataSource object where Actions, beans, etc. can get at it. That way, I don't have to perform the lookup all the time. Any suggestions on where t

Re: How find DataSource?

2003-12-20 Thread Vic Cekvenich
See sample source code section here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Ex: Context ctx = new InitialContext(); if(ctx == null ) throw new Exception("Boom - No Context"); DataSource ds = (DataSource)

How find DataSource?

2003-12-20 Thread hylepc
Hi, >From a Data Acess Object (DAO), I need to access a DataSource (like getServletContext().getAttribute (Globals.DATA_SOURCE_KEY)). But, I don't have access to the servlet variable. What is the proper way to get the DataSource from a DAO which is called by an Action but doesn't

Re: HELP: about to get datasource of struts and pass to logic bea ns...

2003-12-08 Thread Vic Cekvenich
Ah a small comment... The Struts DataSource should not be used, I agree; the J2EE container DataSource should be used; but it will not be removed for a while AFIAK. (Deprecated just means it might be removed in some futre version. Just like hopefully bean, logic and html:link get deprecated in

RE: HELP: about to get datasource of struts and pass to logic bea ns...

2003-12-08 Thread Edgar P Dollin
Don't spend the time to get DataSource working. It is deprecated and will be removed from struts in 1.2. I use Poolman at sourceforge (I highly reccomend it for non-j2ee projects). Most others use the DataSource supplied with the container. Edgar -Original Message- From: Carolin

Re: HELP: about to get datasource of struts and pass to logic beans...

2003-12-08 Thread Caroline Jen
he.artimus.ConnectionPool; import java.sql.Connection; import java.sql.SQLException; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; public class DBConnection { public static Connection getDBConnection() throws SQLException { Conn

Re: HELP: about to get datasource of struts and pass to logic beans...

2003-12-06 Thread Vic Cekvenich
Take a look at a very good db example app that uses Struts on iBatis.com caled PetStore 3. .V Ricky wrote: > hi, there, > > with my project i had several queries about get datasource in struts. i know how > to get datasource in struts, just as in myAction, use getDataSourc

HELP: about to get datasource of struts and pass to logic beans...

2003-12-05 Thread Ricky
hi, there, with my project i had several queries about get datasource in struts. i know how to get datasource in struts, just as in myAction, use getDataSource method and return DataSource object, and go on to get connection i also know the logic beans between the Controller and

RE: sql server datasource - howto?

2003-12-02 Thread Witt, Mike (OH35)
ntation on MySQL, but if it is helpful, I can send you a snippet from my server.xml which would be applicable to how you would do your sql server. Mike -Original Message- From: dario [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 8:56 AM To: [EMAIL PROTECTED] Subject: sql server

sql server datasource - howto?

2003-12-02 Thread dario
i configured sql server datasource in struts-config but when i try to instantiate DataSource object in my action ds = getDataSource(request); struts complains that it can not find GenericDataSource. (legacy package is not in the classpath) do i need GenericDatasource

Re: setting DataSource

2003-11-03 Thread ZYD
Did you solved this problem? what's wrong with it? I didn't get load exceptions - Original Message - From: "Funicelli Aldo" <[EMAIL PROTECTED]> To: "'struts user'" <[EMAIL PROTECTED]> Sent: Monday, October 13, 2003 10:41 PM Subject:

Re: Deprecation - DataSource

2003-10-27 Thread David Graham
--- Mathieu Grimault <[EMAIL PROTECTED]> wrote: > First hello everyone !!! This is my first answer and i'm learning struts > now... > > I'm using this method but it's deprecated...Did someone knows the right > call ? thx. > > DataSource dataSource

Re: Deprecation - DataSource

2003-10-27 Thread Mark Lowe
You can use the jndi datasource that you define in web.xml rather than struts. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource- examples-howto.html The struts datasource is deprecated generally. Ideally you have your db connection stuff in your model layer. If this means

Deprecation - DataSource

2003-10-27 Thread Mathieu Grimault
First hello everyone !!! This is my first answer and i'm learning struts now... I'm using this method but it's deprecated...Did someone knows the right call ? thx. DataSource dataSource = (DataSource)servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY);

RE: Please Please Help! -- DataSource Error

2003-10-25 Thread Paul Idusogie
Help! -- DataSource Error Paul Idusogie wrote: >Thanks for your support, I was able to redeem a copy of the >struts-legacy.jar. > >I have the following questions however: > >Does this datasource model still support connection pooling.? > > > Yes. >Now if this code is sp

Re: Please Please Help! -- DataSource Error

2003-10-21 Thread Craig R. McClanahan
Paul Idusogie wrote: Thanks for your support, I was able to redeem a copy of the struts-legacy.jar. I have the following questions however: Does this datasource model still support connection pooling.? Yes. Now if this code is specified as legacy, are there better approaches to retrieving

Re: Please Please Help! -- DataSource Error

2003-10-21 Thread Barry Volpe
Read this: http://jakarta.apache.org/struts/faqs/database.html Also wanted to mention that I'm not sure if you are going to have problems if you are not using the struts.jar from release 1.1 The other item I had a problem with is: If this fails your datasource will not work. If it

RE: Please Please Help! -- DataSource Error

2003-10-21 Thread Paul Idusogie
Thanks for your support, I was able to redeem a copy of the struts-legacy.jar. I have the following questions however: Does this datasource model still support connection pooling.? Now if this code is specified as legacy, are there better approaches to retrieving database data without using

Re: Please Please Help! -- DataSource Error

2003-10-21 Thread Barry Volpe
In the struts 1.1 Final release in the /lib directory Barry - Original Message - From: "Paul Idusogie" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, October 21, 2003 11:17 AM Subject: RE: Please Please Help! --

RE: Please Please Help! -- DataSource Error

2003-10-21 Thread Paul Idusogie
Where do I find the struts legacy package? Sincerely, Paul Idusogie -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:13 PM To: Struts Users Mailing List Subject: Re: Please Please Help! -- DataSource Error They way I got it working

Re: Please Please Help! -- DataSource Error

2003-10-21 Thread Barry Volpe
;[EMAIL PROTECTED]> Sent: Tuesday, October 21, 2003 11:07 AM Subject: RE: Please Please Help! -- DataSource Error > Hi there, this errors looks familiar to me as a one time struts newbie, > you need to a file called struts-legacy.jar to help you. This is if ur > using the generic data so

RE: Please Please Help! -- DataSource Error

2003-10-21 Thread Rajat Pandit
-Original Message- From: Paul Idusogie [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: [EMAIL PROTECTED] Subject: Please Please Help! -- DataSource Error Importance: High I have the following setup within my struts-config.xml file

Re: Please Please Help! -- DataSource Error

2003-10-21 Thread Geeta Ramani
Paul: This might occur if you have multiple copies (perhaps differnt versions?) of struts.jar in your classpath. Make sure you have one and only one struts-jar in your WEB-INF/lib directory and that you compile against *that* jar. (Remove all other extaneous ones.) Recompile your app (if necess

Re: Please Please Help! -- DataSource Error

2003-10-21 Thread Barry Volpe
Do you have the struts-legacy.jar in your WEB-INF/lib directory? - Original Message - From: "Paul Idusogie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 21, 2003 10:44 AM Subject: Please Please Help! -- DataSource Error > I have the

Please Please Help! -- DataSource Error

2003-10-21 Thread Paul Idusogie
I have the following setup within my struts-config.xml file but I get the

Re: AW: AW: Looking up the Struts Datasource

2003-10-19 Thread Craig R. McClanahan
data source whenever it needs to, without having to pass it around. (There are other advantages as well, but this is the one most relevant to your concern here.) So, when ever you neet a datasource, the method in SomeBean will have to search it in JNDI. Doesn't this pose a perfor

Re: AW: AW: Looking up the Struts Datasource

2003-10-19 Thread Wolfgang Woger
t needs to, without having to pass it around. (There are other advantages as well, but this is the one most relevant to your concern here.) So, when ever you neet a datasource, the method in SomeBean will have to search it in JNDI. Doesn't this pose a performance

Re: AW: AW: Looking up the Struts Datasource

2003-10-17 Thread Craig R. McClanahan
Philipp Röthl wrote: That's not really what I would like to do. public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { SomeBean myBean = new SomeBean(); }

AW: AW: Looking up the Struts Datasource

2003-10-17 Thread Philipp Röthl
EMAIL PROTECTED] Cc: Betreff: Re: AW: Looking up the Struts Datasource you've tried the configuration detailed in the struts faqs? http://jakarta.apache.org/struts/faqs/database.html public ActionForward

Re: AW: Looking up the Struts Datasource

2003-10-17 Thread Ben Anderson
hrows Exception { javax.sql.DataSource dataSource; java.sql.Connection myConnection; try { dataSource = getDataSource(request); myConnection = dataSource.getConnection(); // do what you wish with myConnection } catch (SQLException sqle) { getServlet().log("Connection.process", s

AW: Looking up the Struts Datasource

2003-10-17 Thread Philipp Röthl
prüngliche Nachricht- Von: Ben Anderson [mailto:[EMAIL PROTECTED] Gesendet: Fr 17.10.2003 16:22 An: [EMAIL PROTECTED] Cc: Betreff: Re: Looking up the Struts Datasource It depends on the container as to how you put the datasourc

Re: Looking up the Struts Datasource

2003-10-17 Thread Ben Anderson
It depends on the container as to how you put the datasource into the context. If you're using Tomcat 4.1: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Then to access the datasource: String dsName = "java:comp/env/jdbc/myDS";

Looking up the Struts Datasource

2003-10-17 Thread Philipp Röthl
Hi, I've implemented a struts application that uses JavaBeans which perform the whole business logic. These beans access an Oracle DB. The datasource is passed from the action classes to the bean classes as a parameter. Now I have to implement a WebService that does the same as the S

Re: JNDI Datasource

2003-10-16 Thread virupaksha
_slcs - - Original Message - From: "Kirk Wylie" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, October 17, 2003 2:31 AM

Re: JNDI Datasource

2003-10-16 Thread Welkin Fung
ot;. > > > > here i am using Mysql database, i have copied > mysql driver jar files into > > struts application's lib folder , tomcat's > common/lib and shared/lib > > folder and Jndi d

Re: JNDI Datasource

2003-10-16 Thread Kirk Wylie
JDBC driver class 'null'". here i am using Mysql database, i have copied mysql driver jar files into struts application's lib folder , tomcat's common/lib and shared/lib folder and Jndi datasource is configured in server.config,, can any one pls. help me to corre

JNDI Datasource

2003-10-16 Thread virupaksha
nd shared/lib folder and Jndi datasource is configured in server.config,, can any one pls. help me to correct my mistake.. Regards, viru

setting DataSource

2003-10-13 Thread Funicelli Aldo
Using struts 1.1 I'm able to set a DataSource correctly. In struts-config.xml I use: With struts 1.1. el, I get a startup configuration error (which blocks the application): StandardContext[/rr_lesson_3]: Servlet /rr_lesson_3 threw

Re: datasource connection problem.

2003-09-09 Thread Caroline Jen
<[EMAIL PROTECTED]> wrote: > hello, > i am using mysql as a datasource in the > app,everything > is working fine but when make changes in the class > files and reload the application the application > ceazes to work and i got the followng messages in my > log file. can some o

Re: datasource connection problem.

2003-09-09 Thread Paul Thomas
On 09/09/2003 07:32 Rajat Pandit wrote: hello, i am using mysql as a datasource in the app,everything is working fine but when make changes in the class files and reload the application the application ceazes to work and i got the followng messages in my log file. can some one help me figure out

RE: datasource connection problem.

2003-09-09 Thread alan
2003 11:33 PM To: Struts Users Mailing List Subject: datasource connection problem. hello, i am using mysql as a datasource in the app,everything is working fine but when make changes in the class files and reload the application the application ceazes to work and i got the followng messages in m

datasource connection problem.

2003-09-08 Thread Rajat Pandit
hello, i am using mysql as a datasource in the app,everything is working fine but when make changes in the class files and reload the application the application ceazes to work and i got the followng messages in my log file. can some one help me figure out where am i going wrong. am a newbie

Re: R: [OT] JNDI datasource lookup to test classes

2003-08-23 Thread James Harman
Alternatively, If you are worried about test code in production, you could extend from ConnectionHandlerFactory with a TestConnectionHandlerFactor and override the getConnectionHandler() method to return the connectionHandler for testing. James James CE Johnson wrote: The most common soluti

Re: R: [OT] JNDI datasource lookup to test classes

2003-08-23 Thread James CE Johnson
> > > The most common solution to this problem is using a Factory Method to > > return the correct implementation of the interface. Your classes should > > never know which implementation is in use because they will all ask the > > Factory Method for the object. You just need to change the one l

R: [OT] JNDI datasource lookup to test classes

2003-08-23 Thread Leonardo Francalanci
> The most common solution to this problem is using a Factory Method to > return the correct implementation of the interface. Your classes should > never know which implementation is in use because they will all ask the > Factory Method for the object. You just need to change the one line in > th

Re: [OT] JNDI datasource lookup to test classes

2003-08-22 Thread Adam Hardy
On 08/22/2003 04:43 PM Leonardo Francalanci wrote: I read the JNDI tutorial, but is the worse thing I've ever read. You've obviously never read any of my poetry. -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To uns

Re: [OT] JNDI datasource lookup to test classes

2003-08-22 Thread David Graham
--- Leonardo Francalanci <[EMAIL PROTECTED]> wrote: > In my DB tier I use an interface to get the connection. > When used under Tomcat, the class that implements the connection gets > the connecton through JNDI. > I want to test these classes outside of Tomcat. > Is there a simple way to put object

Re: [OT] JNDI datasource lookup to test classes

2003-08-22 Thread Manolo Ramirez T.
mport javax.naming.InitialContext; import javax.naming.Context; import javax.naming.NamingException; import javax.sql.DataSource; import java.sql.Connection; import java.sql.SQLException; public class DBjndi { protected static DataSource ds; public static void init(String name) throws NamingExce

[OT] JNDI datasource lookup to test classes

2003-08-22 Thread Leonardo Francalanci
In my DB tier I use an interface to get the connection. When used under Tomcat, the class that implements the connection gets the connecton through JNDI. I want to test these classes outside of Tomcat. Is there a simple way to put objects in the Context, I mean a simple way to emulate Tomcat behavi

Re: retrieving DataSource in struts

2003-08-14 Thread Ted Husted
they seem at first. -Ted. [EMAIL PROTECTED] wrote: hi all, i have configured a datasource in struts-config.xml, which is successfully loaded. now my problem is that i want to write a component (which has application-context scope) which wraps the DataSource, so that individual action cla

Best way to retrieve data from a datasource

2003-08-14 Thread Mehta, Chirag (IT)
Following on to a earlier question, what is the reccomended way of retrieving a ResultSet and passing it to be viewed on a JSP page? I have seen it done using ProcessBeans, Array Lists, ResultLists, Collection and it all seems a bit confusing. In my app, the user enters a SQL query so I have no ide

retrieving DataSource in struts

2003-08-14 Thread Marco.Mistroni
hi all, i have configured a datasource in struts-config.xml, which is successfully loaded. now my problem is that i want to write a component (which has application-context scope) which wraps the DataSource, so that individual action classes don't have to deal with PreparedStat

Re: retrieving DataSource in struts

2003-08-14 Thread David Graham
--- [EMAIL PROTECTED] wrote: > hi all, > i have configured a datasource in struts-config.xml, which is > successfully loaded. > now my problem is that i want to write a component (which has > application-context scope) which wraps > the DataSource, so that individual ac

how to access my datasource from a securityfilter realm?

2003-07-21 Thread Michael Muller
I found a reference to the SecurityFilter project on this mailing list. I just hooked it up, and it seems to work pretty well. I do have a question, though. Is there any way for the realm to use same datasource as struts? I'm not passed anything useful. Is there something static some

Re: using Struts datasource from a normal servlet

2003-07-17 Thread Richard Raquepo
ssage - From: "Richard Raquepo" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, July 18, 2003 11:43 AM Subject: using Struts datasource from a normal servlet > i have a service class that i can use in my actions by passing the

using Struts datasource from a normal servlet

2003-07-17 Thread Richard Raquepo
i have a service class that i can use in my actions by passing the servlet variable to it MyService service = new MyService(servlet); or MyService service = new MyService() service.setServlet(servlet); this works fine on my action classes. My question is how can i use this serv

  1   2   3   4   >