[Jersey] JerseySpring + Atmosphere example of pubsub

From: donricouga <>
Date: Tue, 6 Sep 2011 20:34:35 -0700 (PDT)

I posted this on stackoverflow,

But i can post it here too.

I'm following the tutorial here

I already have a Jersey project up and running and working fine using JBoss
7. The one difference i have is that i am using Jersey with Spring. So my
JQueryPubSub looks like this

@Service <-- For Spring component Scan
public class JQueryPubSub {

Broadcaster topic;

public SuspendResponse<String> subscribe() {
    return new SuspendResponse.SuspendResponseBuilder<String>()
            .addListener(new EventsLogger())

public Broadcastable publish(@FormParam("message") String message) {
    return new Broadcastable(message, "", topic);
So i wanted to add this example but i'm getting

22:55:27,381 SEVERE [com.sun.jersey.spi.inject.Errors] (MSC service thread
1-3) The following errors and warnings have been detected with resource
and/or provider classes: SEVERE: Missing dependency for field:
org.atmosphere.cpr.Broadcaster com.order.resources.JQueryPubSub.topic

Any ideas how i can fix this issue and why Jersey seems to be aggressively
injecting the value into broadcaster??

View this message in context:
Sent from the Jersey mailing list archive at