Siebel Java Business Service in fact is a very powerful feature that allows easy integration with any Java packages and provides functionality within Siebel environment. Try to imagine that you'll able to:
Perform asynchronous operations using thread paradigm
Create mechanism of effective callback without context
Create additional graphic elements using SWING or anything else
Implement effective client/server mechanism etc...Example of implementation:package com.mycompany.jbs;import com.siebel.data.SiebelPropertySet;import com.siebel.eai.SiebelBusinessServiceException;public class AddBusinessService extends com.siebel.eai.SiebelBusinessService {public void doInvokeMethod(String methodName, SiebelPropertySet input,SiebelPropertySet output) throws SiebelBusinessServiceException {String a = input.getProperty("a");String b = input.getProperty("b");if (a == null a.equals("") (b == null) b.equals(""))throw new SiebelBusinessServiceException("NO_PAR", "Missing param");if (!methodName.equals ("GetSum"))throw new SiebelBusinessServiceException("NO_SUCH_METHOD", "No such method");else {int a = 0;int b = 0;try {a = Integer.parseInt(X);b = Integer.parseInt(Y);}catch (NumberFormatException e) {throw new SiebelBusinessServiceException("NOT_INT", "Non-integer passed");}int result = a + b;output.setProperty("result", new Integer(result).toString());}}}Due to actual neediness of Java runtime in Siebel environment, the usage of such an ability becomes to be relatively easy. Maybe the main drawback is managing of Java sub-system in distributed Siebel environment.
No comments:
Post a Comment