Showing results for 
Search instead for 
Did you mean: 

Java DC calling Operation on Entity Service

0 Kudos

I have three entities (Entity Services) and one Application Service.

Application Service needs a operation to pull data from each entity based on the input parameter (name, type String).

The operation, builds an object with attributes from all three entities, and returns that newly created object.

I have a Java DC, that's going call this operation on the Application Service.

Question: How Java DC would know the object type of the object returned by the operatio on the custom operation on the Application Service?

Is it possible to do something like this or is there a better way to do this?

BTW, This Java DC is being used as Callable Object in GP.

Can I create a Service Endpoint for the Application Service and build the Callable Object directly against the Application Service. Then how to invoke method on the Application Service? How to handle the Object returned by the Application Service method?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

At first, I'd say you shouldn't be needed a java dc with gp interface if you have a CAF application service.

GP has a CO for CAF application service you can use out of the box to reference a method of an application service you've deployed on your server. Pretty straight forward. No need of endpoint if service is deployed locally.

That is assuming you don't have any particular requirements I'm not aware of here.

0 Kudos

For some reason the CAF Entity service was corrupt and because of that I was not able to build the CO for CAF Application service.

Let's assume there is a requirement to call CAF Entity Service from Java DC. I guess, since CAF Entity Service is a Session Bean, need to get local home of the bean and create Entity Service object and then invoke methods on it.