Sorry I didn't supply more detail with my question. Send me a link to
some info on it. I'll give it a look.

James Carman wrote:
> Yeah, I've got a new framework that allows you to use the spring framework's
> stuff inside HiveMind.  It's pretty neat.  My "tapernate" framework uses it
> and it seems to work quite well.
>
> -----Original Message-----
> From: Stanczak Group [mailto:[EMAIL PROTECTED] 
> Sent: Monday, May 01, 2006 10:00 AM
> To: Tapestry users
> Subject: Re: Access Registry
>
> Yes, Hibernate interceptor. I'm not using Spring. I'm using
> Tapestry/HiveMind/Hibernate. I was referring to the article you wrote. I
> didn't know you had a framework.
>
> James Carman wrote:
>   
>> Justin,
>>
>>  
>>
>> What type of interceptor are you using?  Are you talking about a hibernate
>> interceptor?  If you're using my Hibernate support framework (the
>> spring-hibernate3 module), you can specify an interceptor using the
>> hivemodule.xml file and it can be a service object:
>>
>>  
>>
>> <service-point id="MyHibernateInterceptor"
>> interface="org.hibernate.Interceptor">
>>
>>   <invoke-factory>
>>
>>     <construct class="com.myco.MyHibernateInterceptor" />
>>
>>   </invoke-factory>
>>
>> </service-point>
>>
>>  
>>
>> <contribution configuration-id="spring.hibernate3.Configuration">
>>
>>   <interceptor>service:MyHibernateInterceptor</interceptor>
>>
>> </contribution>
>>
>>  
>>
>> This will set up the interceptor to be used by your Hivemind sessions.
>>     
> Hope
>   
>> this helps!
>>
>>  
>>
>> James
>>
>>  
>>
>> -----Original Message-----
>> From: Stanczak Group [mailto:[EMAIL PROTECTED] 
>> Sent: Monday, May 01, 2006 9:16 AM
>> To: Tapestry users
>> Subject: Re: Access Registry
>>
>>  
>>
>> I should probably give you more detail as to what I'm trying to do. I
>>
>> use your Hibernate repositories approach. And I need to create an
>>
>> interceptor for Hibernate to do some file clean up. So I needed a way to
>>
>> get repository access in the interceptor. Now that I think of it I
>>
>> should probably create a interceptor service and inject it into my
>>
>> Hibernate session factory config and then let HiveMind insert the
>>
>> repositories I need. Does that sound good?
>>
>>  
>>
>> James Carman wrote:
>>
>>   
>>     
>>> You can create a service implementation factory which injects the
>>>     
>>>       
>>   
>>     
>>> contributing module into your service implementation.  From there, you
>>>       
> can
>   
>>>     
>>>       
>>   
>>     
>>> lookup stuff in the registry.  Refer to an example here:
>>>     
>>>       
>>   
>>
>>   
>>
>>     
> http://www.carmanconsulting.com/svn/public/tapernate-example/trunk/src/java/
>   
>>   
>>     
>>> org/apache/tapestry/enhance/HiveMindAutowireWorkerFactory.java
>>>     
>>>       
>>   
>>
>>   
>>
>>   
>>     
>>> -----Original Message-----
>>>     
>>>       
>>   
>>     
>>> From: Stanczak Group [mailto:[EMAIL PROTECTED] 
>>>     
>>>       
>>   
>>     
>>> Sent: Sunday, April 30, 2006 2:57 AM
>>>     
>>>       
>>   
>>     
>>> To: Tapestry users
>>>     
>>>       
>>   
>>     
>>> Subject: Access Registry
>>>     
>>>       
>>   
>>
>>   
>>     
>>> I have a service and I would like to have HiveMind autowire the Registry
>>>     
>>>       
>>   
>>     
>>> into it. What how do I do this. I've tried just providing a set method
>>>     
>>>       
>>   
>>     
>>> like I do with all the services I've created, but it doesn't work. What
>>>     
>>>       
>>   
>>     
>>> is it called? I'd like to set something that I could use to lookup other
>>>     
>>>       
>>   
>>     
>>> services. What I'm going to do is set the Registry in one of the objects
>>>     
>>>       
>>   
>>     
>>> this service creates so it can lookup services it needs.
>>>     
>>>       
>>   
>>
>>   
>>     
>>>   
>>>     
>>>       
>>  
>>
>>   
>>     
>
>   

-- 
Justin Stanczak
Stanczak Group
812-735-3600

"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke

..________...............__.................
./  _____/..____..._____/..|_..____...____....
/...\..____/.__.\./....\...__\/.._.\./._..\....
\....\_\..\..___/|...|..\..|.(..<_>.|.<_>..)....
.\______../\___.._\__|../__|..\____/.\____/......
........\/.....\/.....\/..........................


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to