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

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
Anyone have ADT 5.1.2.4 working?
Session Timeout - Lost API Requests.
Accessinfo/CreateAccess TIM API\'s
New Thread Requests

Categories

DW
PowerVM
Sterling Commerce
dW China
ibm_ru
dwjapan
Italy
Information Management
IBM Connections Social...
IBM ECM System Monitor
IBM CMIS for ECM
IBM FileNet Records Ma...
IBM Kenexa LCMS Premier
Tivoli Security Compli...
Security Access Manage...
Application Performanc...
Netcool/Impact Future ...
Installation and Setup
Marketing Platform
CustomerInsight
Detect
PredictiveInsight
Cloud security
IBM SmartCloud Applica...
IBM TRIRIGA Applicatio...
Multi-Channel Fullfill...
Cast Iron Runtime Appl...
IBM SPSS Data Collection
R Programmability in S...
IBM SPSS Collaboration...
IBM ILOG Optimization
Cognos Controller
WebSphere
XML
Rational DOORS adminis...
Functional and GUI Tes...
db2
Comunita' tecnica AIX ...
Automotive
IBM LanguageWare Resou...
On Demand
IBM Storage Insights (...
Community
Eserver
InfoSphere Master Data...
InfoSphere QualityStage
IBM Data Studio
IBM DB2 Recovery Exper...
DB2 for z/OS forum
InfoSphere Information...
For All Type Post
Migrating to WebSphere...
IBM WebSphere Transfor...
IBM Support Assistant ...
WebSphere MQ
IBM Web Experience Fac...
IBM Security Identity ...
IBM Security Identity ...
HA - High Availability
QRadar Vulnerability M...
Network Surveillance, ...
Troubleshooting
Web Services
Patterns / Techniques ...
Announcements
Education
Industry
OM Mobile Framework
Gentran Integration Su...
Gentran Server for AS/400
Gentran Windows upgrad...
Connect:Direct for Ope...
Connect:Direct for UNIX
Sterling Secure Proxy
C3 Replenishment
C3 Analyzer Customization
Suggestion Box
SDK Tools & Utilities
System Performance
Commerce/Order Management
Shipping
Performance Tuning
Inventory
RCP Framework
Interoperability
Extensibility
C++ Visualization Prod...
IBM Decision Optimizat...
CP Optimizer
CPLEX Optimizers
Rule Studio for .NET
1С:Предприятие на DB2
IBM Mote Runner SDK
Storage Management
Tivoli Netcool Configu...
SmartCloud Analytics -...
IBM SmartCloud Cost Ma...
Tivoli Common Reportin...
System x Server
System i Hardware Mana...
IBM Customer Experienc...
XQuery and XPath forum
XML and Java Technology
developerWorks XML zon...
JSF for nonbelievers f...
ibmpub.java.aix

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile