Hi.
I would like to thank Eelco for taking the time to apply two small
changes to the Wicket codebase, which make it possible now to deploy
Wicket as a library bundle in OSGi containers. The goal was to make
it possible to deploy Wicket applications as separate bundles.
Bundles in OSGi execute with separate classloaders. I checked out a
fresh copy of Wicket from CVS this morning and tested it in Oscar
1.0.3. I can confirm, it works just fine now. This is, what has been
done.
1. In wicket.protocol.http.WicketServlet.java we changed one statement
from
final Class applicationClass = Class.forName(applicationClassName);
to
final Class applicationClass = getClass().getClassLoader
().loadClass(applicationClassName);
This way, applicationClassName will be executed using the application
classloader (not the Wicket library classloader).
2. We added a new class wicket.util.file.OsgiPath.java
OsgiPath will do a getResource() in the context of the application
(not the Wicket library classloader), so that HTML files and other
resources can be loaded from the application bundle.
I will post a message or two we had in private as a followup discussion.
Timur
On 26. Jul 2005, at 16:40, Eelco Hillenius wrote:
Sure, I'll try to get it in as soon as possible. I don't think our
next release will take long btw, as - other than Martijn message to
the world states - the ajax stuff that is in there isn't usuable /
at all/.
Do you both agree on the changes to be made? I haven't looked at it
yet myself.
Eelco
Bennett, Timothy (JIS - Applications) wrote:
Eelco,
Is there anyway these changes suggested by Timur be considered for
the
upcoming 1.1 release?
Regards,
Timothy
-----Original Message-----
From: Timur Mehrvarz [mailto:[EMAIL PROTECTED] Sent:
Tuesday, July 26, 2005 9:25 AM
To: Eelco Hillenius
Cc: Jan Mikkelsen; Bennett, Timothy (JIS - Applications)
Subject: Re: [Wicket-develop] Wicket in OSGi
On 25. Jul 2005, at 17:37, Eelco Hillenius wrote:
I think the best procedure is to use our RFE system at: https://
sourceforge.net/tracker/?group_id=119783&atid=684978 You can
either post patches (preferably using Eclipse's patch system, as
that is what
most of the devs use), or just the complete changed files
derived from
latest HEAD.
Hi Eelco,
my proposal to extend Wicket, so it can be used in OSGi
containers, has been recorded as Feature Requests 1245268. Only
two minor changes are required. I did not feel comfortable to
send patches or files, but I hope the description I gave is helpful.
Cheers, Timur
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop