WireBox

I am using Wirebox.cfc to create a map to my local java client as noted below.

map(“GraphAPI”).toJava(‘simpleclient.Client’).initWith(getColdbox().getSetting(‘rmiTarget’));

However, my client is trying to connect to an RMI - its throwing an error back to coldfusion because my RMI Server isn’t running. However, I am unable to catch the error and its breaking several aspects of my program when my RMI server isn’t running.

Is there anyway to handle errors when Wirebox wires up external resources like my Java Client?

When my RMI Server is running there is no problem, its just when I shut it down and my local simpleclient.Client isn’t able to connect when the error is thrown.


Jeremy R. DeYoung
Phone: 615.261.8201

FacebookLinkedInGoogle ReaderTwitterAmazonGoogle
RantsFromAMadMan.com

I don’t understand, when are you calling or retrieving the client? Are you getting an error, where is the stacktrace. Please rephrase your problem.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Luis thanks for your help! I ended up updating some of my java RMI client code to support catching the error to prevent coldfusion from having to handle the problem! It works perfectly now!


Jeremy R. DeYoung
Phone: 615.261.8201

FacebookLinkedInGoogle ReaderTwitterAmazonGoogle
RantsFromAMadMan.com