Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     WebFocus and Java API

Read-Only Read-Only Topic
Go
Search
Notify
Tools
WebFocus and Java API
 Login/Join
 
Gold member
posted
We are using WF 5.23
I need to develop a webfocus program that will accept a user id and password. Once entered the webfocus program needs to run an existing Java API. The Java API contains valid ids. Can webfoucs run Java APIs ? Has anyone done anything similar to this ?
 
Posts: 69 | Location: OH | Registered: November 09, 2004Report This Post
Virtuoso
posted Hide Post
Yes it can, but it can be a little tricky.

This is a little hard to explain (I haven't had to do this in a couple of years). You need to write your java code to implement "callpgm" from the ibi.callpgm package (don't know what jar). You then have to create a fex that will call the java class as a program, and a subsequent fex to call the origional fex as a eda stored procedure call. Make sence?

example of fex to call java:
-******* Call java server - calljava.fex
SET EXORDER=PGM/FEX
EX &JAVA.EVAL "&P1.EVAL", "&P2.EVAL" , "&P3.EVAL", "&P4.EVAL", "&P5.EVAL"
-EXIT

example of fex to call above fex:
-DEFAULT &JAVA_CLASS=java.com.cgi.mbs.server.ibi.PaymentProfileReport;
-SET FEXNAME='testjava';
-DEFAULT &PARMS='id=|account=|client=00440001';
-* * Call java server via calljava.fex
SQL EDA EX calljava JAVA='&JAVA_CLASS.EVAL',P1='&HOSTID.EVAL',
P2='&PORTID.EVAL',P3='&USERID.EVAL', P4='&SESSIONID.EVAL',P5='&PARMS.EVAL';
-* Get response and hold it in the tmp file
TABLE FILE SQLOUT
PRINT *
END
-RUN

Hope this helps.
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Virtuoso
posted Hide Post
Sorry about the above entry. I just re-read your origional post and realized that you need to call the javaapi from the webfocus client, not the server.

This is very easy to do. Get a copy of the security and administration pdf from new york. It explains how to implement java exits from within the webfocus client.
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
<DocServices>
posted
Hi Cheri,

You can view, download, and/or purchase the WebFOCUS Security and Administration Manual 5.2.3 (DN4500509.0104) from the Technical Documentation Library.

If you have an InfoResponse ID, login on the Tech Support web site and then access the Library. By logging in first, you can download the PDF file and/or view the HTMLHelp version. You do not need to be logged in with your InfoResponse ID in order to purchase documentation.

You can access the Technical Documentation Library via the following Web sites:



  • www.iwaysoftware.com
    (From the top navigation bar, click Services & Support. Then, select Bookstore.)


Hope this helps.

Regards,
Jennifer
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     WebFocus and Java API

Copyright © 1996-2020 Information Builders