[jdf-users] New comment posted on JBoss Developer Framework

Disqus notifications at disqus.net
Wed Jun 5 05:07:12 EDT 2013



Vineet Reynolds <vineet.reynolds at gmail.com> wrote, in response to TBorba:

Unfortunately in the case of serialization and deserialization of object graphs to various formats, there is no standardized annotation available (yes, this can result in a mess if you're not careful). The format-agnostic way to do this is to have custom MessageBodyReaders/MessageBodyWriters but that tends to be an overkill in most scenarios; besides, it also requires knowledge of the internals of libraries like Jackson.

About OAuth/OAuth2, I'd suggest reading this: http://bill.burkecentral.com/2012/11/15/do-you-really-need-oauth2/. The summary of that post is that you wouldnt need OAuth, unless you need to allow other parties to perform operations on behalf of the identities registered in your identity store. If your users in the store perform operations and do not delegate them to others, then sticking to the authentication schemes available out of the box should be good enough.

IP address: 209.132.188.34
Link to comment: http://redirect.disqus.com/url?url=http%3A%2F%2Fjboss.org%2Fjdf%2Fexamples%2Fticket-monster%2Ftutorial%2FBusinessLogic%2F%23comment-919526578%3AxVwZORv3CltIqFpMl-Dxbtx5mfs&impression=4e696c9c-cdbf-11e2-adaa-003048dfbae6&type=notification.post.moderator&event=email&behavior=click

TBorba wrote:

True. I probably messed up the copy-paste from the original source since I was updating it while reading this tutorial (bad approach, I know, but the code snippets here omit the annotations those annotations), and ended up deleting the original @JsonIgnoreProperties("show"). 

I know it's a complex project and hard to put all details in the tutorial, but this one is hardly obvious in the debug process (AS 7 throws a ClassNotFoundException and meaningless serialization output), and it should be highlighted somewhere for newbies like me. But yeah, this is a showcase project, maybe I'm asking a lot :-X

By the way, isn't there a standardized solution that will not involve library-specific annotations? Because this seriously cripples the re-usability of the model. What if XML was the serializa...

-----
Options: You can moderate through email. Respond in the body with "Delete". Reply with "Like" to like this comment, or respond with anything else to approve this comment and post your message as a reply comment.

Or use the moderate panel: http://jdf.disqus.com/admin/moderate/#/pending


Stop receiving notifications when new comments are posted:
http://disqus.com/account/#notifications
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jdf-users/attachments/20130605/f3423369/attachment-0001.html 


More information about the jdf-users mailing list