Thanks Factory<Command>::start() is certainly a better place to do this.

IoHandler::sessionCreated(IoSession session) would be risky if it took too long 
to fetch the actual banner data.

Thanks
Farooq

> -----Original Message-----
> From: Guillaume Nodet [mailto:[email protected]]
> Sent: Wednesday, June 13, 2012 5:07 PM
> To: [email protected]
> Subject: Re: Best way to display a Welcome Banner
> 
> That's usually done after authentication when the shell is created, and the
> shell should be responsible for that.
> That's how it works in unix.  We've done that in Karaf using the same
> mechanism.
> 
> Usually, you'd write your own Factory<Command> for your shell, and in the
> shell start method, you can easily grab the output stream and write anything
> you want to it.
> 
> On Wed, Jun 13, 2012 at 1:29 PM,  <[email protected]> wrote:
> > Hi,
> >
> > I want the ability to display a Welcome/Login banner with Mina SSHd. I
> think I could do it in the IoHandler::sessionCreated(IoSession session)
> method.
> >
> > But this would be displayed after the user has logged in successfully.
> >
> > Is there a better way to achive this? Does anyone know how I might be
> able to do it even before a authentication is attempted.
> >
> > Thanks
> > Farooq
> 
> 
> 
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> FuseSource, Integration everywhere
> http://fusesource.com

Reply via email to