Hi all

I'm evaluating pax-wicket 1.0.0 running on apache Karaf an have a few problems:

a) Serialization of injected services:

I'm injecting osgi-services using the PaxWicketBean annotation, like this:

@PaxWicketBean(name = "searchService", injectionSource = PaxWicketBean.INJECTION_SOURCE_BLUEPRINT)
private transient SearchService search;

As this is in a wicket page, it is Serializable, but my osgi-services of course aren't...
so I declare it transient.
When the page is called the second time, the SearchService is null, the first time it works.

When I remove the "transient" modifier, there a lot a bunch of NotSerializable-Exceptions in the log
and nothing works..

What Is the solution to deal with this problem? I can't make the services all serializable,
since they are not my code...
Is there a way to tell pax-wicket to not serialize the pages in a that strictly way?

b) Injecting services which have a constructor with argument

When I try to inject a service which has a constructor with argument, this gives a cglib-error when
pax-wicket tries to create a proxy to it.

c) Authorization:

Does role-based authorization work? I did'nt find the method "setAuthenticator" anymore...
The wicket annotation seems not to be checked.

Regards Michael

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to