Create Java functions by adding this code to your application:
/** Called by ODL and receives a custom argument wrapper.
* It <code>erms</code> out the field value.
*/
public int myJavaFunctionCalled(PluginSampleArgumentsWrapper Args){
super.erm("Function myJavaFunctionCalled received: " + Args.field);
return 1;
}
Start the Configurator.
Right-click a Controller an select New | Java from the menu.
Double-click the new Java icon in the right pane. When the Java Properties window displays, select the General tab, then select Debug and Active. Leave the Tracking option unselected.
Complete the remaining options on the General tab:
Name – JAVA
Working Directory – enter a dot (.) for the current directory.
Plugin Class Name – samples.plugin.PluginDelAimSample
Command Line – leave this field blank.
Log Limit – 2048
Depth – 1
Class Path items – enter “../classes
” in
the Name field, then click Add.
Instances – enter 1
for
Minimum and Maximum.
Custom Keys – leave this option blank.
Click Apply.
Select the DFC tab in the Java Properties window and add these two functions:
Name – servproc
Flavor – 6
Timeout – 10
Click Add.
Name – servayt
Flavor – 6
Timeout – 10
Click Add, then click OK.
Any e-Biz Impact application can call the added functions.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |