Author Topic: Is it necessary to have the EXIT programs in C?  (Read 2600 times)

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
Is it necessary to have the EXIT programs in C?
« on: December 20, 2011, 11:09:01 PM »
Hi

Is it necessary to have the exit program in C.
Can it not be done with java code?

Thanks
Pankaj.

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • Tenacious Consulting
Re: Is it necessary to have the EXIT programs in C?
« Reply #1 on: December 21, 2011, 05:07:20 AM »
It might be possible, but I haven't seen any examples, and it would likely be extremely slow compared to C.  I'm not very familiar with Java, but wouldn't you need to load an instance of the JVM each time?  That would slow down your retrievals dramatically.  If there were a large number of accesses in a short period of time, you would not only slow down the server while it loads up multiple JVMs, I can imagine that it would be easy to use up all the RAM in the server very quickly.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
Re: Is it necessary to have the EXIT programs in C?
« Reply #2 on: December 21, 2011, 07:09:37 AM »
Hello Pankaj,

what I do normally is to have a basic C for the exit, then I call a shell script.
It's quite quick, and never had real performance problem.

But it depends on what you want to perform.

If you need speed, then there is no way around than C.

Java, as Justin said... is nice... but for user exit... this is overkill.
Even the CMOD Developpers have changed from Java to C/C++ for the ARSXML tool starting with CMOD 8.5.
Why? Performance problems, memory problems...

Each Programming language has its strength, and weakness. We just need to know them and use them accordingly.

Sincerely yours,
Alessandro

Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML