You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2008/05/16 09:55:43 UTC
[jira] Created: (SMX4KNL-36) Investigate having a different
bootstrap mechanism for a remote client to not start all the bundles
installed (maybe by not using osgi)
Investigate having a different bootstrap mechanism for a remote client to not start all the bundles installed (maybe by not using osgi)
---------------------------------------------------------------------------------------------------------------------------------------
Key: SMX4KNL-36
URL: https://issues.apache.org/activemq/browse/SMX4KNL-36
Project: ServiceMix Kernel
Issue Type: Improvement
Reporter: Guillaume Nodet
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMX4KNL-36) Investigate having a different
bootstrap mechanism for a remote client to not start all the bundles
installed (maybe by not using osgi)
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4KNL-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet updated SMX4KNL-36:
-----------------------------------
Fix Version/s: 1.1.0
> Investigate having a different bootstrap mechanism for a remote client to not start all the bundles installed (maybe by not using osgi)
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4KNL-36
> URL: https://issues.apache.org/activemq/browse/SMX4KNL-36
> Project: ServiceMix Kernel
> Issue Type: Improvement
> Reporter: Guillaume Nodet
> Fix For: 1.1.0
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SMX4KNL-36) Investigate having a different
bootstrap mechanism for a remote client to not start all the bundles
installed (maybe by not using osgi)
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4KNL-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet resolved SMX4KNL-36.
------------------------------------
Assignee: Guillaume Nodet
Resolution: Fixed
Sending assembly/pom.xml
Adding client
Adding client/pom.xml
Adding client/src
Adding client/src/main
Adding client/src/main/java
Adding client/src/main/java/org
Adding client/src/main/java/org/apache
Adding client/src/main/java/org/apache/servicemix
Adding client/src/main/java/org/apache/servicemix/kernel
Adding client/src/main/java/org/apache/servicemix/kernel/client
Adding client/src/main/java/org/apache/servicemix/kernel/client/Main.java
Adding client/src/main/resources
Adding client/src/main/resources/client.login.conf
Sending pom.xml
Transmitting file data .....
Committed revision 697688.
> Investigate having a different bootstrap mechanism for a remote client to not start all the bundles installed (maybe by not using osgi)
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4KNL-36
> URL: https://issues.apache.org/activemq/browse/SMX4KNL-36
> Project: ServiceMix Kernel
> Issue Type: Improvement
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Fix For: 1.1.0
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4KNL-36) Investigate having a different
bootstrap mechanism for a remote client to not start all the bundles
installed (maybe by not using osgi)
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4KNL-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45803#action_45803 ]
Guillaume Nodet commented on SMX4KNL-36:
----------------------------------------
The remote client can be used this way. We really should provide an enhanced version of this class to be run from a simple batch script to avoid booting the whole OSGi framework.
{code}
package org.apache.geronimo.gshell.spring;
import java.net.URI;
import java.util.List;
import java.util.LinkedList;
import org.apache.geronimo.gshell.whisper.transport.TransportException;
import org.apache.geronimo.gshell.whisper.transport.TransportFactoryLocator;
import org.apache.geronimo.gshell.whisper.transport.TransportFactory;
import org.apache.geronimo.gshell.whisper.transport.tcp.SpringTcpTransportFactory;
import org.apache.geronimo.gshell.whisper.stream.StreamFeeder;
import org.apache.geronimo.gshell.remote.crypto.CryptoContext;
import org.apache.geronimo.gshell.remote.client.RshClient;
import org.apache.geronimo.gshell.remote.client.handler.EchoHandler;
import org.apache.geronimo.gshell.remote.client.handler.ClientMessageHandler;
public class RemoteConsoleTest {
public static void main(String[] args) throws Exception {
CryptoContext context = new CryptoContext("RSA", null);
List<ClientMessageHandler> handlers = new LinkedList<ClientMessageHandler>();
handlers.add(new EchoHandler());
RshClient client = new RshClient(context, new Locator(), handlers);
client.initialize();
client.connect(new URI("tcp://127.0.0.1:8101/"), new URI("tcp://0.0.0.0:0"));
System.out.println("Connected");
client.login("smx", "smx");
System.out.println("Logged in");
StreamFeeder outputFeeder = new StreamFeeder(client.getInputStream(), System.out);
outputFeeder.createThread().start();
client.openShell();
System.out.println("Shell openened");
client.execute("osgi list");
client.closeShell();
client.close();
System.exit(0);
}
private static class Locator implements TransportFactoryLocator {
SpringTcpTransportFactory factory = new SpringTcpTransportFactory();
public TransportFactory locate(URI arg0) throws TransportException {
return factory;
}
}
}
{code}
> Investigate having a different bootstrap mechanism for a remote client to not start all the bundles installed (maybe by not using osgi)
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4KNL-36
> URL: https://issues.apache.org/activemq/browse/SMX4KNL-36
> Project: ServiceMix Kernel
> Issue Type: Improvement
> Reporter: Guillaume Nodet
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.