Sponsor
Interacting with Oracle Forms from other systems
Posted by Tobias on April 24th 2009
About
Our company wanted a way of interacting with our financial system, which is built with Forms 10, from other external systems. To accomplish this, we created several components which work together to allow data to be sent to Forms.
In this data flow we have a number of external applications which are able to send data to forms.
Real world example
A user browses our Intranet which contains lists of undelivered orders (Fig. 1). The user is interested in finding out more information about a particular order. The user clicks a hyperlink related to the order and the order information form is opened in our financial system (Fig. 3).
Explanation
First of all, the user must have the financial system started. This system contains a Java Bean which implements an IP server which listens to a specific port for incoming data. Information about the user’s session like username, IP address and port number is stored in v$session in the database. The web page in which the user found the initial information about the order contains a hyperlink which triggers some JavaScript code using Ajax. The JavaScript code sends a page request with various information like form name and order number to an IIS web server. In turn, the web server finds out the user’s username and logs into the financial system’s database and triggers some PL/SQL code. This PL/SQL code finds the user’s session in the v$session view, extracts the IP address and port number and sends the data to the client. The Java Bean picks up the data and sends it to the Forms application which can respond in an appropriate way. In this example, Forms will open an order information form and display data regarding the requested order number.
If the user hadn’t started the financial system before clicking the URL no session information would be present in the session table and the IIS web server would respond with an appropriate message (Fig. 2).
This example shows one way of using this Java Bean. Another example could be updating graphs and gauges in real time using events generated (UTL_TCP) from the database skipping the entire IIS web server step.
Figures
Post a comment
| Posted by vOornlyGTrSwJ on July 30th 2011 13:57 |
|---|
| Wow, this is in every repscet what I needed to know. |
| Posted by KJGZQqXDb on July 30th 2011 20:58 |
| This is exactly what I was looknig for. Thanks for writing! |
| Posted by Roger on October 13th 2011 19:55 |
| Nice! |
