"Brad Matlack" <[EMAIL PROTECTED]> writes:
> Is it possible to user Peers in a normal Java application, or in a web
> application that is not using the Turbine framework?
Yes, but I would only recommend doing this with the
jakarta-turbine-torque module from (not with the version of Torque
embedded in Turbine 2.1).
> I have successfully used Torque to generate my "om" and "map" files, but
> cannot figure out how to initilize the system.
>
> // this is my code segment
> TurbineConfig tc = new TurbineConfig("/app","TurbineResources.properties");
> tc.init();
> Criteria crit = new Criteria();
> Vector v = TestPeer.doSelect(crit);
>
> This is the error: ...TurbineConfig users must use a path relative to web
> application root
This looks for your config file in your file system at
/app/TurbineResources.properties. That first parameter specifies web
application root.
> Should I be using TurbineConfig?
In 2.1, yes.
Daniel Rall
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]