cancel
Showing results for 
Search instead for 
Did you mean: 

Call Java proxies within Adapter module

Former Member
0 Kudos

Hi Experts,

In our projects there is requirement to call Java proxies from file Adapter module to achieve the required functionality. Could anyone let me know whether it is possible to call the Java proxies from Adapter module if yes please guide me.

Thanks

Regards,

Ashwin

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ashwin,

As mentioned earlier, an Adapter module is a Java bean(EJB) and generated java proxies are also java benas (EJBs), so from one java EJB, you can call other java EJB methods or APIs.

So it's possible to call java proxy code from an adapter module.

Thanks,

RK

Shabarish_Nair
Active Contributor
0 Kudos

calling a java proxy from within a adapter module doesnt seem possible.

You might want to redesign your requirement. Can you share more details?

Former Member
0 Kudos

Hi,

our requirement is as below:

We have flat files (three level structure file) coming into XI. We are using adapter module to validate the file at different levels and dump the validated data into Data Base. In our case there are different secnario's (around 11 secnario's) to which data needs to be sent depending on conditions once validation is completed, so we thought to call Java proxies from module to send data to different secnario's and process further.

One more thing the data volume is very high so we considered dumping into Data base instead of holding the data in memory.

Regards,

Ashwin

former_member854360
Active Contributor
0 Kudos

Hi,

You can divide your interface in multiple Scenarios .

create another scenario java client proxy to your target application.

Former Member
0 Kudos

Hi,

The requirement is to process the data in the database online (immediately) rather than polling the database through the adapter. We will modularise but want to know whether it is possible to Java proxies from adapter module or not.

Regards,

Ashwin

former_member854360
Active Contributor
0 Kudos

Hi,

Its very much possible.

Refer this.

http://www.saptechnical.com/Tutorials/XI/Proxy/Index.htm

From JSP page we can trigger a clent java proxy.

Yo can do the same code in your module also.

Former Member
0 Kudos

Hi Ashiwn,

Yes, it's possible to call java proxies using Adapter Module. An adapter module is nothing but a java EJB bean and you need to write a business logiv into the process() method of the adapter module.

To call the java proxies, you need to write the java code in the process() method and call the java proxy method. Below is the link on how to create adapter module in PI.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e674...

Best Regards,

RK