Hi Geert,
Can you explain your view about Repository.getContext().
Today i tried to make such thing:
I have my spring participant
public class FRNewsParticipantSpringWeb extends BlockingParticipant {...}
In Element i put it to ServletContext -
getServletContext().setAttribute("FRNewsParticipantSpringWeb",
Rep.getParticipant("FRNewsParticipantSpringWeb"));
Then in SessionListener i tried to get object from ServletContext
final Object p = httpSessionEvent.getSession().getServletContext().
getAttribute("FRNewsParticipantSpringWeb");
And i got exception:
java.lang.ClassCastException: com.mypack.helper.FRNewsParticipantSpringWeb
cannot be cast to com.uwyn.rife.rep.Participant
So there's the same Classloader problem.
Really i don't know how to solve it. Maybe RIFE classloader has been
changed. Or i have to use jms or something like this to communicate with
rife core but it's very bad way :(
Geert Bevin wrote:
>
> Hi Maxim,
>
> I can see that this could be a problem. Do you have any suggestions
> about how to solve this? I was thinking that I could maybe set an
> attribute in the ServletContext that context the Rep instance that is
> initialized. You should be able to do this already yourself I think,
> by adding a participant that uses the Repository.getContext() method
> and cast it the returned object to ServletContext.
>
> Hope this helps.
>
> Best regards,
>
> Geert
>
> --
> Geert Bevin
> Uwyn "Use what you need" - http://uwyn.com
> RIFE Java application framework - http://rifers.org
> Music and words - http://gbevin.com
>
>
> _______________________________________________
> Rife-users mailing list
> [email protected]
> http://lists.uwyn.com/mailman/listinfo/rife-users
>
>
--
View this message in context:
http://www.nabble.com/Access-to-Rife-Rep-from-another-place-tf3305337.html#a9207211
Sent from the RIFE - users mailing list archive at Nabble.com.
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users