You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Gerry Duprey <gd...@Schools-OPEN.com> on 2004/01/14 22:14:36 UTC

Turbine and Hibernate again

Howdy,

I was following the discussion last month about integrating Turbine and 
Hibernate.  One of the last comments on the subject was a pointer to the 
Hibernate HowTo in the Turbine How To pages.

I've looked it over and for the most part it's pretty simple/understandable. 
However, I do not quite understand what the need for the hibernate-avalon jar 
is.  What does that supply?  From the rest of the code examples and 
discussion, it would appear that I could integrate hibernate (as done in these 
examples) without it.

Most critical to me though is replacing Turbines reliance on Torque for the 
user security functions.  There was some discussion about having created a 
replacement security system for Turbinbe/Hibernate, but I'm not sure what 
steps to take to do this.  What code, what config items, etc, etc.

Finally, other than being redundant, is there anything we would loose, 
functionality wise, in Turbine if we just didn't use any of the security stuff 
and used our own method?  Ideally, I think reusing code would be best if we 
can make it fit, but I'd like to explore the options available to us.

Any help here would be appreciated - even if it's just pointers.  We've gotten 
through the testing stage and are very happy with Turbine.  Now we need to 
move on to real development and this is about all that is holding us up right now.

Thanks in advance,

Gerry

-- 
Gerry Duprey
________________________________________
SchoolsOPEN, LLC
123 North Ashley, Suite 120
Ann Arbor, MI 48104
Phone (877) 483-1944 Ext. 401
Fax (734) 661-0819

Visit us Online at www.Schools-OPEN.com


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Turbine and Hibernate again

Posted by Gerry Duprey <gd...@Schools-OPEN.com>.
Howdy,

> In most of the applications that I have written with turbine, I have
> written my own security service. A look at the TemplateSessionValidator,
> TurbineAccessControlList, VelocitySecureScreen and VelocitySecureAction
> classes will start to point you in the right direction.

Does this mean you write classes implementing things like 
org.apache.turbine.om.security.User or are you just ignorning those classes 
and related services and rolling your own?

I'm really trying to get a feel for what happens if I were to not use any of 
the security stuff in Turbine.  It's not what I want to do, but I think by 
understanding how (im)possible that is, I'll get a better understanding for 
how security is integrated.

Thanks!

Gerry
-- 
Gerry Duprey
________________________________________
SchoolsOPEN, LLC
123 North Ashley, Suite 120
Ann Arbor, MI 48104
Phone (877) 483-1944 Ext. 401
Fax (734) 661-0819

Visit us Online at www.Schools-OPEN.com


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Turbine and Hibernate again

Posted by Gerry Duprey <gd...@Schools-OPEN.com>.
Howdy Again,

> There are a number of implementations of a security service in the
> jakarta-turbine-fulcrum packages. I'm not sure how good the
> documentation is but the code is there. 

I've found the one Eric posted there.  Can this be deployed without having to 
deploy all of Fulcrum with Turbine 2.3 or do I have to get/build/add al of 
Fulcrum in?

I'm not 100% clear about Fulcrums relation to Turbine 2.3 - there seems to be 
a lot of overlap and my impressions is Fulcrum is for Turbine 2.4 (making me 
think this code may not work with a 2.3 install).

Thanks again,

Gerry
-- 
Gerry Duprey
________________________________________
SchoolsOPEN, LLC
123 North Ashley, Suite 120
Ann Arbor, MI 48104
Phone (877) 483-1944 Ext. 401
Fax (734) 661-0819

Visit us Online at www.Schools-OPEN.com


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Turbine and Hibernate again

Posted by Peter Courcoux <pe...@courcoux.biz>.
On Wed, 2004-01-14 at 21:14, Gerry Duprey wrote:
> Howdy,
> 
> I was following the discussion last month about integrating Turbine and 
> Hibernate.  One of the last comments on the subject was a pointer to the 
> Hibernate HowTo in the Turbine How To pages.
> 
> I've looked it over and for the most part it's pretty simple/understandable. 
> However, I do not quite understand what the need for the hibernate-avalon jar 
> is.  What does that supply?  From the rest of the code examples and 
> discussion, it would appear that I could integrate hibernate (as done in these 
> examples) without it.

Turbine has always had a framework for providing a range of services to
web applications. The earlier services framework was based on
jakarta-turbine-stratum. More recently, a lot of work has been done on
service frameworks and one such project is apache Avalon. This framework
was chosen to replace the stratum framework in turbine. The
hibernate-avalon jar provides an api and implementation which makes
hibernate available as a service following the avalon framework
conventions. Hibernate could, of course, be integrated into turbine
without it but IMHO this would be a backward step. 

If you are interested in why, go to the avalon.apache.org pages and look
for information on 'Separation of Concerns' (SOC) and 'Inversion of
Control' (IOC).

> 
> Most critical to me though is replacing Turbines reliance on Torque for the 
> user security functions.  There was some discussion about having created a 
> replacement security system for Turbinbe/Hibernate, but I'm not sure what 
> steps to take to do this.  What code, what config items, etc, etc.
> 

There are a number of implementations of a security service in the
jakarta-turbine-fulcrum packages. I'm not sure how good the
documentation is but the code is there. 

> Finally, other than being redundant, is there anything we would loose, 
> functionality wise, in Turbine if we just didn't use any of the security stuff 
> and used our own method?  Ideally, I think reusing code would be best if we 
> can make it fit, but I'd like to explore the options available to us.
> 
I believe that the roadmap for turbine includes the breaking out of some
of the highly coupled code which still exists into individual components
which can lead to more flexibility in implementation. Following that,
there has been talk of implementing some sort of pipeline or filterchain
of components such as security, action loader, page loader etc. ,
allowing these to be switched in and out quickly and easily.

> Any help here would be appreciated - even if it's just pointers.  We've gotten 
> through the testing stage and are very happy with Turbine.  Now we need to 
> move on to real development and this is about all that is holding us up right now.
> 

In most of the applications that I have written with turbine, I have
written my own security service. A look at the TemplateSessionValidator,
TurbineAccessControlList, VelocitySecureScreen and VelocitySecureAction
classes will start to point you in the right direction.

> Thanks in advance,

> Gerry


I hope that this helps. 

Peter

> 
-- 
Peter Courcoux <pe...@courcoux.biz>

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org