Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Ineed to load some data into Windchill at every specified time interval (say every 2 minutes) by executing a loader utility.The possible solutions could be to use a Windchill schedule queue (or) an Unix Cron job. However I am not sure which one to use for my need.
I understand that Unix cron job gives a better performance as its execution is managed outside Windchill;howeverit requires Windchill authentication information to be passed (as hardcoded values) as arguments to the loader utility.
Any suggestion on this is highly appreciated.
Thanks.
Both work, but there are some advantages from running as a Windchill Queue
- You have a UI to see the state of the queue, stop it, restart it etc.
- You can run in the same JVM which willbe the background MS (I am guess the loadfromfile runs foreground by default
- If Windchill shutsdown so does the queue however the CRON will keep executing
- You are not passing the password (someone changes it you will have to change your cron job too)
Just some things to note
hello folks,
I have the same requirement but i dont know which method should i use for running my utility.
I tried the belowsolutions,
1.I have written a service class and registered with wt.properties. This service is started when the method server is starting. I try to get the method context but it says that " no active context".
2. I have written a utility class but i need to start it manually from widchill shell.
Is there any better way to achieve the solution for this problem?
I have no knowledge about widchill scheduler. But i heard that this will also help me.
Can anyone suggest me the best solution to start the utility after method server is started?
Thanks
Selva