<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Yes, I know that part.<br>
<br>
Can I use SocketBinding.createServerSocket() to get an ready
configured SSH socket that I can give to Karaf? <br>
How does this integrate with the security layer?<br>
<br>
</tt>
<div class="moz-cite-prefix">On 09/13/2012 05:51 PM, Tomaž Cerar
wrote:<br>
</div>
<blockquote
cite="mid:CAMquZP7BPmH6N9SUZW_v8qAUkAY8FfKrWM5AePX8ATWKMCL5yg@mail.gmail.com"
type="cite">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<SocketBinding> binding<br>
<br>
and then you can just inject socket binding like this:<br>
<br>
final ServiceBuilder<MyService> 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"><<a moz-do-not-send="true"
href="mailto:thomas.diesler@jboss.com" target="_blank">thomas.diesler@jboss.com</a>></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 'socket-binding' ?<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 <<a
moz-do-not-send="true"
href="mailto:tomaz.cerar@gmail.com" target="_blank">tomaz.cerar@gmail.com</a>>
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 <<a
moz-do-not-send="true"
href="mailto:thomas.diesler@jboss.com"
target="_blank">thomas.diesler@jboss.com</a>><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 moz-do-not-send="true"
href="https://issues.jboss.org/browse/AS7-5544"
target="_blank">https://issues.jboss.org/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>
_______________________________________________<br>
jboss-as7-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:jboss-as7-dev@lists.jboss.org"
target="_blank">jboss-as7-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev"
target="_blank">https://lists.jboss.org/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>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
</pre>
</body>
</html>