What exactly is your question?
The samples given with Struts do not necessarily following the best practices, they
are more like proof of concepts than anything else.
Rgs
Vikram
-Original Message-
From: rainer juenger [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 1:45 PM
To:
I want to accesss the database from a business logic bean that should not
emplement *.servelet.* classes.
But how can I then initialize the DataSource?
like: dataSource = servlet.findDataSource(null);
??
Thanks Rainer
What exactly is your question?
The samples given with Struts do not
a connection pool (which you should really), get the connection object out
of the pool and use it to access the database.
HTH
Vikram
-Original Message-
From: rainer juenger [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 2:04 PM
To: Struts Users Mailing List
Subject: Re: Database access
juenger [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 2:04 PM
To: Struts Users Mailing List
Subject: Re: Database access design question
I want to accesss the database from a business logic bean that should not
emplement *.servelet.* classes.
But how can I then initialize
Mailing List
Subject: RE: Database access design question
1. Do not use the session bean to access the datasource... create a data
access object which locates the datasource.
2. Lookup the datasource using a jndi name not a servlet. Register your
datasource with the jndi server. (Does the servlet
To: struts-user
Subject: Re: Database access design question
I want to accesss the database from a business logic bean that should
not
emplement *.servelet.* classes.
But how can I then initialize the DataSource?
like: dataSource = servlet.findDataSource(null);
??
Thanks Rainer
What exactly is your
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: RE: Database access design question
I did something and I have been wondering if it is right... So this may
be a good time.
I have three levels in my
.
robert
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: RE: Database access design question
I did something and I have been wondering if it is right... So this
may
be a good time.
I have three
]]
Sent: Monday, June 10, 2002 10:14 AM
To: [EMAIL PROTECTED]
Subject: RE: Database access design question
Thanks for the feedback on that one. No matter how I sliced that one I
always had some kind of problem with how I was seperating everything
up...
I think the part that really confused me
pageContext, sessions or what so ever. There must be
a way!
thanks 1000 times for a hint!
Rainer
- Original Message -
From: Jerry Jalenak [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 3:17 PM
Subject: RE: Database access design question
I'm
- Original Message -
From: Jerry Jalenak [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 3:17 PM
Subject: RE: Database access design question
I'm needing to move my data access from my Actions to a 'pure' business
bean. Does anyone
);
}
-Original Message-
From: jakarta.rainer [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 11:47 AM
To: struts-user
Subject: Re: Database access design question
Sorry but I am in another galaxy as you guys are. My problems are not
that
complex yet and my knowledge isn't
12 matches
Mail list logo