IBM Tivoli Enablement Tools


ITIM- Java client not able to get the PlatformContext object using new InitialPlatformContext(env)


i am developing a client to get the ITIM platform. but it basically throws error when code goes to the line platform = new InitialPlatformContext(env);
here is the outline of my code snippet. i found the same problem with so many individuals, but not able to find any solution there.
please suggest !
solution will really be appreciated !
----------------------------------------------------
public PlatformContext getPlatform() {
String platformContextFactory = null;
String ejbUser = null;
String appServerURL = null;
String ejbPwd = null;
try {
/*'context.properties' is the name of the properties file you created with
all your security information. You only need to pass the name of the
file, the file extension is not required.*/
ResourceBundle rb = ResourceBundle.getBundle("context");
appServerURL = rb.getString("appServerURL");
ejbUser = rb.getString("ejbUser");
platformContextFactory = rb.getString("platformContextFactory");
ejbPwd = rb.getString("ejbPwd");
System.out.println("Will connect to TIM server at url: " + appServerURL);
System.out.println("Will connect to TIM with user: " + ejbUser);
System.out.println("Will connect to TIM with password: " + ejbPwd)
}
catch ( MissingResourceException e ) {
String statusValue = "Can't find the context because
of a MissingResourceException : " + e;
e.printStackTrace();
}
Hashtable env = new Hashtable();
env.put(InitialPlatformContext.CONTEXT_FACTORY, platformContextFactory);
env.put(PlatformContext.PLATFORM_URL, appServerURL);
env.put(PlatformContext.PLATFORM_PRINCIPAL, ejbUser);
env.put(PlatformContext.PLATFORM_CREDENTIALS, ejbPwd);
PlatformContext platform = null;
try {
platform = new InitialPlatformContext(env);
}
catch ( RemoteException e ) {
String statusValue = "Can't create a new platform because
of a RemoteException : " + e;
e.printStackTrace();
}
catch ( ApplicationException e ) {
String statusValue = "Can't create a new platform because
of a ApplicationException : " + e;
e.printStackTrace();
}
return platform;
}
i am not able to get the PlatformContext object.
Hello Manish,
Did you get the solution to this? I am facing the same issue while calling ITIM 5.1 API remotely and Websphere security is enabled.
Regards,
Prashant

Related Links

Comment and issues for the ITIM DocTool
ISIM Web Services -Single SIgn on
Working entry comming as null when AL is run
ITIM Adapter Development Tool - Loop Connector hasn\'t Hooks tab
Out of memory while running ITIMDocTool_HTML.sh
Webservice call from TDI via isim
ITIM- Java client not able to get the PlatformContext object using new InitialPlatformContext(env)
ITIM WS SOAP Response fails Validation
Custom adapter Test connection AL Error CTGIMT603E for webservice connection
Web Services Wrappers for ITIM API- New Application
Thread safety of client API
Webservices exception
Error while testing connection to ITIM Web Services v1.32
ISIM 6.0 webservice date issue
Web Services call to trigger Recon in TIM
Two loops in ITIM workflow are not working one by one

Categories

DW
Compiler Cafe
Jazz for Service Manag...
IBM Tivoli Monitoring ...
BigFix
WebSphere
IBM Connections Cloud ...
IBM Content Manager
Application Security
Marketing Platform
Facilities Management ...
Software Asset Management
Fixlet Authoring
Transportation Managem...
SPSS Community News
Cognos BI 10
Cognos 8
Технология Java
Linux
IBM developerWorks Россия
Development Tools (RAD...
Rational DOORS integra...
Performance Management...
opensource
aix
Test tivoli forum
Financial markets
Pattern Modeling and A...
IBM Web Server Plug-in...
All blogs
Tivoli
Power Architecture
Lotus
DB2 for Linux, UNIX, a...
InfoSphere Metadata Se...
WebSphere DataStage
IBM Toolbox for Java a...
The CDC (Change Data C...
IBM Support Assistant ...
CICS Explorer
WebSphere Enterprise S...
Events & DSM's
HA - High Availability
Documentation
QRadar Risk Manager
Standards / Compliance
Reporting
Patterns / Techniques ...
**NEW** Sterling File ...
Connect:Direct
Sterling Secure Proxy
Developer Tools, Utilt...
Gentran Integration Su...
Gentran Windows upgrad...
Connect:Express Unix
Connect:Direct for Ope...
Connect:Direct for UNIX
Connect:Direct Mainframe
Pricing, Configuration...
C3 Replenishment
C3 Analyzer Q&A
C3 Analyzer Installation
The Selling System Use...
How Are You Using Sell...
SDK General
Release 6.0
SDK & Tools
Receipts
Agent Framework
SQLserver
RPG Cafe
.NET Visualization Pro...
Rules for .NET
Business Rules Best Pr...
General Discussions
Gantt charts
Treemap
Decision Validation Se...
Форум по AIX и UNIX
Форум IBM developerWor...
FAQ
IBM MapReduce Tools fo...
HeapRoots
Replication Monitoring...
IBM Client Application...
IBM Spectrum Control
IBM i
IBM i IBM i Performanc...
Communications Server ...
PowerHA (Formerly know...
HPC Central Technical ...
System x Server
IBM Customer Experienc...
Client-side Java progr...
ibmpub.java.aix
ibmpub.java.vmesa
Web Services Technical
Linux tech support forum

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile