Discussion:
Deprecated methods
(too old to reply)
d***@blueyonder.co.uk
2007-01-25 16:42:21 UTC
Permalink
Hi all,

Developing in WC 6.0 EE, method commandContext.getRemoteAddr() is deprecated, according to documentation you now use AuditContext / TransportData to get the IP, how do you get these from a Command then?

Dave
geo
2007-02-21 02:24:52 UTC
Permalink
why not use the deprecated method? we still use some old command line
routines from the WC 5.1 days that have deprecated methods that still work
today. I can appreciate being extra efficient, but if you have something
that works and does not cost performance or otherwise we just typically use
it.

Since it seems chumpy not to answer your question anyway and let you decide.

AuditContext ac = new AuditContext();
ac.getTransportData().getRemoteAddress();
Post by d***@blueyonder.co.uk
Hi all,
Developing in WC 6.0 EE, method commandContext.getRemoteAddr() is
deprecated, according to documentation you now use AuditContext /
TransportData to get the IP, how do you get these from a Command then?
Dave
Continue reading on narkive:
Loading...