Skip to main content
12-Amethyst
December 28, 2023
Question

How to call a windchill class from a remote machine

  • December 28, 2023
  • 4 replies
  • 1401 views

I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.0.1

I have a custom windchill java class(contain code to fetch epmdocuments and its attributes). i m invoking this class from another class that has RemoteMethodServer RMI invoke code. All these files are deployed inside codebase location on windchill server.
Now my question is,
1. I want to call this java class(which has RMI invoke code) from another remote machine using a .bat script. So that I can execute custom Windchill class remotely. How can I achieve this?

4 replies

20-Turquoise
December 28, 2023

If you have a linux client and a linux server you can simply use ssh. If you have Windows on either end then I don't know. Somebody probably will.

18-Opal
January 4, 2024

Hello NP_10570407,
You're looking for information regarding Windchill, thanks for reaching out, this is Charles from PTC Technical Support in Europe. I will provide you assistance on this question. 
Can you review kb articles CS254928 and CS254321.
I guess it is also possible to write an I*E task that will call the customized class. See Apply-Service webject.

KR,

Charles.

avillanueva
23-Emerald I
23-Emerald I
January 4, 2024

Is RMI the right way to go now a days? I think it might be better to create a web call or REST service to get the data you need. 

12-Amethyst
January 5, 2024

Thanks for the responses guys.. will try those options..