Is there any way to directly run a Java server method on a specific Docbase service instance (in HA setup)?
I have a workaround with a job set up to run on designated target server, however I want to execute a method instantly via the “EXECUTE do_method…” call for example, instead of relying on the agent exec scheduler.
The answer depends on what you are really want to achieve, let’s explain. When you are executing docbase method (next discourse is about Java methods only) there are at least three participants:
- Content server which sends http request to JMS and waits for response – your current session
- JMS instance that executes you docbase method – in normal situation content server always prefers “embedded” JMS instance
- Content serves JMS instance connects to – it depends on how your docbase method is written (for example in case of workflow and job methods content server provides -docbase_name argument using <docbase>.<server> form, so it binds JMS instances to specific content server
As regards to your problem…
If you want to stay within “EXECUTE do_method…” the answer is: “No, you can’t influence on how content server selects JMS instance, if you want to execute docbase method on specific JMS you need to connect to corresponding content server”.
However, if your objectives are something like “We need to execute com.documentum.fc.methodserver.IDfMethod on specific JMS instance”, the answer is “Yes, it is possible:
app_server_name : do_method
: heavy_proc <- this one runs the show
app_server_uri : http://localhost:9080/DmMethods/servlet/DoMethod
~]$ nc -l 8888
... waiting ...
~]$ nc -l 8888
POST / HTTP/1.1
User-Agent: Documentum Server 7.2.0030.0195 Linux64.Oracle (HTTP Client)