You can have one ObjectMapper for all resources, and there is no need to use 
the Restlet Guice integration stuff. All you have to do is (somewhere) register 
a singleton LocalJacksonConverter with the Restlet Engine (and remove any 
existing JacksonConverter). See the method in my example annotated with @Inject.

Remove that method, the @Singleton class annotation, and the javax.inject 
imports from my example, and it should compile for you.

That's assuming you're using Jackson 2.x. If you're using Jackson 1.x, you'll 
have to adjust the imports and maybe some details of the ObjectMapper call.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3046540

Reply via email to