Martijn Dashorst wrote:

This is possible (at least with Oscar 1.0.5.), there are some concern you have to take into account. First you need to make sure you use the correct classloader to get to the classes embedded in the bundles. That should be too hard a problem.


Can you elaborate on this point? Is it about setting the correct thread's context classloader?

What doesn't work well is synchronizing the oscar loaded objects across a cluster and serializing the objects into the session.

Though the serialization works pretty well, the receiving side can't instantiate the objects, as the classes can't be found by the servlet container's classloader.


Right. That's where having the servlet engine running as a bundle makes a difference.

The Wicket framework has run into this problem as well. Everything works quite well when run in a whole OSGi environment, but when there's a mix'n'match with classloaders your in for some hard thinking. We woul also like to see some solution for this problem ;-) Bright ideas are welcome!


Thanks for this answer!

Sylvain

--
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director

Reply via email to