[JBoss jBPM] - Re: some jBPM questions...
by dleerob
- Do you mean a database connection to another database, or to the Jbpm database. If you mean another database, then you would do it like you would any java application. Use Jdbc or something of the sorts, and write your own code to do it. If you mean to the Jbpm database, then read the documentation: http://docs.jboss.com/jbpm/v3.2/userguide/html/index.html[/url] and the getting started guide: [url]http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmGettingStarted
- To get some samples, look at the Jbpm Console. Again, read the documentation mentioned above. You could also look at the source code etc.
- To create your interface, just read the documentation, learn how to use the Jbpm Libraries/API's, and write your interface however you want. I wrote my own web application, using the AppFuse framework, and integrated the Jbpm libraries. The Jbpm Console is a good example of an interface. Look at it's source code.
- I can't help with your last question, as I haven't even looked at BPEL.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094385#4094385
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094385
18Â years, 9Â months
[Management, JMX/JBoss] - Re: jboss sheduler issue
by Pop Octavian
A simple way to create a sceduler is to implement Schedulable interface, you have to implement public void perform(Date data, long l) method.
This interface is found in sceduler-plugin.jar, for jboss 4.0.5.
A sample cod is:
public class MyScheduler implements Schedulable
| {
| public void perform(Date data, long l)
| {
| execute();
| }
| }
|
and the deployment descriptor from jboss-service is:
<server>
| <mbean code="org.jboss.varia.scheduler.Scheduler"
| name="acme:service=Scheduler">
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableClass">MyScheduler</attribute>
| <attribute name="InitialStartDate">NOW</attribute>
| <attribute name="SchedulePeriod">60000</attribute>
| <attribute name="InitialRepetitions">-1</attribute>
| </mbean>
| </server>
I hope it helps you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094382#4094382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094382
18Â years, 9Â months