I there any interest or planned effort to make Brix run on OSGi?
-igor
On Tue, Nov 11, 2008 at 11:25 AM, <richard...@gmail.com> wrote:
>
It works now in most situations, but probably would not be acceptable
in a heavy-duty production environment. For instance, for some reason,
proxyied classes cannot be serialized.
http://www.ops4j.org/projects/pax/wicket/
They people there are pretty good, so if you make some noise, likely
they will move things forward more.
I have been using wicket now with osgi for a few years, and after
surmounting a few bumps along the way, am generally happy.
Cheers,
=david
-igor
> even that solution is technically a "hack" correct? that and dynamic
> imports and all that stuff that you need to do to make it work.
Yes and no.
The idea seems ok, but the developers haven't yet fully followed up on
it, so the result is that the current state of the code is a hack
(IMHO), but with a little work, it could be turned into a correct
solution. Just as an example, currently proxied classes cannot be
serialized. One can work around this, but it's a bit of a PITA.
Another example is that if two bundles provide a class of the same
name, there is currently (AFAIU) no way of determing which bundle
should handle the serialization for that class.
If enough people show their interest, maybe this could be moved up on
the priority list. :-)
They are committed to pax-wicket, but I think their team is very busy
right now, so it's just question of priorities.
> thats too bad. i havent been following osgi closely to be familar
> with all
> the problems. you would think there would be something like
> OsgiObjectInput/OutputStream that is provided by the platform to
> handle this sort of thing.
Hopefully that will come soon. I tend to agree with you, so hopefully
if ops4j doesn't fix this soon, maybe somebody else will. (I wish I
had the time...)
Like you point out, the ideal thing would be to have a generalized
solution that would work with any Wicket+OSGi setup, IMO...
Cheers,
=dml
>> thats too bad. i havent been following osgi closely to be familar
>> with all
>> the problems. you would think there would be something like
>> OsgiObjectInput/OutputStream that is provided by the platform to
>> handle this sort of thing.
This is actually a good idea. With dedicated Object streams, we can
annotate the package meta data, and possibly lookup a classloader via
the Package Admin Service.
But there is also a RFP in OSGi Alliance around serialization, written
by Paremus, the only people with a solid solution. Should check on the
status of that RFP.
Could we be informed of the background to this discussion?
Cheers
Niclas
There is not really any background. Somebody was just asking a
question about Wicket+OSGi, and this topic came up. I don't think that
the Brix or Wicket people have any plans to pursue this.
I just wanted to hook everybody up, since this topic is related to
both Wicket and ops4j.
Cheers,
=dml
when starting brix we considered using osgi. brix is heavy on plugins
so a platform like osgi would be a perfect choice. however, since brix
is built on top of wicket we did not go with osgi because we did not
have time to deal with serialization issues that were sure to arise.
insteadm we rolled our own simple extension point registry. thats
really all there is to it.
-igor
>
>
> Cheers
> Niclas
>
> >
>
-igor