Am 01.03.2023 12:15, schrieb André Rothe via Webobjects-dev:

Can I get the instance number of the own WO application?

I found

http://localhost:1085/cgi-bin/WebObjects/wotaskd.woa/wa/woconfig

which is accessible without credentials and returns an XML with the instance number. This URL I can access from my application. The wotaskd port number is defined by WOApplication.lifebeatDestinationPort(). The first part of the URL you can get from WOApplication.cgiAdaptorURL(), which you can enhance by the lifebeat port and the rest of the path.

The XML can be queried by XPath and be filtered by the application name and port (WOApplication.port(), WOApplication.name()) to find the right instance id. Seems to work on my installation.

André

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to