<div dir="ltr">yes<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 26, 2014 at 9:06 AM, Heiko Braun <span dir="ltr"><<a href="mailto:hbraun@redhat.com" target="_blank">hbraun@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">so for the simple case the idea is to declare a service dependency on the socket-binding:<br>
<br>
serviceBuilder..addDependency(SocketBinding.JBOSS_BINDING_NAME.append(bindingRef), SocketBinding.class, service.getBinding())<br>
<br>
and on the opposite side (service impl) use an injectable field:<br>
<br>
InjectedValue<SocketBinding> binding = new InjectedValue<>();<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 26 Sep 2014, at 08:38, Heiko Braun <<a href="mailto:hbraun@redhat.com">hbraun@redhat.com</a>> wrote:<br>
<br>
><br>
> Yes, my explanation was misleading. Since we try to reduce the overall number of ports used, I did assume that any subsystem that needs remote communication needs to go down the HTTP upgrade route. Isn't that the case? What's the policy behind this?<br>
><br>
> On 25 Sep 2014, at 16:49, Tomaž Cerar <<a href="mailto:tomaz.cerar@gmail.com">tomaz.cerar@gmail.com</a>> wrote:<br>
><br>
>> You are talking about two things now.<br>
>><br>
>> One is exposing new port which can be done via SocketBinding infrastructure we have.<br>
>> for example see ListenerAdd in undertow subsystem.<br>
>><br>
>> Completely different thing is protocol multiplexing aka utilizing http upgrade.<br>
>> In this case port is one already exposed by undertow (8080 by default)<br>
>> See RemotingHttpUpgradeService for example how http-remoting works.<br>
>> Before you go with this solution make sure also protocol client support this.<br>
>><br>
>> --<br>
>> tomaz<br>
>><br>
>><br>
>> On Thu, Sep 25, 2014 at 4:29 PM, Heiko Braun <<a href="mailto:hbraun@redhat.com">hbraun@redhat.com</a>> wrote:<br>
>> Can someone give me a brief overview how a subsystem would expose a port? How are services actually wired to the protocol multiplexing ? Can you point me to some examples?<br>
>><br>
>> Regards, Heiko<br>
>> _______________________________________________<br>
>> wildfly-dev mailing list<br>
>> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
>><br>
><br>
> _______________________________________________<br>
> wildfly-dev mailing list<br>
> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
<br>
</div></div></blockquote></div><br></div>