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

Stuart Douglas (JIRA) issues at jboss.org
Thu Jul 9 11:27:04 EDT 2015


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

Stuart Douglas resolved WFLY-4891.
----------------------------------
    Resolution: Rejected


>From the spec, section 4.4:

"Any Java class using this annotation on a method that does not follow these rules, or that uses this annotation on more than one method may not be deployed by the imple- mentation and the error reported to the deployer. [WSC-4.4-3]"

> 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