Connect to remote engine via Java API throw Exception (6.x)

1
+1
-1

I have one Java application standalone trying connect to one remote engine (Bonita JBOSS Bundle 6.x), but I get one Exception. I am using two jar for the conection: bonita-client-6.0.2 and bonita-common-6.0.1.jar.

Please, continue read the quesion on stackoverflow ---> http://stackoverflow.com/questions/22158813/connect-to-remote-engine-via-java-api-throw-exception-6-x

1 answer

1
0
-1

Hi,

Have you created and started your engine platform ?

If not, see http://documentation.bonitasoft.com/manage-platform.

To get the PlatformAPI :

// Get platform login API using the PlatformAPIAccessor
PlatformLoginAPI platformLoginAPI = PlatformAPIAccessor.getPlatformLoginAPI();
// Log in to the platform
PlatformSession platformSession = platformLoginAPI.login("platformAdmin", "platform");

// Get the platform API
PlatformAPI platformAPI = PlatformAPIAccessor.getPlatformAPI(platformSession);

Best regards,

Céline

Comments

Submitted by matthieu.chaffotte on Tue, 04/22/2014 - 13:32

Hello,

First use the same version of bonita-client and bonita-commons. Second, you have to configure your client to reach your remote JBoss. You have to modify the configuration of bonita-home/client/conf/bonita-client.properties.

HTH

Notifications