You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Hans L <ha...@gmail.com> on 2006/04/24 21:31:28 UTC

tapestry, hivemind, spring

Hi,

I'm wondering if anyone (James?) can give me some advice on configuring 
tapestry service points with spring.  I am using spring to build my 
sessionFactory and autoproxy my DAO beans to use [annotation-based] 
declarative transactions.  I'd really like to implement James' 
EntityPropertyPersistenceStrategy; however, it looks like the only way 
to configure Tapestry is via Hivemind services.

So, I think my only options are:

   1- modify the hivemodule.xml and EntityPropertyPersistenceStrategy to 
use DefaultSpringBeanFactoryHolder to allow me to pull my sessionFactory 
  and hibernateService beans from Spring application context.

   2- switch everything over to using HiveMind.  (I suppose I lose 
ability to use @Transactional declarative transactions ... I'm also not 
entirely sure what the analogy is to using Spring's dataSource beans and 
sessionFactory.)

Am I missing other option(s)?  For example, is there a way to set 
Tapestry configuration points from Spring?

I understand that philosophically HiveMind and Spring are fairly 
different -- and, at least on paper, I do like the distributed nature of 
the HiveMind approach, but Spring has a large selection of existing 
integration tools and far more extensive documentation.

Thanks again -

Hans


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


Re: tapestry, hivemind, spring

Posted by Hans L <ha...@gmail.com>.
Hi Chris,

Thanks for the response.  That's neat; I didn't realize the spring: 
prefix worked in the hivemodule.xml as well.  I guess I should have 
taken that leap of faith & tried that first. :)

In the long run, I'd like to get this all working cleanly in HiveMind, 
but in the short run I'll probably try to keep both systems working 
together.

Thanks-
Hans

Chris Nelson wrote:
> I've had no trouble using Spring beans as Tapestry
> configuration points.  In the hivemodule.xml I can
> refer to spring beans using the "spring:" prefix given
> me by the SpringBeanContextHolder stuff.  
> 
> I will also need to adapt Jims
> EntityPersistenceStrategy stuff to work with Spring
> DAOs, so perhaps I will have something to share on
> that.  I'll need it for the current project, but
> haven't got to it yet.  
> 
> I feel your pain on having to deal with both Hivemind
> and Spring, but don't have a good answer.  I love some
> of the excellent ideas in HM, but I don't feel like I
> can or want to ditch Spring.  
> 
> --Chris
> 
> --- Hans L <ha...@gmail.com> wrote:
> 
>> Hi,
>>
>> I'm wondering if anyone (James?) can give me some
>> advice on configuring 
>> tapestry service points with spring.  I am using
>> spring to build my 
>> sessionFactory and autoproxy my DAO beans to use
>> [annotation-based] 
>> declarative transactions.  I'd really like to
>> implement James' 
>> EntityPropertyPersistenceStrategy; however, it looks
>> like the only way 
>> to configure Tapestry is via Hivemind services.
>>
>> So, I think my only options are:
>>
>>    1- modify the hivemodule.xml and
>> EntityPropertyPersistenceStrategy to 
>> use DefaultSpringBeanFactoryHolder to allow me to
>> pull my sessionFactory 
>>   and hibernateService beans from Spring application
>> context.
>>
>>    2- switch everything over to using HiveMind.  (I
>> suppose I lose 
>> ability to use @Transactional declarative
>> transactions ... I'm also not 
>> entirely sure what the analogy is to using Spring's
>> dataSource beans and 
>> sessionFactory.)
>>
>> Am I missing other option(s)?  For example, is there
>> a way to set 
>> Tapestry configuration points from Spring?
>>
>> I understand that philosophically HiveMind and
>> Spring are fairly 
>> different -- and, at least on paper, I do like the
>> distributed nature of 
>> the HiveMind approach, but Spring has a large
>> selection of existing 
>> integration tools and far more extensive
>> documentation.
>>
>> Thanks again -
>>
>> Hans
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail:
>> tapestry-user-help@jakarta.apache.org
>>
>>
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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


RE: tapestry, hivemind, spring

Posted by James Carman <ja...@carmanconsulting.com>.
Please do.  I might get rid of the HiveMind utils stuff.  There's a bug in
HiveMind that doesn't let me use my transaction interceptor with other
interceptors.  But, I can probably get around that by using CGLIB (not
javassist) to generate the proxy classes.

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Hans L
Sent: Monday, April 24, 2006 4:05 PM
To: tapestry-user@jakarta.apache.org
Subject: Re: tapestry, hivemind, spring

Thanks, James.  I'll play around with this & if I get any transaction 
annotation support working I'll send it along.

Hans

James Carman wrote:
> Well, you can find all the source code at the hivemind project at
JavaForge.
> Here's the source repositories for it all.
> 
> http://www.carmanconsulting.com/svn/public/tapernate/trunk
> http://svn.javaforge.com/svn/hivemind/spring-hibernate3/trunk
> http://svn.javaforge.com/svn/hivemind/hivemind-utils/trunk
> http://svn.javaforge.com/svn/hivemind/spring-transaction/trunk
> 
> Note: To checkout from javaforge, you have to use anonymous/anon as the
> username/password.
> 
> 
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Hans L
> Sent: Monday, April 24, 2006 3:48 PM
> To: tapestry-user@jakarta.apache.org
> Subject: Re: tapestry, hivemind, spring
> 
> Hi James,
> 
> Actually, I'd be very happy to try my hand at writing support for the 
> @Transactional stuff, based on the Annotation support in Spring & the 
> TransactionInterceptorFactory in 
> com.javaforge.hivemind.spring.transaction package.  I was trying to find 
> the source repository for some of the jars in tapernate (e.g. 
> spring-transaction.jar, spring-hibernate.jar), but was unable to do so. 
>   I don't need @Transactional, though it is kinda nice :)
> 
> I am leaning toward trying to do everything in HiveMind (but using 
> Spring, as you do); I just need to learn how to do the configuration 
> stuff -- and specifically what HiveMind provides for datasource 
> configuration, etc.
> 
> Thanks-
> Hans
> 
> James Carman wrote:
>> Well, of course I'm going to say to use HiveMind, but use the Spring
stuff
>> inside HiveMind (like I do).  That is, use HiveMind to wire everything
>> together.  If you *really* want to use the @Transactional annotations, I
>> suppose I could be coerced into writing some code that supports it (cost,
> 1
>> case of Goose Island Honkers Ale...kidding of course...somewhat).  The
> trick
>> is that you'd have to have the @Transactional annotations on your service
>> interface.  
>>
>>
>> -----Original Message-----
>> From: news [mailto:news@sea.gmane.org] On Behalf Of Hans L
>> Sent: Monday, April 24, 2006 3:31 PM
>> To: tapestry-user@jakarta.apache.org
>> Subject: tapestry, hivemind, spring
>>
>> Hi,
>>
>> I'm wondering if anyone (James?) can give me some advice on configuring 
>> tapestry service points with spring.  I am using spring to build my 
>> sessionFactory and autoproxy my DAO beans to use [annotation-based] 
>> declarative transactions.  I'd really like to implement James' 
>> EntityPropertyPersistenceStrategy; however, it looks like the only way 
>> to configure Tapestry is via Hivemind services.
>>
>> So, I think my only options are:
>>
>>    1- modify the hivemodule.xml and EntityPropertyPersistenceStrategy to 
>> use DefaultSpringBeanFactoryHolder to allow me to pull my sessionFactory 
>>   and hibernateService beans from Spring application context.
>>
>>    2- switch everything over to using HiveMind.  (I suppose I lose 
>> ability to use @Transactional declarative transactions ... I'm also not 
>> entirely sure what the analogy is to using Spring's dataSource beans and 
>> sessionFactory.)
>>
>> Am I missing other option(s)?  For example, is there a way to set 
>> Tapestry configuration points from Spring?
>>
>> I understand that philosophically HiveMind and Spring are fairly 
>> different -- and, at least on paper, I do like the distributed nature of 
>> the HiveMind approach, but Spring has a large selection of existing 
>> integration tools and far more extensive documentation.
>>
>> Thanks again -
>>
>> Hans
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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



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


Re: tapestry, hivemind, spring

Posted by Hans L <ha...@gmail.com>.
Thanks, James.  I'll play around with this & if I get any transaction 
annotation support working I'll send it along.

Hans

James Carman wrote:
> Well, you can find all the source code at the hivemind project at JavaForge.
> Here's the source repositories for it all.
> 
> http://www.carmanconsulting.com/svn/public/tapernate/trunk
> http://svn.javaforge.com/svn/hivemind/spring-hibernate3/trunk
> http://svn.javaforge.com/svn/hivemind/hivemind-utils/trunk
> http://svn.javaforge.com/svn/hivemind/spring-transaction/trunk
> 
> Note: To checkout from javaforge, you have to use anonymous/anon as the
> username/password.
> 
> 
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Hans L
> Sent: Monday, April 24, 2006 3:48 PM
> To: tapestry-user@jakarta.apache.org
> Subject: Re: tapestry, hivemind, spring
> 
> Hi James,
> 
> Actually, I'd be very happy to try my hand at writing support for the 
> @Transactional stuff, based on the Annotation support in Spring & the 
> TransactionInterceptorFactory in 
> com.javaforge.hivemind.spring.transaction package.  I was trying to find 
> the source repository for some of the jars in tapernate (e.g. 
> spring-transaction.jar, spring-hibernate.jar), but was unable to do so. 
>   I don't need @Transactional, though it is kinda nice :)
> 
> I am leaning toward trying to do everything in HiveMind (but using 
> Spring, as you do); I just need to learn how to do the configuration 
> stuff -- and specifically what HiveMind provides for datasource 
> configuration, etc.
> 
> Thanks-
> Hans
> 
> James Carman wrote:
>> Well, of course I'm going to say to use HiveMind, but use the Spring stuff
>> inside HiveMind (like I do).  That is, use HiveMind to wire everything
>> together.  If you *really* want to use the @Transactional annotations, I
>> suppose I could be coerced into writing some code that supports it (cost,
> 1
>> case of Goose Island Honkers Ale...kidding of course...somewhat).  The
> trick
>> is that you'd have to have the @Transactional annotations on your service
>> interface.  
>>
>>
>> -----Original Message-----
>> From: news [mailto:news@sea.gmane.org] On Behalf Of Hans L
>> Sent: Monday, April 24, 2006 3:31 PM
>> To: tapestry-user@jakarta.apache.org
>> Subject: tapestry, hivemind, spring
>>
>> Hi,
>>
>> I'm wondering if anyone (James?) can give me some advice on configuring 
>> tapestry service points with spring.  I am using spring to build my 
>> sessionFactory and autoproxy my DAO beans to use [annotation-based] 
>> declarative transactions.  I'd really like to implement James' 
>> EntityPropertyPersistenceStrategy; however, it looks like the only way 
>> to configure Tapestry is via Hivemind services.
>>
>> So, I think my only options are:
>>
>>    1- modify the hivemodule.xml and EntityPropertyPersistenceStrategy to 
>> use DefaultSpringBeanFactoryHolder to allow me to pull my sessionFactory 
>>   and hibernateService beans from Spring application context.
>>
>>    2- switch everything over to using HiveMind.  (I suppose I lose 
>> ability to use @Transactional declarative transactions ... I'm also not 
>> entirely sure what the analogy is to using Spring's dataSource beans and 
>> sessionFactory.)
>>
>> Am I missing other option(s)?  For example, is there a way to set 
>> Tapestry configuration points from Spring?
>>
>> I understand that philosophically HiveMind and Spring are fairly 
>> different -- and, at least on paper, I do like the distributed nature of 
>> the HiveMind approach, but Spring has a large selection of existing 
>> integration tools and far more extensive documentation.
>>
>> Thanks again -
>>
>> Hans
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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


RE: tapestry, hivemind, spring

Posted by James Carman <ja...@carmanconsulting.com>.
Well, you can find all the source code at the hivemind project at JavaForge.
Here's the source repositories for it all.

http://www.carmanconsulting.com/svn/public/tapernate/trunk
http://svn.javaforge.com/svn/hivemind/spring-hibernate3/trunk
http://svn.javaforge.com/svn/hivemind/hivemind-utils/trunk
http://svn.javaforge.com/svn/hivemind/spring-transaction/trunk

Note: To checkout from javaforge, you have to use anonymous/anon as the
username/password.


-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Hans L
Sent: Monday, April 24, 2006 3:48 PM
To: tapestry-user@jakarta.apache.org
Subject: Re: tapestry, hivemind, spring

Hi James,

Actually, I'd be very happy to try my hand at writing support for the 
@Transactional stuff, based on the Annotation support in Spring & the 
TransactionInterceptorFactory in 
com.javaforge.hivemind.spring.transaction package.  I was trying to find 
the source repository for some of the jars in tapernate (e.g. 
spring-transaction.jar, spring-hibernate.jar), but was unable to do so. 
  I don't need @Transactional, though it is kinda nice :)

I am leaning toward trying to do everything in HiveMind (but using 
Spring, as you do); I just need to learn how to do the configuration 
stuff -- and specifically what HiveMind provides for datasource 
configuration, etc.

Thanks-
Hans

James Carman wrote:
> Well, of course I'm going to say to use HiveMind, but use the Spring stuff
> inside HiveMind (like I do).  That is, use HiveMind to wire everything
> together.  If you *really* want to use the @Transactional annotations, I
> suppose I could be coerced into writing some code that supports it (cost,
1
> case of Goose Island Honkers Ale...kidding of course...somewhat).  The
trick
> is that you'd have to have the @Transactional annotations on your service
> interface.  
> 
> 
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Hans L
> Sent: Monday, April 24, 2006 3:31 PM
> To: tapestry-user@jakarta.apache.org
> Subject: tapestry, hivemind, spring
> 
> Hi,
> 
> I'm wondering if anyone (James?) can give me some advice on configuring 
> tapestry service points with spring.  I am using spring to build my 
> sessionFactory and autoproxy my DAO beans to use [annotation-based] 
> declarative transactions.  I'd really like to implement James' 
> EntityPropertyPersistenceStrategy; however, it looks like the only way 
> to configure Tapestry is via Hivemind services.
> 
> So, I think my only options are:
> 
>    1- modify the hivemodule.xml and EntityPropertyPersistenceStrategy to 
> use DefaultSpringBeanFactoryHolder to allow me to pull my sessionFactory 
>   and hibernateService beans from Spring application context.
> 
>    2- switch everything over to using HiveMind.  (I suppose I lose 
> ability to use @Transactional declarative transactions ... I'm also not 
> entirely sure what the analogy is to using Spring's dataSource beans and 
> sessionFactory.)
> 
> Am I missing other option(s)?  For example, is there a way to set 
> Tapestry configuration points from Spring?
> 
> I understand that philosophically HiveMind and Spring are fairly 
> different -- and, at least on paper, I do like the distributed nature of 
> the HiveMind approach, but Spring has a large selection of existing 
> integration tools and far more extensive documentation.
> 
> Thanks again -
> 
> Hans
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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



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


Re: tapestry, hivemind, spring

Posted by Hans L <ha...@gmail.com>.
Hi James,

Actually, I'd be very happy to try my hand at writing support for the 
@Transactional stuff, based on the Annotation support in Spring & the 
TransactionInterceptorFactory in 
com.javaforge.hivemind.spring.transaction package.  I was trying to find 
the source repository for some of the jars in tapernate (e.g. 
spring-transaction.jar, spring-hibernate.jar), but was unable to do so. 
  I don't need @Transactional, though it is kinda nice :)

I am leaning toward trying to do everything in HiveMind (but using 
Spring, as you do); I just need to learn how to do the configuration 
stuff -- and specifically what HiveMind provides for datasource 
configuration, etc.

Thanks-
Hans

James Carman wrote:
> Well, of course I'm going to say to use HiveMind, but use the Spring stuff
> inside HiveMind (like I do).  That is, use HiveMind to wire everything
> together.  If you *really* want to use the @Transactional annotations, I
> suppose I could be coerced into writing some code that supports it (cost, 1
> case of Goose Island Honkers Ale...kidding of course...somewhat).  The trick
> is that you'd have to have the @Transactional annotations on your service
> interface.  
> 
> 
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Hans L
> Sent: Monday, April 24, 2006 3:31 PM
> To: tapestry-user@jakarta.apache.org
> Subject: tapestry, hivemind, spring
> 
> Hi,
> 
> I'm wondering if anyone (James?) can give me some advice on configuring 
> tapestry service points with spring.  I am using spring to build my 
> sessionFactory and autoproxy my DAO beans to use [annotation-based] 
> declarative transactions.  I'd really like to implement James' 
> EntityPropertyPersistenceStrategy; however, it looks like the only way 
> to configure Tapestry is via Hivemind services.
> 
> So, I think my only options are:
> 
>    1- modify the hivemodule.xml and EntityPropertyPersistenceStrategy to 
> use DefaultSpringBeanFactoryHolder to allow me to pull my sessionFactory 
>   and hibernateService beans from Spring application context.
> 
>    2- switch everything over to using HiveMind.  (I suppose I lose 
> ability to use @Transactional declarative transactions ... I'm also not 
> entirely sure what the analogy is to using Spring's dataSource beans and 
> sessionFactory.)
> 
> Am I missing other option(s)?  For example, is there a way to set 
> Tapestry configuration points from Spring?
> 
> I understand that philosophically HiveMind and Spring are fairly 
> different -- and, at least on paper, I do like the distributed nature of 
> the HiveMind approach, but Spring has a large selection of existing 
> integration tools and far more extensive documentation.
> 
> Thanks again -
> 
> Hans
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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


Re: tapestry, hivemind, spring

Posted by Chris Nelson <cn...@yahoo.com>.
I've had no trouble using Spring beans as Tapestry
configuration points.  In the hivemodule.xml I can
refer to spring beans using the "spring:" prefix given
me by the SpringBeanContextHolder stuff.  

I will also need to adapt Jims
EntityPersistenceStrategy stuff to work with Spring
DAOs, so perhaps I will have something to share on
that.  I'll need it for the current project, but
haven't got to it yet.  

I feel your pain on having to deal with both Hivemind
and Spring, but don't have a good answer.  I love some
of the excellent ideas in HM, but I don't feel like I
can or want to ditch Spring.  

--Chris

--- Hans L <ha...@gmail.com> wrote:

> Hi,
> 
> I'm wondering if anyone (James?) can give me some
> advice on configuring 
> tapestry service points with spring.  I am using
> spring to build my 
> sessionFactory and autoproxy my DAO beans to use
> [annotation-based] 
> declarative transactions.  I'd really like to
> implement James' 
> EntityPropertyPersistenceStrategy; however, it looks
> like the only way 
> to configure Tapestry is via Hivemind services.
> 
> So, I think my only options are:
> 
>    1- modify the hivemodule.xml and
> EntityPropertyPersistenceStrategy to 
> use DefaultSpringBeanFactoryHolder to allow me to
> pull my sessionFactory 
>   and hibernateService beans from Spring application
> context.
> 
>    2- switch everything over to using HiveMind.  (I
> suppose I lose 
> ability to use @Transactional declarative
> transactions ... I'm also not 
> entirely sure what the analogy is to using Spring's
> dataSource beans and 
> sessionFactory.)
> 
> Am I missing other option(s)?  For example, is there
> a way to set 
> Tapestry configuration points from Spring?
> 
> I understand that philosophically HiveMind and
> Spring are fairly 
> different -- and, at least on paper, I do like the
> distributed nature of 
> the HiveMind approach, but Spring has a large
> selection of existing 
> integration tools and far more extensive
> documentation.
> 
> Thanks again -
> 
> Hans
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


RE: tapestry, hivemind, spring

Posted by James Carman <ja...@carmanconsulting.com>.
Well, of course I'm going to say to use HiveMind, but use the Spring stuff
inside HiveMind (like I do).  That is, use HiveMind to wire everything
together.  If you *really* want to use the @Transactional annotations, I
suppose I could be coerced into writing some code that supports it (cost, 1
case of Goose Island Honkers Ale...kidding of course...somewhat).  The trick
is that you'd have to have the @Transactional annotations on your service
interface.  


-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Hans L
Sent: Monday, April 24, 2006 3:31 PM
To: tapestry-user@jakarta.apache.org
Subject: tapestry, hivemind, spring

Hi,

I'm wondering if anyone (James?) can give me some advice on configuring 
tapestry service points with spring.  I am using spring to build my 
sessionFactory and autoproxy my DAO beans to use [annotation-based] 
declarative transactions.  I'd really like to implement James' 
EntityPropertyPersistenceStrategy; however, it looks like the only way 
to configure Tapestry is via Hivemind services.

So, I think my only options are:

   1- modify the hivemodule.xml and EntityPropertyPersistenceStrategy to 
use DefaultSpringBeanFactoryHolder to allow me to pull my sessionFactory 
  and hibernateService beans from Spring application context.

   2- switch everything over to using HiveMind.  (I suppose I lose 
ability to use @Transactional declarative transactions ... I'm also not 
entirely sure what the analogy is to using Spring's dataSource beans and 
sessionFactory.)

Am I missing other option(s)?  For example, is there a way to set 
Tapestry configuration points from Spring?

I understand that philosophically HiveMind and Spring are fairly 
different -- and, at least on paper, I do like the distributed nature of 
the HiveMind approach, but Spring has a large selection of existing 
integration tools and far more extensive documentation.

Thanks again -

Hans


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



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