You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Dave Everson <dj...@mygolftrac.com> on 2002/02/05 02:40:11 UTC
RE: Torque.Iniit() - Re: Help with Torque
I am reposting this question to see one last time if anyone has
suggestions.
-----Original Message-----
From: Dave Everson [mailto:djeverson@mygolftrac.com]
Sent: Tuesday, January 29, 2002 2:13 PM
To: 'Turbine Users List'
Subject: RE: Torque.Iniit() - Re: Help with Torque
Nice documentation Pete.
I just built/setup Torque 3, primarily because to get OM for a new
standalone application we are developing with Turbine. We have several
requirements to expose this data via a Turbine Webapp as well. My
question is, what changes do I need to make in the configuration of a
Turbine 2.1 webapp to seamlessly use the OM classes generated by the
standalone Torque. Do you have any documentation or suggestions on how
to perform this?
Thanks.
-----Original Message-----
From: Pete Kazmier [mailto:pete@kazmier.com]
Sent: Wednesday, January 23, 2002 5:16 PM
To: Turbine Users List
Subject: Re: Torque.Iniit() - Re: Help with Torque
Torque 3 has not been released yet. However, you can always download
the source from the CVS repositories and build it yourself. See the
section "Obtaining the Torque Distribution" in my tutorial:
http://www.kazmier.com/~kaz/torque/tutorial.html
Or, to save you the time and elaborate:
1. Download the repository
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
(password is anoncvs)
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co
jakarta-turbine-torque
2. Set lib.repo in your ${home}/build.properties file. This should be
a directory where you want to store all of the dependent jar files.
3. ant update-jars
4. ant dist
5. Inside the bin directory you'll find 'torque-3.0-dev.zip', take that
and unpack it somewhere.
Pete
On Wed, Jan 23, 2002 at 10:15:19PM +0000, stewart titan wrote:
> I've got the decoupled version of Torque - its the 2.x
> version.
>
> http://jakarta.apache.org/builds/jakarta-turbine/release/2.1/
>
> Where can I download version 3?
>
> thanks.
> --- Martin Poeschl <mp...@marmot.at> wrote: >
>
> > the Torque class only exists in the decoupled
> > version
> > if you want to use torque stand-alone you should use
> > 3.0-dev!!!!
> >
> > cvs repo: jakarta-turbine-torque
> >
> > martin
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
Peter Kazmier http://www.kazmier.com
PGP Fingerprint 4FE7 8DA3 D0B5 9CAA 69DC 7243 1855 BC2E 4B43 5654
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Torque.Iniit() - Re: Help with Torque
Posted by Bill Schneider <bs...@vecna.com>.
why not use ServletContext.getRealPath("/WEB-INF/...") instead of webappRoot
+ "WEB-INF/..."?
if we don't already, maybe there should be a form of Torque.init that takes
an InputStream instead so we can use ServletContext.getResourceAsStream in
case the webapp runs out of a .WAR file.
-- Bill
> i'm currently working on the integration of the decouped torque to
turbine-2
>
> i needed a quick hack, so i added the following method to Turbine.java
> it must be called at the end of the init() method
>
> /**
> * load subsystems like torque and fulcrum.
> */
> private void loadSubsystems()
> {
> // hardcoded torque init
> // fixme!!!!!!!!!!!!
> try
> {
> org.apache.torque.Torque.init(webappRoot +
> "WEB-INF/conf/Torque.properties");
> }
> catch (Exception ex)
> {
> ex.printStackTrace();
> }
> }
>
> a working version of turbine-2 + torque should be available within one
week ;-)
>
> martin
>
> Dave Everson wrote:
> > I am reposting this question to see one last time if anyone has
> > suggestions.
> >
> > -----Original Message-----
> > From: Dave Everson [mailto:djeverson@mygolftrac.com]
> > Sent: Tuesday, January 29, 2002 2:13 PM
> > To: 'Turbine Users List'
> > Subject: RE: Torque.Iniit() - Re: Help with Torque
> >
> > Nice documentation Pete.
> > I just built/setup Torque 3, primarily because to get OM for a new
> > standalone application we are developing with Turbine. We have several
> > requirements to expose this data via a Turbine Webapp as well. My
> > question is, what changes do I need to make in the configuration of a
> > Turbine 2.1 webapp to seamlessly use the OM classes generated by the
> > standalone Torque. Do you have any documentation or suggestions on how
> > to perform this?
> >
> > Thanks.
> >
> > -----Original Message-----
> > From: Pete Kazmier [mailto:pete@kazmier.com]
> > Sent: Wednesday, January 23, 2002 5:16 PM
> > To: Turbine Users List
> > Subject: Re: Torque.Iniit() - Re: Help with Torque
> >
> > Torque 3 has not been released yet. However, you can always download
> > the source from the CVS repositories and build it yourself. See the
> > section "Obtaining the Torque Distribution" in my tutorial:
> >
> > http://www.kazmier.com/~kaz/torque/tutorial.html
> >
> > Or, to save you the time and elaborate:
> >
> > 1. Download the repository
> >
> > cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
> > (password is anoncvs)
> > cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co
> > jakarta-turbine-torque
> >
> > 2. Set lib.repo in your ${home}/build.properties file. This should be
> > a directory where you want to store all of the dependent jar files.
> >
> > 3. ant update-jars
> >
> > 4. ant dist
> >
> > 5. Inside the bin directory you'll find 'torque-3.0-dev.zip', take that
> > and unpack it somewhere.
> >
> > Pete
> >
> > On Wed, Jan 23, 2002 at 10:15:19PM +0000, stewart titan wrote:
> >
> >>I've got the decoupled version of Torque - its the 2.x
> >>version.
> >>
> >>http://jakarta.apache.org/builds/jakarta-turbine/release/2.1/
> >>
> >>Where can I download version 3?
> >>
> >>thanks.
> >> --- Martin Poeschl <mp...@marmot.at> wrote: >
> >>
> >>
> >>>the Torque class only exists in the decoupled
> >>>version
> >>>if you want to use torque stand-alone you should use
> >>>3.0-dev!!!!
> >>>
> >>>cvs repo: jakarta-turbine-torque
> >>>
> >>>martin
> >>>
> >>>
> >>
> >>__________________________________________________
> >>Do You Yahoo!?
> >>Everything you'll ever need on one web page
> >>from News and Sport to Email and Music Charts
> >>http://uk.my.yahoo.com
> >>
> >>--
> >>To unsubscribe, e-mail:
> >>
> > <ma...@jakarta.apache.org>
> >
> >>For additional commands, e-mail:
> >>
> > <ma...@jakarta.apache.org>
> >
> >
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Torque.Iniit() - Re: Help with Torque
Posted by Martin Poeschl <mp...@marmot.at>.
i'm currently working on the integration of the decouped torque to turbine-2
i needed a quick hack, so i added the following method to Turbine.java
it must be called at the end of the init() method
/**
* load subsystems like torque and fulcrum.
*/
private void loadSubsystems()
{
// hardcoded torque init
// fixme!!!!!!!!!!!!
try
{
org.apache.torque.Torque.init(webappRoot +
"WEB-INF/conf/Torque.properties");
}
catch (Exception ex)
{
ex.printStackTrace();
}
}
a working version of turbine-2 + torque should be available within one week ;-)
martin
Dave Everson wrote:
> I am reposting this question to see one last time if anyone has
> suggestions.
>
> -----Original Message-----
> From: Dave Everson [mailto:djeverson@mygolftrac.com]
> Sent: Tuesday, January 29, 2002 2:13 PM
> To: 'Turbine Users List'
> Subject: RE: Torque.Iniit() - Re: Help with Torque
>
> Nice documentation Pete.
> I just built/setup Torque 3, primarily because to get OM for a new
> standalone application we are developing with Turbine. We have several
> requirements to expose this data via a Turbine Webapp as well. My
> question is, what changes do I need to make in the configuration of a
> Turbine 2.1 webapp to seamlessly use the OM classes generated by the
> standalone Torque. Do you have any documentation or suggestions on how
> to perform this?
>
> Thanks.
>
> -----Original Message-----
> From: Pete Kazmier [mailto:pete@kazmier.com]
> Sent: Wednesday, January 23, 2002 5:16 PM
> To: Turbine Users List
> Subject: Re: Torque.Iniit() - Re: Help with Torque
>
> Torque 3 has not been released yet. However, you can always download
> the source from the CVS repositories and build it yourself. See the
> section "Obtaining the Torque Distribution" in my tutorial:
>
> http://www.kazmier.com/~kaz/torque/tutorial.html
>
> Or, to save you the time and elaborate:
>
> 1. Download the repository
>
> cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
> (password is anoncvs)
> cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co
> jakarta-turbine-torque
>
> 2. Set lib.repo in your ${home}/build.properties file. This should be
> a directory where you want to store all of the dependent jar files.
>
> 3. ant update-jars
>
> 4. ant dist
>
> 5. Inside the bin directory you'll find 'torque-3.0-dev.zip', take that
> and unpack it somewhere.
>
> Pete
>
> On Wed, Jan 23, 2002 at 10:15:19PM +0000, stewart titan wrote:
>
>>I've got the decoupled version of Torque - its the 2.x
>>version.
>>
>>http://jakarta.apache.org/builds/jakarta-turbine/release/2.1/
>>
>>Where can I download version 3?
>>
>>thanks.
>> --- Martin Poeschl <mp...@marmot.at> wrote: >
>>
>>
>>>the Torque class only exists in the decoupled
>>>version
>>>if you want to use torque stand-alone you should use
>>>3.0-dev!!!!
>>>
>>>cvs repo: jakarta-turbine-torque
>>>
>>>martin
>>>
>>>
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Everything you'll ever need on one web page
>>from News and Sport to Email and Music Charts
>>http://uk.my.yahoo.com
>>
>>--
>>To unsubscribe, e-mail:
>>
> <ma...@jakarta.apache.org>
>
>>For additional commands, e-mail:
>>
> <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>