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