Shared object definition

The client application uses a shared object called uo_sharedobject to communicate with the EAServer component. The shared object has a single function called RetrieveData.

Instance variables

The uo_sharedobject object has these instance variables defined:

uo_employee iuo_employee
n_jagclnt_connect myconnect

Constructor event

The Constructor event uses a custom Connection object called n_jagclnt_connect to connect to the server. Then it creates an instance of the EAServer component:

long ll_rc, ll_rv
myconnect = create n_jagclnt_connect
ll_rc = myconnect.ConnectToServer()
ll_rv = myconnect.CreateInstance(iuo_employee, &
	"uo_employee")

RetrieveData function

The RetrieveData function makes a synchronous call to the RetrieveData function on the EAServer component. When the function completes processing, it calls the Notify function on the callback object, passing it the DataWindow Blob returned from the server component.

The RetrieveData function takes an argument called auo_callback, which is of type uo_callback:

blob lblb_data
long ll_rv
ll_rv = iuo_employee.retrievedata(lblb_data)
auo_callback.notify(lblb_data)
return ll_rv