knox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandeep More (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KNOX-894) support websocket endpoint rewrite
Date Wed, 04 Oct 2017 15:43:00 GMT

     [ https://issues.apache.org/jira/browse/KNOX-894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sandeep More resolved KNOX-894.
-------------------------------
    Resolution: Fixed

This should be fixed in KNOX-776 like [~jesus.alv] suggested. 

[~unidevel] please feel free to open the bug if you think this is an issue.

Best,
Sandeep

> support websocket endpoint rewrite
> ----------------------------------
>
>                 Key: KNOX-894
>                 URL: https://issues.apache.org/jira/browse/KNOX-894
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: Server, Site
>    Affects Versions: 0.11.0
>            Reporter: Zhou Li
>             Fix For: 0.14.0
>
>
> As knox websocket consumer, we have one webapp provide the SQL execution service. We
use websocket to provider better experience which will notify customer whenever there is notification.
>   We have the websocket backend ws://localhost:11080/message-service/messages. we add
some extra path and query to provider different service. For example:
> ws://localhost:11080/message-service/messages/subscribe?name=XXXX 
> provide message channel subscribe service
> ws://localhost:11080/message-service/messages/topic?name=XXXX
> provide message channel for specific features
> ws://localhost:11080/message-service/messages/unsubscribe?name=XXXX
> provide message channel for unsubscribe service
> I want to define the rewrite.xml as something like 
> <rules>
>   <rule dir="IN" name="WSSERVICE/ws/inbound" pattern="*://*:*/**/message-service/messages/**?{**}">
>     <rewrite template="{$serviceUrl[WSSERVICE]}/**?{**}"/>
>   </rule>
> </rules>
> and configure service like 
> <service>
>         <role>WSSERVICE</role>
>         <url>ws://localhost:8000/message-service/messages</url>
> </service>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message