debug connector code


Hi what is the suggested way to debug connector code to minimize roundtrip times ? I see 3 scenarios - use engine api and deploy connector code via the BusinessArchiveBuilder Q: Will the so deployed connector code be debuggable when you start the Engine in debug mode from an IDE ? - launch the portal through tomcat or openEJB within the IDE in debug mode - remote debugging with application server

Of course I have unit tests for the business logic, but during integration and while exploring Bonita a debug facility save a lot of time Thanks for any suggestions Donat

1 answer


You may create an eclipse maven project and open the connector code in Eclipse by importing the code with virtual links. Add references to bonita jar, like this :

  1. <dependency>
  2. <groupId>org.bonitasoft.engine</groupId>
  3. <artifactId>bonita-client</artifactId>
  4. <version>${bonita.version}</version>
  5. </dependency>
  6. <dependency>
  7. <groupId>org.bonitasoft.engine</groupId>
  8. <artifactId>bonita-server</artifactId>
  9. <version>${bonita.version}</version>
  10. </dependency>

Next step is to start the server in debug mode by going in preferences > java > and select the same Jvm as in eclipse (ideally) and add the following as Default vm argument : -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n Make this jvm the default one

Restart the Bonita server to apply the changes

Create a Remote Java Application in Eclipse listening to localhost on port 8000 and start Eclipse.

You should be able to debug bonita connector.

Similar informations :