Re: [Pride-users] Re: [Wicket-user] Re: Tools and frameworks
Brought to you by:
jlessner
|
From: Anders P. <and...@op...> - 2005-08-15 13:05:38
|
Hi Jan, and I hope you had a nice holiday.
I'm trying to use ResourceAccessorWeb, and don't understand the part=20
about JNDI and =20
DatabaseFactory.setDatabaseName("java:comp/env/sampledb");
If my connection URL "normally" is:
jdbc:sybase:Tds:qs01:2638?ServiceName=3DGenOLFData
Then how do I know what the database name should be?
(I have things working with ResourceAccessorJ2SE.)
/Anders
--=20
http://ojalgo.org/
Java Algorithms for Mathematics, Linear Algebra and Optimisation
Jan Le=DFner wrote:
> Hello everybody.
>=20
> I would suggest to have a look in the PriDE examples folder. There is a=
=20
> example of how to use PriDE from within a servlet engine, independently=
=20
> from the engine's specific features. Maybe this helps you along. The=20
> example uses are hard-coded configuration which you can simply modify t=
o=20
> a variant reading a property file from the class path and feed the=20
> properties to the PriDE initialization.
>=20
> Regards,
> Jan
>=20
>=20
> Anders Peterson schrieb:
>=20
>> Eelco Hillenius wrote:
>>
>>> You can't specify VM arguments in your web.xml file. You can use=20
>>> web.xml parameters in your Wicket application object (override method=
=20
>>> init). You should note however that VM arguments are in the scope of=20
>>> the whole VM that can have mutliple (conflicting?) webapplications.=20
>>> So, you probably want to avoid depending on VM in production systems=20
>>> unless you are really sure you 'own' the server.
>>
>>
>>
>> Ok.
>>
>> The class/method that reads the properties doesn't access=20
>> System.getProperty("aProp") directly. Instead it takes an argument of=20
>> type Properties. So, there is no problem.
>>
>> Having multiple databases, for one app, is not a problem either.
>>
>> http://pride.sourceforge.net/PriDE-Introduction.html#AccessingMultiple=
Databases=20
>>
>>
>> /Anders
|