Stefan Lischke wrote:
> Thanx for your answer,
>
> i tried using the ConfigurationContext, but when i put in an object from 
> Service 1 and read it out
> from Service 2 i get a ClassCastException when casting it to the right class.
>   
Yes thats happen because of service isolation. Each service classes are
loaded from different class loader. To avoid that problem you have to
put that common class into a common place like lib directory.
> Maybe thats because the different class-loaders? So i can only use simple 
> java types to share
> between both services? how can i share instances of my classes? do i have to 
> put them in a lib in
> the axis2/lib directory?
>
> thanx for helping
>
> Stefan
>
> Deepal jayasinghe wrote:
>   
>> You can make them to a service group and then from the serviced group
>> context you can share. Or you can put what you want to share into
>> configuration context.
>>
>> -Deepal
>>     
>>> Hi,
>>>
>>> I have two Services, that needs to share a cache. How can i avoid service 
>>> isolation so that both
>>> service are using the same object?
>>>
>>> thx in advance
>>>
>>> Stefan
>>>
>>>   
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>     
>
>
>   


-- 
Thank you!


http://blogs.deepal.org


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

Reply via email to