Sie sind auf Seite 1von 3

6/20/2017 Coding Against the new HFM 11.1.2.

4 Java API

Request A Demo ►

Products Services Solutions News & Events Resources Support Company

Home > The Accelatis Blog > Coding Against the new HFM 11.1.2.4 Java API

Coding Against the new HFM 11.1.2.4 Java API
TH U R S D AY,   A P R I L   3 0 TH ,   2 0 1 5   I N   Th e   A c c e l a t i s   B l o g ,   B Y   To n y   Mi t r i

The Accelatis Blog

Chuck's Corner
The new version of HFM 11.1.2.4 does not support the DCOM API due to internal rewrite of the HFM server and to
support multiple platforms (Windows, Linux…). The recommended API is now Java based. Unfortunately, browsing Jonathan Berry
the Javadoc for Financial Management Object Model, does not provide any complete and useful examples of coding
Tony Mitri
against it.
For multi­platform support, some of the underlying architecture needed to change/replaced: (only the relevant
change to coding against HFM are listed below)
Subscribe to our Blog
DCOM was removed and replaced by thirft for TCP/IP client server communications.
Your email   SUBSCRIBE
IIS was removed and replaced with WebLogic integration.

The COM C++ exposed API was replaced with Java as the only communications to HFM.

Configuration settings have been moved from the windows registry to the database. Explore our Software

Since the HFM API is Java based, using Java to programmatically consume the HFM OM is definitely the way to go. If Management
you must use C#, then you need to either build a web service around the HFM OM or a thrift server similar to the
Automation
TCP/IP layer in the HFM server.
Auditing
My HFM Hello World: 
Log Management

Create a Java project using iDeveloper or Eclipse Performance Monitoring


From the architectural diagram below, the exposed HFM OM is in the WebLogic layer and no longer on the User Experience Monitoring
HFM server layer, so the HFM server layer, so the HFM service must be started.
Performance Testing Suite
From your Java project, you need to include the following JAR files:
Help Desk
1)C:\Oracle\Middleware\EPMSystem11R1\common\jlib\11.1.2.0\epm_hfm_web.jar 
Optimization
2)C:\Oracle\Middleware\EPMSystem11R1\common\jlib\11.1.2.0\epm_thrift.jar 
3)C:\Oracle\Middleware\EPMSystem11R1\common\jlib\11.1.2.0\epm_j2se.jar

 Import following HFM packages

import oracle.epm.fm.common.datatype.transport.HsxRequestContext;
import oracle.epm.fm.domainobject.application.JHsxClient;
import oracle.epm.fm.domainobject.security.Security;

Set the Oracle HOME and INSTANCE

System.setProperty(“EPM_ORACLE_HOME”, “c:/Oracle/Middleware/EPMSystem11R1”); 
System.setProperty(“EPM_ORACLE_INSTANCE”, “c:/Oracle/Middleware/user_projects/epmsystem1”);

Authenticate against Shared Services

Security security = new Security();
security.authenticateUser(“admin”, “Welcome1”, null); 
String token = security.getSsoToken();

http://www.accelatis.com/the­accelatis­blog/coding­against­the­new­hfm­11­1­2­4­java­api/ 1/3
6/20/2017 Coding Against the new HFM 11.1.2.4 Java API

Enumerate the HFM Clusters

HsxRequestContext requestContext = new HsxRequestContext(null,ssoToken,null,null); 
JHsxClient client = JHsxClient.getInstance();
List<String> clusters clusters = client.getClusters(requestContext);

Click to view sample code of connecting to HFM using Java.

Stay tuned for more in­depth HFM coding blogs…

Related Posts

Dissecting my first HFM Sample Program
MAY  6, 2015

Coding Against the new HFM 11.1.2.4
Java API
APRIL 30, 2015

HFM 11.1.2.4 Consolidation Speed is
VERY Fast
APRIL 9, 2015

HFM 11.1.2.4. Proves Resilience and
Efficiency
APRIL 7, 2015

HFM Now Uses ODL for 11.1.2.4
APRIL 2, 2015

← Building a Center of Excellence with an No More Surprises for Oracle­Hyperion →
integrated Help Desk

NEWS & EVENTS RECENT WEBINARS THE ACCELATIS BLOG CONNECT WITH US

ODTUG KScope17 Accelatis Essentials – Custom What Riding a Bicycle Can


Failure Criteria for Health Checks Teach Us About Performance
June 25-28, 2017 Testing
  AUGUST 31, 2015
Wednesday, May 31 @ 11:45 AM Search Our Website
EST Dissecting my first HFM
 
Sample Program
JW Marriott San Antonio Hill Health Checks allow you to
http://www.accelatis.com/the­accelatis­blog/coding­against­the­new­hfm­11­1­2­4­java­api/ 2/3
6/20/2017 Coding Against the new HFM 11.1.2.4 Java API
JW Marriott San Antonio Hill Health Checks allow you to MAY 6, 2015
Country Resort – San Antonio, TX proactively manage your Search..
environment and applications to
Accelatis is proud to be a Gold stay ahead [...]
Sponsor [...]

Read More

© 2017 Accelatis, LLC www.accelatis.com

http://www.accelatis.com/the­accelatis­blog/coding­against­the­new­hfm­11­1­2­4­java­api/ 3/3