|
From: Bud B. <bu...@ba...> - 2007-03-16 16:14:43
|
Sorry, I have been away from this for a while. Interestingly enough, = just adding "-Dcom.sun.management.jmxremote" to the VM arguments seemed to = change the behavior and now it works as expected under both the debugger and = when just running it within Eclipse (Windoze xp, Eclipse 3.2.2, Java = 1.5.0_11). Bizarre. Thanks. -- Bud -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of = Steve Bate Sent: Friday, March 09, 2007 5:11 PM To: qui...@li... Subject: Re: [Quickfixj-users] Different results under Eclipse Run vs = Debug QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Bud, I don't know any reason why System.in.read() would block the session = logon. You could run your application in Java 5 or 6, connect with JConsole and look at the thread state. That would probably give you a good idea of = the cause of the blocking. With Java 6 you don't need any special system properties to enable the JMX access to the JVM platform MBeans from JConsole. Just run normally from Eclipse, start JConsole, and connect to your process. With Java 5 you need to add -Dcom.sun.management.jmxremote = to your VM arguments. Steve > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > I'm experiencing some weirdness running my application within Eclipse. = > When I run under the debugger (Debug As...), my application works as I = > expect. When I call initiator.start(), quickfixj initiates a logon to=20 > the counterparty and everything seems to go well. When I run the=20 > application (Run As...), the session appears to start but quickfixj=20 > does not initiate a > login sequence. Is it something to do with the blocking call to > System.in.read() after I start the initiator? > > initiator =3D new ThreadedSocketInitiator(application, > messageStoreFactory, settings, logFactory, messageFactory); > > initiator.start(); > > System.out.println("press <enter> to quit"); > System.in.read(); > > initiator.stop(); > > System.exit(0); > > > Thanks. -- Bud > > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to = share > your > opinions on IT & business topics through brief surveys-and earn cash > = http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share = your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV _______________________________________________ Quickfixj-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfixj-users |