atmosphere

A message body writer for Java class … and MIME media type text/html was not found [duplicate]

别等时光非礼了梦想. 提交于 2019-12-18 04:38:14
问题 This question already has answers here : How to produce JSON output with Jersey 1.6 using JAXB (6 answers) Closed 6 years ago . I am using the jms/atmosphere framework to make communication between two applications. One of the applications is a message producer for a topic, sending custom objects of the following type: @XmlRootElement public class A implements Serializable{ public A(){} /* some private properties */ } On the other side more than one consumers are listening on the topic and

Long-polling with Atmosphere issue with Servlet 2.5

谁说胖子不能爱 提交于 2019-12-13 06:35:01
问题 I'm testing a simple chat application which is using Atmosphere framework. When I connect to the application from two browsers everything works like chat should work with Tomcat 7.0 and Websockets protocol is used. When I downgrade to Tomcat 6.0. or when I use Weblogic 10.3.6 long-polling is used (as expected). With one browser chatting with itself everything works but when I open second browser both windows are disconnected. I set the log level to TRACE and it seems that Atmosphere is adding

PrimePush ClassNotFoundException

若如初见. 提交于 2019-12-13 06:08:23
问题 I have been trying to get PrimePush working on my web application that runs on Tomcat 7. I have spent the whole day searching threads and StackOverFlow but have not yet came across a solution! Some of these include, this and this aswell as several others! Any help would be appreciated! I followed the PrimeFaces User Guide on setting up PrimePush. My setup is Tomcat7, PrimeFaces 3.5, Atmosphere 1.0.0.RC1 , GlassFish 2.1.17 / WEB 2.2. As such, I have the following dependencies; <dependency>

PrimeFaces push with AWS

℡╲_俬逩灬. 提交于 2019-12-13 00:37:20
问题 I am using PrimeFaces 5.0 and tomcat 7 and my application is in AWS. I am trying to use PrimeFaces push. I have implemented a sample application and it is working with my local system. If i deploy the code to AWS it fails. Xhtml code <p:socket onMessage="jsFunctionToCall" channel="/service/push"/> Web.xml <filter> <filter-name>shiroFilter</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> <init-param> <param-name>targetFilterLifecycle</param-name>

Broadcast to only one client with Atmosphere

限于喜欢 提交于 2019-12-12 08:13:56
问题 How do I broadcast messages from only one client to another with Atmosphere (Meteor)?I have currently this implementation based on meteor tutorial @Override public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException { Meteor.build(req).addListener(new AtmosphereResourceEventListenerAdapter()); } @Override public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException { String body = req.getReader().readLine().trim(); //some DAO lookups - here

debugging a jetty application

蹲街弑〆低调 提交于 2019-12-12 03:47:21
问题 I'm using the atmosphere framework (https://github.com/Atmosphere/atmosphere) which runs on a jetty server and brings websockets to any browser. The problem that I'm having is that for some strange reason messages broadcasted to all connected clients only arrive on the webclient running on the same platform as the jetty server. (localhost:8080) Other clients only recieve their messages (all at once) when the server stops. (ip server:8080) I'm not sure weither this is an issue with jetty 8

Primefaces push with dynamic paths is not working

戏子无情 提交于 2019-12-11 14:38:46
问题 I tried to implement the chat sample of primefaces-push, but it doesn't working. I run some tests and i figured out that using @PushEndpoint with fixed paths e.g. /channel , it works properly, however, using path params e.g. /channel/{userId} , the socket doesn't receive any message. I'm using: Wildfly 9.0.0-Final Primefaces 5.2 Atmosphere 2.3.3 web.xml: <servlet> <servlet-name>Push Servlet</servlet-name> <servlet-class>org.primefaces.push.PushServlet</servlet-class> <load-on-startup>1</load

How to get snapshot from Sonatype

感情迁移 提交于 2019-12-11 08:26:53
问题 I'm trying to get the snapshot release for atmosphere that is available for org.atmosphere and can't seem to get it... <repositories> <!-- Added to get the Atmosphere 1.1.0-SNAPSHOT, can be removed when 1.1.0 is released --> <repository> <id>oss.sonatype.org-snapshot</id> <url>http://oss.sonatype.org/content/repositories/snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> There are no atmosphere versions

Injecting service into Grails Atmosphere Handler class

China☆狼群 提交于 2019-12-11 00:36:29
问题 I have an NotificationsAtmosphereHandler as an Atmosphere framework handler class in my Grails application. I would like to use springSecurityService service inside of it. How I can inject service object into my handler class? def springSecurityService The usual service injection does not work. 回答1: resources.xml: <bean id="notificationsAtmosphereHandler" class="your.package.NotificationsAtmosphereHandler"/> in class: class NotificationsAtmosphereHandler { ..... @Autowired

atmosphere + spring + autowired problems [duplicate]

青春壹個敷衍的年華 提交于 2019-12-10 10:35:49
问题 This question already has answers here : Why is my Spring @Autowired field null? (16 answers) Closed 5 years ago . I am developing a web app and trying to integrate a chat (for now). I am using Spring and Atmosphere to do this. I managed to get the chat working, but now I seem to have run into a problem. I am using the @ManagedService in a separate servlet (similar to the atmosphere-chat-multiroom example) and now I need to access to a bean that is inside the spring application. For the rest