thanks Sergiu,
yes, that's certainly a solution provided you empower the webapps, at
least I know how to do such in tomcat.
I was rather looking at something such as JNDI which would be more
declarative and thus would escape the critique of Vincent: it would
even something rather plexus-friendly where basically I would ask for
the "service" of a given interface, and get it provided by the webapp-
container because another webapp has installed it.
I would know how to do this in plexus but I guess it would mean I need
to put in tomcat/lib an amount of the plexus core and, at least, the
java-interface I want to call.
is that safe for xwiki? maybe... I think I'll do with getContext for
now...
paul
Le 03-avr.-09 à 17:49, Sergiu Dumitriu a écrit :
Paul Libbrecht wrote:
Hello XWikiers,
do I have a possibility for a plugin to access the classes of another
webapp?
Can this other webapp maybe offer some services shareable to others?
(JNDI?)
Can you look at ServletContext#getContext(String)?
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs