Hi Maxim,
I see your problem and don't have a solution if you need the RIFE
classloader (are you using continuations or meta data merging?).
This could be solved later by adding bytecode modification agents
support instead of using a classloader for this, but this hasn't been
developed yet.
Sorry :-(
Best regards,
Geert
On 28 Feb 2007, at 17:27, Maxim Grigoriev wrote:
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