dev@glassfish.java.net

Re: How to handle callbacks in jsr311

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 18 Mar 2009 10:26:27 +0100

Hi Farjola,

On Mar 17, 2009, at 10:05 PM, Farjola Zaloshnja wrote:

> Hi,
>
> I am trying to support callback functionality in my web bean, which
> consumes and produces application/json in my server all complaint
> with java ee technologies, has anyone around a simple example or
> information if it's possible and how please ?

Could you provide a concrete Java example of what you would like to
do? I do not understand your question. For example, i do not know what
you mean by "web bean" and "callback".

Do you want to create a resource class that works correctly within a
Java EE 5 compliant container like GF v2.x? Do you want to use a
session bean as a resource class?

In general it is very easy to use JAX-RS/Jersey in any compliant Web
container. But i need more information on what EE technologies you
want to use and integrate with to help you.

Note that JAX-RS does not specify support for JSON, so you will need
to utilize additional features of a JAX-RS implementation for that.

Paul.