Thanks Jeff, you're a star. I'll have a go at this. For debugging I have been looking at the Eclipse wtp all-in-one package which claims to be the dev environment for App Server code. I just downloaded it from Eclipse and was planning on rebuilding today. If I turn anything useful up I'll let you know.
IOU <insert beverage of your choice here> :-) SP --- In flexcoders@yahoogroups.com, "Jeff Vroom" <[EMAIL PROTECTED]> wrote: > > I personally attach to the server after it is started. It is a pain to > specify all of the jar files and keep that up to date in my case since > the jars change a lot (though I have gotten that to work too...). > > > > Unfortunately the exact way is dependent on the app server and I am > still using jrun (yeah, been meaning to switch for a while!) > > > > For Jrun, I add this to the standard java command line args it uses: > > > > -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=2005 > > > > Then my eclipse debug target is created from the "Remote Java > Application" configuration. I specify localhost and 2005 for server and > port. > > > > Debug logging on the server is in WEB-INF/flex/services-config.xml. > Search for level=, change that to Debug. Make sure that "Message.*" and > DataService.* are in the patterns. I personally don't like the > "Endpoint.*" unless I'm debugging serialization problems since it is > pretty verbose and duplicates a lot of the Message.* stuff. > > > > On the client, you can use the <mx:TraceTarget/> in your MXML. It goes > to flashlog.txt - same place as the "trace" statement output. > > > > Jeff > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of simonjpalmer > Sent: Monday, February 05, 2007 4:53 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: FDS DataService.commit() doesn't trigger > responder result()...? > > > > No answer unfortunately, but I do have two questions... > > 1) how do you manage to debug your server side jave code? I am > running under JBoss and using Eclipse as my IDE for both Java and > FlexBuilder and I can't figure out how to set breakpoints in my Java > code or attach a debugger to the server. > > 2) how do you switch on the FDS logging? > > not the response you were hoping for I am sure, but you would be > helping a fella out :-) > > SP > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "parkerwhirlow" <parkerwhirlow@> > wrote: > > > > Hi again, > > > > I've got a simple save case working as far as I can tell (from > > debugging the server java side, everything is OK after leaving the > > HibernateAssembler.java updateItem() method. > > > > But the result never gets back to the client... I have a responder > > registered to the call like so: > > > > call = service.commit(); > > call.action = "save"; > > call.addResponder(responder); > > > > And my responder has both fault and result methods. I know the > > responder is registered because I was getting faults for a long time, > > and those were firing the fault handler. But now that I think I have > > the save going successfully, I'm not getting anything back. > > > > I've turned on FDS logging for messages, see the trace below. Seems > > like the "ACK" message is being sent... > > > > Any ideas? > > > > thanks, > > PW > > > > > > 02/05 11:01:36 user [Flex] 11:01:36.794 [DEBUG] > > [Message.Data.transacted] After invoke service: data-service > > reply: Flex Message (flex.messaging.messages.AcknowledgeMessage) > > clientId = null > > correlationId = null > > destination = null > > messageId = 7793A2C0-FA0D-5A78-3641-BB1BA4B4ADB5 > > timestamp = 1170702096794 > > timeToLive = 0 > > body = > > [ > > > > ] > > > > 02/05 11:01:36 user [Flex] 11:01:36.794 [DEBUG] [Endpoint.RTMP] > > Serializing AMF/RTMP response > > Version: 3 > > (Command method=_result (0) trxId=20) > > (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage') > > destination = null > > headers = (Object #1) > > correlationId = "322C326C-9C96-8513-7EC3-934715E5D887" > > messageId = "7793A2C0-FA0D-5A78-3641-BB1BA4B4ADB5" > > timestamp = 1.170702096794E12 > > clientId = "77909013-D108-A13B-EC7E-EDBFA5C3A894" > > timeToLive = 0.0 > > body = (Array #2) > > >