[Pride-users] Using ResourceAccessorWeb
Brought to you by:
jlessner
|
From: <jle...@gm...> - 2005-08-21 12:06:03
|
Anders,
The ResourceAccessorWeb is supposed to be used in a Web container which
is part of a J2EE application server and therefore has access to SQL
databases by means of DataSources. If you are not familiar with these
things or working with a pure servlet engine like Tomcat, you can just
go on using ResourceAccessorJ2SE. The disadvantage is that you don't
have a sophisticated connection pooling and distributed transaction
management at hand. However, if you actually need things like that you
are strongly recommended to use a managed server environment. It is part
of PriDE's philosophy not to implement any mentionable resource
management by itself but to rely on appropriate infrastructure which is
already available in every J2EE server.
Cheers,
Jan
Anders Peterson schrieb:
> Hi Jan, and I hope you had a nice holiday.
>
> I'm trying to use ResourceAccessorWeb, and don't understand the part
> about JNDI and
> DatabaseFactory.setDatabaseName("java:comp/env/sampledb");
>
>
> If my connection URL "normally" is:
>
> jdbc:sybase:Tds:qs01:2638?ServiceName=GenOLFData
>
> Then how do I know what the database name should be?
>
>
> (I have things working with ResourceAccessorJ2SE.)
>
> /Anders
|