On Oct 15, 2009, at 6:04 PM, Marc Johnen wrote:
>
> Hi Paul,
>
> thank you for the answer. I didn't really understand how to
> register the MyObjectFactoryExResolver, though.
>
How do you register your root resource classes?
If you are using a web.xml the recommended way, when getting started,
is to declare the package names where root resource and provider
classes may reside:
https://jersey.dev.java.net/nonav/documentation/1.1.3-ea/user-guide.html
#d4e217
Otherwise if you are registering an instance of
javax.ws.rs.core.Application or ResourceConfig you can add the
MyObjectFactoryExResolver class to the set of classes using:
https://jsr311.dev.java.net/nonav/javadoc/javax/ws/rs/core/Application.html
#getClasses%28%29
Jersey will log output listing the root resource and provider classes
it has found.
> Sorry for double posting, I didn't register befor my first post
> and thought it didn't go through.
>
Np.
Paul.