[jboss-jira] [JBoss JIRA] (WFLY-4891) Websockets implementation does not accept multiple annotations

Veli Cris (JIRA) issues at jboss.org
Thu Jul 9 07:51:02 EDT 2015


     [ https://issues.jboss.org/browse/WFLY-4891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Veli Cris updated WFLY-4891:
----------------------------
    Description: 
Only one single annotation is accepted for @OnOpen, @OnError, @OnClose.

Other websockets implementations accept multiple @ for different methods with different parameters. The single annotation which is not accepted is @OnMessage - and this way it respects JSR-356

Each websocket endpoint may only have one message handling method for each of the native websocket message formats: text, binary and pong

https://docs.oracle.com/javaee/7/api/javax/websocket/OnMessage.html


  was:
Only one single annotation is accepted for @OnOpen, @OnError, @OnClose.

Other websockets implementations accept multiple @ for different methods with different parameters. The single annotation which is not accepted is @OnMessage - and this way it respects JSR-356





> Websockets implementation does not accept multiple annotations 
> ---------------------------------------------------------------
>
>                 Key: WFLY-4891
>                 URL: https://issues.jboss.org/browse/WFLY-4891
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web Sockets
>    Affects Versions: 9.0.0.Final
>         Environment: Linux/WildFly 9.0.0.Final
>            Reporter: Veli Cris
>            Assignee: Stuart Douglas
>
> Only one single annotation is accepted for @OnOpen, @OnError, @OnClose.
> Other websockets implementations accept multiple @ for different methods with different parameters. The single annotation which is not accepted is @OnMessage - and this way it respects JSR-356
> Each websocket endpoint may only have one message handling method for each of the native websocket message formats: text, binary and pong
> https://docs.oracle.com/javaee/7/api/javax/websocket/OnMessage.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list