Neues aus unserem Blog
| How to use the tk4jbpm |
|
|
This page should give a short introduction how to use the tk4jbpm binaries in your own projects. For more information please read the gui tutotial too. For information on how to get the sources and contribute, refer to the project page please. EJB 3 stuffThe AdminBean can easily be deployed in an EJB3 application server (like JBoss 4.0.4 GA). The only dependency is that the JbpmConfiguration is bound to JNDI with the name "java:/jbpm/JbpmConfiguration". In JBoss this can be done within the jboss-service.xml: <?xml version="1.0" encoding="UTF-8"?> After you have done this you just have to copy the ejb3 archive to your JBoss deploy directory, that's all. If you want to use the Scheduler-MBean, which executes due timers, you can put the following MBean configuration in the same jboss-scheduler.xml: <!-- ==================================================================== --> Using this scheduler is not the onl yoption to get schedulingin a ejb 3 environment to work. Other options are the ejb 3 timer service or some other scheduling framework. Admin ClientThe Admin-Client can also be easily included in a Swing client. The following code initializes the AdminServices to use the deployed bean on the application server configured in your local jndi.properties: CommandService commandService = (CommandService) new InitialContext().lookup("/jmgui/CommandServiceBean/remote");User Client Frameworkplease read the gui tutorial and the JavaMagazin article (available on the publications site). |
