Hi William,
Is it possible to get a stack trace for the process that hangs? I have
been told that (ctrl + Break) should do it.
If so i can pass that information on to the JDK team to investigate further.
Paul.
William Brogden wrote:
>
> So the villain is System.in.read - I am surprised.
>
> Here is what I used to get it running!!
>
> System.out.println("Server running");
> System.out.println("Visit:
> http://localhost:9998/matching/domain/word");
> System.out.println("Hit ^C to stop...");
> boolean running = true ;
> while( running ){
> try { // sleep one second
> Thread.sleep( 1000 ) ;
> }catch( InterruptedException e ){
> System.out.println("Interrupted");
> running = false ;
> }
> }
>
> -------------
> ^C just kills the whole thing, the System.out.println("Interrupted")
> never runs so I suppose I could have just used sleep with a really long
> value.
>
> Bill
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109