OK, found out what was wront. I forgot to add the
container to the list of servers... Everything works
as expected now :-)

Kyrre

--- Kyrre Kristiansen <[EMAIL PROTECTED]>
wrote:

> Hello, all.
> 
> I've finished updating the code to b19, and things
> are
> looking good. I quite like the splitting of the Call
> class to Request and Response, IMO it makes it more
> visible which part of the call you're working on, in
> particular if you have a server that does several
> client calls. Nice move.
> 
> Anyway. I am using the Simple server, doing all the
> grunt work and starting the container in the main()
> method. However, when I try to start it, it just
> continues and "falls off" the main method, in other
> words stopping again at once.  
> To explain, the main method looks like this:
> 
> Container container = new Container();
> RssApplication application = new
> RssApplication(container);
> container.getDefaultHost().attach("",application);
> try {
>     container.start();
> } catch (Exception e) {
>     e.printStackTrace();
> }
> System.out.println("Falling off the end!!!");
> 
> 
> The program just prints out the final message and
> terminates. Have I missed something here? I've
> noticed
> that the example of starting a server from the main
> method is gone from the web page...
> 
> 
> Regards,
> Kyrre
> 
> Send instant messages to your online friends
> http://uk.messenger.yahoo.com 
> 


------------------------------------------------------------
Kyrre Kristiansen

Send instant messages to your online friends http://uk.messenger.yahoo.com 

Reply via email to