java - How to get Injection of broadcaster factory to work in atmosphere? -
i have following code form here: https://github.com/atmosphere/atmosphere/wiki/getting-broadcasterfactory-and-atmosphereresourcefactory-with-2.2-and-newer
@inject @named("/chat") broadcasterfactory factory;
but jboss eap 6.4.7 not working, can't deploy war because of missing dependencies.
the beans.xml looks this:
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> </beans>
and in pom have following dependencies:
<dependency> <groupid>org.atmosphere</groupid> <artifactid>atmosphere-annotations</artifactid> <version>2.4.6</version> </dependency> <dependency> <groupid>org.atmosphere</groupid> <artifactid>atmosphere-runtime-native</artifactid> <version>2.4.6</version> </dependency> <dependency> <groupid>org.atmosphere</groupid> <artifactid>atmosphere-cdi</artifactid> <version>2.4.3</version> </dependency> <dependency> <groupid>com.fasterxml.jackson.core</groupid> <artifactid>jackson-databind</artifactid> <version>2.6.3</version> </dependency> <dependency> <groupid>org.atmosphere.jboss.as</groupid> <artifactid>jboss-as-websockets</artifactid> <version>0.5</version> </dependency>
what i'm missing?
Comments
Post a Comment