cancel
Showing results for 
Search instead for 
Did you mean: 

Java Proxy

Former Member
0 Kudos
73

Hi all,

I just want to know in what kind of scenarios java proxies can be used. what kind of systems can be connected to PI using java proxies.

Also, the advantages and disadvantages if there are any.

Thanks,

Neha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI

Java proxies r used to integrate XI with java applications

Java Proxy Runtime enables and manages connectivity between Java Proxies and the IS. It can be installed on SAP J2EE Engine Release 6.30 SP3 or higher, and currently this J2EE engine is the only one supported by the Java Proxy Runtime. As of SAP NetWeaver 2004 the Java Proxy Runtime is installed with and integrated into the J2EE Adapter Engine. This Adapter Engine implements queuing, persistence and monitoring services required to guarantee asynchronous communications. However, both synchronous and asynchronous communications are supported.

In a Java Proxy client scenario, an Java application utilizes Proxy Beans to connect to the Java Proxy to send a message from itself to the IS in XI Protocol (XML) format. Conversely in a server scenario, the Java Proxy (consisting of a EJB bean for message handling) receives a XML message from the IS. This bean in turn calls the application bean (Java Proxy Bean in the diagram above) registered for that inbound interface. Beans are used in sending and receiving messages from a J2EE application.

Java Proxies are created via Java Proxy Generation.

Java Proxy Generation is done directly within the Repository. Using tools within the Repository, a Message Interface can be used to generate the necessary Java Proxy Objects for handling the communication requirements for the interface. Proxy Generation creates J2EE beans and proxy classes for this purpose. These beans and proxy classes are bundled into an archive (as a Jar or Zip file) for deployment.

Java Proxy Objects

Upon generation, a number of Java objects are created. The following two examples document what objects are created in both an inbound and outbound generation.

In general:

u2022 A class is generated for each complex Data Type with set/get methods to access the corresponding fields

u2022 No classes are generated for simple Data Types, rather the type is simply transferred (such as string)

u2022 Additional bean classes are used for J2EE applications (which use them to exchange messages instead of the proxy classes). These classes are not required for stand-alone Java applications

u2022 The class for the input / output message corresponds to the Data Type referenced by the Message Type used

u2022 No public global classes are created for Message Types (Fault Message Types are the exception). Normal Message Types are included internally as private classes

u2022 For both inbound and outbound a class is created named: <MessageInterface>_PortType

Within this class it contains a method declaration of the format:

u2022 Inbound

o <Data Type Outbound Message> <Message Interface name> (Data Type Inbound Message

u2022 Outbound

o <Data Type Inbound Message> <Message Interface name> (Data Type Outbound Message

In simpler terms, the Message Interface from the Repository becomes the method name in the class.

cheers

reward points if found useful

Answers (5)

Answers (5)

former_member187563
Contributor
0 Kudos
Former Member
0 Kudos

Hi all,

Thanks for your prompt replies,

Could you please elaborate on exactly what these java applications can be?

thanks,

Neha

Former Member
0 Kudos

Hi,

Application which runs on java.

if u see the second link which has given u the business scenario where the a request from a JSP page is send to SAP Exchange Infrastructure, which forwards the request to a database and fetches the response from data base. The request contains the username and password and the role is returned to JSP as response.

chirag

Former Member
0 Kudos

Thanks Chirag,

besides JSP which are the possible java applications which can be connected to through the Java proxies

Thanks,

Neha

Former Member
0 Kudos

Hi,

While we are dealing with the JAVA Based Applications then we will use JAVA Proxies

Like When we are dealing with ABAP Based systems we use ABAP Proxies

Java Proxies and SAP Exchange Infrastructure - The Inside Story, Part 1

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b20...

Java Proxies and SAP Exchange Infrastructure - The Inside Story, Part 2

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903...

Regards

Seshagiri

Edited by: N V Seshagiri on Jun 17, 2008 11:51 AM

Former Member
0 Kudos

Java proxy-1 /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy

java proxy-2 /people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy

JAVA PROXY-3 https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd2...

ABAP proxy /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Former Member
Former Member
0 Kudos