Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atmosphere&Jersey: interesting behavior with JSON support powered by Jersey #243

Closed
ekochnev opened this issue Mar 26, 2012 · 2 comments
Closed

Comments

@ekochnev
Copy link

It is just interesting behavior that I have accidentally found. If we will use @produces("application/json") and don't use @broadcast annotation and don't do transformation to json by yourself then Jersey will do it fo us.

So, the questions: 1. Is it bug/feature? 2. Can we use JSON support powered by Jersey with Atmosphere framework?

Please see https://github.com/ekochnev/atmosphere-experiments/tree/master/tictactoe-jersey-3

I use:
Atmosphere 0.8.6
jetty-distribution-8.1.2.v20120308
Firefox 11.0.
No java script issues is found.

@jfarcand
Copy link
Member

This is the same issue as #194.

@jfarcand
Copy link
Member

This is fixed with Atmosphere 0.9.0. Take a look at the rest-chat sample:

    https://github.com/Atmosphere/atmosphere/blob/master/samples/rest-chat/src/main/java/org/atmosphere/samples/chat/jersey/ResourceChat.java#L34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants