You can definitly do this..  The only object is that you are writing a
service that only works in Turbine.  Avalon components (services) are more
portable and less fragile:


http://jakarta.apache.org/turbine/turbine-2.3/howto/hibernate-howto.html

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/hibernate/HibernateExt/avalon
/xdocs/avalon-howto.xml?rev=1.1&content-type=text/vnd.viewcvs-markup


Of course, you need 2.3 to do this..

Eric



-----Original Message-----
From: Will Glass-Husain [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 12:59 AM
To: [EMAIL PROTECTED]
Subject: Re: Service How-to 


I figured this out in my app.  It's really easy.

Just extend TurbineBaseService.  Look at the JavaDocs to see what methods to
implement.

http://jakarta.apache.org/turbine/turbine-2.2.0/apidocs/org/apache/turbine/s
ervices/TurbineBaseService.html

It seems to be common practice to set the following.  (I wrote a service
called SSLService).   Not sure if this is necessary.
    protected static String SERVICE_NAME = "SSLService";

Finally, add the appropriate line to your TurbineResources.properties
    services.SSLService.classname=com.forio.manager.util.SSLService

Hope this is helpful.

WILL
        
_______________________________________
Forio Business Simulations
Will Glass-Husain
[EMAIL PROTECTED]
www.forio.com

Reply via email to