TM1 API using Java
Posted: Thu Oct 15, 2009 5:24 pm
Does anyone have an idea on how to properly connect to TM1 using the Java API?
I have so far been unable to build a decent TM1Beans connection.
This returns a -1 and a connection error.
I have so far been unable to build a decent TM1Beans connection.

Code: Select all
com.applix.tm1.TM1Bean bean = new com.applix.tm1.TM1Bean();
bean.setAdminHost("MyAdminHost");
bean.openConnection("MyServer", "user", "password");
int numServers = bean.getNumberOfServers();
JOptionPane.showMessageDialog(null, numServers);