Thomas,
we do have socket-binding service that provides/injects requested socket binding into your service.
All you need to do is to define your own Service that field of type InjectedValue<SocketBinding> binding
and then you can just inject socket binding like this:
final ServiceBuilder<MyService> serviceBuilder = context.getServiceTarget().addService(MyServiceName.append(name), service)
.addDependency(SocketBinding.JBOSS_BINDING_NAME.append(bindingRef), SocketBinding.class, service.getBinding());
where bindingRef is name of socket-binding in standalone.xml (or mgmt model)
Hope that answered your question. or did i misunderstood it...
--
tomaz
Tomaz,
do we have a service that can provide an SSH socket based on a given socket-binding?
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.
AS7 must be in control of creating that socket based on its configuration.
cheers
--thomas
On 09/13/2012 05:38 PM, Nodet, Guillaume wrote:
What do you mean by 'socket-binding' ?
The goal is not to bridge to the OS ssh server, but to start a java
ssh server inside AS7 using Apache Mina SSHD.
On Thu, Sep 13, 2012 at 5:16 PM, Tomaž Cerar <tomaz.cerar@gmail.com> wrote:
That is an option,
but you need to use socket-binding to do that.
--
tomaz
On Thu, Sep 13, 2012 at 3:14 PM, Thomas Diesler <thomas.diesler@jboss.com>
wrote:
Folks,
https://issues.jboss.org/browse/AS7-5544
We like to integrate Apache Karaf with AS7. For that we need to open an
additional SSH socket.
Is that an option?
cheers
-thomas
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx