No real idea, this project uses it github.com/rmannibucau/geneva-jug
(https://github.com/rmannibucau/geneva-jug/blob/master/src/main/java/com/github/rmannibucau/genevajug/websocket/TicTacToeEndpoint.java)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-04-04 15:32 GMT+02:00 Luc LABBE <[email protected]>:
> Hi Romain,
>
> Yes I'm using the 1.7.0_45 version.
>
> Luc
>
>
> 2014-04-04 15:29 GMT+02:00 Romain Manni-Bucau <[email protected]>:
>
>> Hi
>>
>> do you use java 7?
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>>
>> 2014-04-04 15:21 GMT+02:00 Luc LABBE <[email protected]>:
>> > Hi all,
>> >
>> > Since the 1.6.0 version the JSR356 API has been added in TomEE
>> > (websocket-api.jar).
>> >
>> > I try to deploy a simple WebSocket Endpoint with the @ServerEndpoint
>> > annotation.
>> >
>> > When I launch my tomee server with the maven plugin, I don't see any log
>> > about the deployment of my websocket.
>> >
>> > What should I do more to deploy my websocket ?
>> >
>> > My ServerEndpoint:
>> > import javax.websocket.*;
>> > import javax.websocket.server.ServerEndpoint;
>> > import java.io.IOException;
>> > import java.util.logging.Logger;
>> >
>> > @ServerEndpoint(value = "/test")
>> > public class WordGameServerEndpoint {
>> >
>> >     private Logger logger = Logger.getLogger(this.getClass().getName());
>> >
>> >     @OnOpen
>> >     public void onOpen(Session session) {
>> >         logger.info("Connected ... " + session.getId());
>> >     }
>> >
>> >     @OnMessage
>> >     public String onMessage(String message, Session session) {
>> >         return message;
>> >     }
>> >
>> >     @OnClose
>> >     public void onClose(Session session, CloseReason closeReason) {
>> >         logger.info(String.format("Session %s closed because of %s",
>> > session.getId(), closeReason));
>> >     }
>> > }
>> >
>> > My maven tomee plugin declaration:
>> > <plugin>
>> >         <groupId>org.apache.openejb.maven</groupId>
>> >         <artifactId>tomee-maven-plugin</artifactId>
>> >         <version>1.0.1</version>
>> >           <configuration>
>> >               <tomeeVersion>1.6.0</tomeeVersion>
>> >               <removeTomeeWebapp>true</removeTomeeWebapp>
>> >           </configuration>
>> >       </plugin>
>> >
>> > And I have added the maven dependency for the javax.servlet api:
>> > <dependency>
>> >           <groupId>javax.websocket</groupId>
>> >           <artifactId>javax.websocket-api</artifactId>
>> >           <version>1.0</version>
>> >           <scope>provided</scope>
>> >       </dependency>
>> >
>> >
>> > Thx for your help.
>> >
>> > Luc
>>

Reply via email to