Vote count:
0
Hello i try implement 3 libs guice jersey atmosphere.
@Override
protected void configureServlets() {
Map<String, String> params = ImmutableMap.of(
PackagesResourceConfig.PROPERTY_PACKAGES, "com.citronium.plansteryreview.resources"
);
bind(JerseyGsonReader.class).in(Singleton.class);
bind(JerseyGsonWriter.class).in(Singleton.class);
bind(IHello.class).to(Hello.class);
serve("/streamt/*").with(AtmosphereGuiceServlet.class, new HashMap<String, String>(){
{
put("org.atmosphere.cpr.sessionSupport", "true");
put("org.atmosphere.cpr.broadcasterCacheClass",
"org.atmosphere.cache.UUIDBroadcasterCache");
put("com.sun.jersey.config.property.packages", "com.citronium.plansteryreview.resources");
}
});
serve("/api/*").with(GuiceContainer.class, params);
}
And web.xml
asked 29 secs ago
Aucun commentaire:
Enregistrer un commentaire