Thomas,<br><br>we do have socket-binding service that provides/injects requested socket binding into your service.<br><br>All you need to do is to define your own Service that field of type InjectedValue&lt;SocketBinding&gt; binding<br>
<br>and then you can just inject socket binding like this:<br><br> final ServiceBuilder&lt;MyService&gt; serviceBuilder = context.getServiceTarget().addService(MyServiceName.append(name), service)<br>                <b>.addDependency(SocketBinding.JBOSS_BINDING_NAME.append(bindingRef), SocketBinding.class, service.getBinding());</b><br>
<br>where bindingRef is name of socket-binding in standalone.xml (or mgmt model)<br><br>Hope that answered your question. or did i misunderstood it...<br><br>--<br>tomaz<br><br><br><br><div class="gmail_quote">On Thu, Sep 13, 2012 at 5:43 PM, Thomas Diesler <span dir="ltr">&lt;<a href="mailto:thomas.diesler@jboss.com" target="_blank">thomas.diesler@jboss.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tomaz,<br>
<br>
do we have a service that can provide an SSH socket based on a given socket-binding?<br>
<br>
What mina is doing should be done by an AS7 service. Karaf could then use a SSHSocketProviderService that abstracts the details of how this socket is provided/configured.<br>
AS7 must be in control of creating that socket based on its configuration.<br>
<br>
cheers<span class="HOEnZb"><font color="#888888"><br>
--thomas</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 09/13/2012 05:38 PM, Nodet, Guillaume wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What do you mean by &#39;socket-binding&#39; ?<br>
The goal is not to bridge to the OS ssh server, but to start a java<br>
ssh server inside AS7 using Apache Mina SSHD.<br>
<br>
On Thu, Sep 13, 2012 at 5:16 PM, Tomaž Cerar &lt;<a href="mailto:tomaz.cerar@gmail.com" target="_blank">tomaz.cerar@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That is an option,<br>
but you need to use socket-binding to do that.<br>
<br>
--<br>
tomaz<br>
<br>
On Thu, Sep 13, 2012 at 3:14 PM, Thomas Diesler &lt;<a href="mailto:thomas.diesler@jboss.com" target="_blank">thomas.diesler@jboss.com</a>&gt;<br>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Folks,<br>
<br>
<a href="https://issues.jboss.org/browse/AS7-5544" target="_blank">https://issues.jboss.org/<u></u>browse/AS7-5544</a><br>
<br>
We like to integrate Apache Karaf with AS7. For that we need to open an<br>
additional SSH socket.<br>
Is that an option?<br>
<br>
cheers<br>
-thomas<br>
<br>
--<br>
xxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>
Thomas Diesler<br>
JBoss OSGi Lead<br>
JBoss, a division of Red Hat<br>
xxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>
<br>
<br>
______________________________<u></u>_________________<br>
jboss-as7-dev mailing list<br>
<a href="mailto:jboss-as7-dev@lists.jboss.org" target="_blank">jboss-as7-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/jboss-as7-dev</a><br>
<br>
</blockquote></blockquote>
<br>
<br>
</blockquote>
<br>
-- <br>
xxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>
Thomas Diesler<br>
JBoss OSGi Lead<br>
JBoss, a division of Red Hat<br>
xxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>
<br>
</div></div></blockquote></div><br>