Matt,
Does your device use dhcp or some other means to set the ip? If you can the
ip from an environment variable, then I think you can set the
osgi.shell.telnet.ip=${env.variable}. Not sure of the exact syntax though,
maybe someone else can help?
Allen
On Tue, Sep 29, 2009 at 5:35 PM, Matt Tennant <[email protected]> wrote:
>
> Hi Allen,
>
> Thanks, I guess I misunderstood how that property works. Setting the value
> at startup fixed the problem.
>
> Does this mean the only two valid values for this property are either
> 127.0.0.1 or the external ip address of the host device? One or the other,
> right? If so, is there a better way to specify the "other", in this case?
> It's a bit inconvenient to determine the appropriate IP address at startup
> time, especially with the limited shell utilities available on our host
> device. Alternatively, I could force the remote shell bundle to start up
> only after another bundle has programatically set osgi.shell.telnet.ip, but
> that is a bit hokey.
>
> Or am I totally missing something?
>
> Thanks,
> Matt
>
>
> ----- Original Message -----
> From: "Allen Lau" <[email protected]>
> To: [email protected]
> Sent: Tuesday, September 29, 2009 4:37:46 PM GMT -08:00 US/Canada Pacific
> Subject: Re: Failing to use remote shell
>
> Did you happen to set the
> "osgi.shell.telnet.ip" to an ip other than 127.0.0.1?
>
> Otherwise, you can only telnet to the server from the local machine where
> Felix was started.
>
> On Tue, Sep 29, 2009 at 4:22 PM, Matt Tennant <[email protected]> wrote:
>
> > Hi all,
> >
> > I've been trying to use the Apache Felix Remote Shell (as described at
> > http://felix.apache.org/site/apache-felix-remote-shell.html) in our
> > application. A partner of ours had it working, and it looks like a great
> > feature. However, it isn't working out of the box for me.
> >
> > I am using a Felix 1.8.0 framework download.
> >
> > I have these jars included in my bundles:
> > org.apache.felix.shell-1.2.0.jar
> > org.apache.felix.shell.remote-1.0.4.jar
> >
> > I have these lines included in my config.properties:
> > osgi.shell.telnet=on
> > osgi.shell.telnet.port=6666
> > osgi.shell.telnet.maxconn=2
> > osgi.shell.telnet.socketTimeout=0
> >
> > I've noticed that the first line (osgi.shell.telnet=on) is not mentioned
> in
> > the reference I linked above, but it is in the config.properties of our
> > partner. I've tried both with and without that line. I've also tried
> > specifying that value at the command line rather than in
> config.properties.
> > There seems to be no effect.
> >
> > When it's running, the window that launched Felix (if it was launched
> > interactively at all), can use the Felix shell just fine. But telnet to
> > port 6666 is rejected (connection refused). I've tried telneting from
> linux
> > and from Windows using Putty.
> >
> > I know this doesn't seem like a lot to go on, but the feature is so
> simple
> > that I'm not sure what other details to add. If anyone can help, or ask
> > clarifying questions that might help, I would appreciate it!
> >
> > Thanks,
> > Matt
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>