Creating a plug-in application  Using DfcProxy and DfcSfmProxy for remote access

Chapter 3: Java Support Samples

Creating a Java application using the Configurator

  1. 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;
    
    }
    
  2. Start the Configurator.

  3. Right-click a Controller an select New | Java from the menu.

  4. 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.

  5. Complete the remaining options on the General tab:

    Click Apply.

  6. Select the DFC tab in the Java Properties window and add these two functions:

    servproc

    Click Add.

    servayt

  7. Click Add, then click OK.

Any e-Biz Impact application can call the added functions.





Copyright © 2005. Sybase Inc. All rights reserved. Using DfcProxy and DfcSfmProxy for remote access

View this book as PDF