Thank you for the suggestions (I especially liked having the annotations only
in the interface).  But no difference...

After removing the annotations from the implementation, the output was:
Mar 14, 2012 8:13:44 PM com.fourspires.api.server.CommentsServerResource
postJson
INFO: In postJson
Mar 14, 2012 8:13:45 PM com.fourspires.api.server.DAO save
INFO: saving comment

Then after re-ordering the methods in both interface and server
implementation, the output was:
Mar 14, 2012 8:16:47 PM com.fourspires.api.server.CommentsServerResource
postJson
INFO: In postJson
Mar 14, 2012 8:16:49 PM com.fourspires.api.server.DAO save
INFO: saving comment

Is it possible that when seeing the following code: (from my test case)

  Comment comment = new Comment("Hi there from Java", new Date());
  Representation representation4 = commentsResource.postJava(comment);

the fact that I am using Jackson somehow instructs the system to convert my
Java object (comment) into Json and since it is now in Json, the postJson
method is called.  Yes, it is a bit of a long shot and does introduce the
"somehow" (as if by magic) into the explanation :).

Thanks for pondering this!
RB

--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Mystery-of-Post-tp7338202p7374224.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

Reply via email to