Calling a java program during indexing.

Previous topic - Next topic

pankaj.puranik

If you do not have C coding skills, you might accomplish the similar of an ACIF indexer user exit (which is writent in C) by calling a java code.
This could be done by specifying the commend (java ClassName) in the 'Postprocessor Parameters' in the Load Information tab in Application. The java class should be placed in a directory that CMOD can access.

Justin Derrick

I can't imagine that this would perform terribly well.  What's the reason for calling Java?  What functionality are you trying to achieve that can't be done in C?
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

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

Alessandro Perucchi

Quote from: pankaj.puranik on August 21, 2012, 10:56:59 AM
If you do not have C coding skills, you might accomplish the similar of an ACIF indexer user exit (which is writent in C) by calling a java code.
This could be done by specifying the commend (java ClassName) in the 'Postprocessor Parameters' in the Load Information tab in Application. The java class should be placed in a directory that CMOD can access.

Hello Pankaj,

You can use that method to use any languages, from Perl, Python, Java, C, C++, Java, etc... you name it.

Now I'm not sure Java is the best option, since to run it it takes a lot of memory and need a long initialization time, then it can be as fast as C.
So running Java every time you do an indexer, it might be ok or not depending on how much documents you need to index at the same time.

As always, the person to implement sur hybrid solution, one must test and especially check if the speed impact is relevant or not.

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

pankaj.puranik

JD, we have scenarios here where we do not have C Programmers.
Only in such case should someone use Java.

No doubt C would perform much much better than java.

Lars Bencze

Pankaj, do you have an example of a working Postprocessor command which you can include here?
Do you just type (for example) C:\myjavaappfolder\myjavaapp.jar in the field, and that's it?
OnDemand for MP expert. #Multiplatforms #Admin #Scripts #Performance #Support #Architecture #PDFIndexing #TSM/SP #DB2 #CustomSolutions #Integration #UserExits #Migrations #Workflow #ECM #Cloud #ODApi