[JBoss jBPM] - Re: jBPM 3.2 timers in a cluster
by supterlobster
Also, following problems:
1. Timer can not get picked up after jboss restarts.
The TimerServiceBean jndi name keeps changing between jboss restarts. Then the old timer with obosolete timers.targetid will be ignored. Have to change the local jndi name to fix it. Although it is not a big deal, but the jbpm-enterprise.ear will not work without this change.
2. The timer is created with no interval, so it will only execute once, so I have to change the code to do it better.
Are these the real problems or just my imagination?
Also improvements I like to have:
1. procesdefinition deployment is a pain. I have to write some servlet listener to kludge the version checking. How difficult we do it at system level - do not deploy if the definition already exists?
2. how to achieve the pooling of async execution? only way I know of is to limit the TimerServiceBean pool size. But it is clumsy. Ideally it can have different delay queues, so we can treat normal executions and retries differently, say with different intervals.
Justin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066818#4066818
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066818
18Â years, 9Â months
[Tomcat, HTTPD, Servlets & JSP] - Native APR, SSL and a multihomed machine
by RayDeCampo
I have a multihomed server on which I have installed two identical versions of JBoss 4.2.0. I have also installed JBoss native on each in order to use the Tomcat APR optimizations. I also set up an HTTPS connector on each server. I use the -b option on each instance in order to bind it to a dedicated network card. Running each server by itself prevents no issues. When I try to start the second server when the first is already running, I get a port binding error (the port configurations on each instance are identical, since they will be using a different NIC).
A little investigation reveals that the HTTPS connector is listening on all available IP addressed. Thus when the second server starts, it fails to bind to the HTTPS port. When I adjust the HTTPS port on the second server I no longer get this error.
Is there a configuration beyond the -b start up parameter I should be using to prevent the SSL connector from listening on all IP addresses?
The configuration for the connector, as detailed at http://tomcat.apache.org/tomcat-6.0-doc/apr.html, is below:
| <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
| maxThreads="150" scheme="https" secure="true"
| clientAuth="false" sslProtocol="TLS"
| SSLCertificateFile="C:/certs/cert.pem"
| SSLCertificateKeyFile="C:/certs/key.pem"
| SSLPassword="notmyrealpassword" />
|
Thanks,
Ray
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066817#4066817
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066817
18Â years, 9Â months
[JBoss Seam] - jboss seam bijection problem
by talekar
jboss seam 1.2.1
I am having trouble understanding how bijection work with jbpm. Here is a simple jpdl:
| <process-definition name="MyWorkflow">
|
| <start-state name="start">
| <transition to="decide"></transition>
| </start-state>
|
| <decision name="decide" expression="#{myManager.result}">
| <transition to="assigntask" name="assigntask"></transition>
| <transition to="end" name="end"></transition>
| </decision>
|
| <task-node name="assigntask">
| <task name="Evaluate">
| <assignment actor-id="adminuser"></assignment>
| </task>
| <transition to="end" name="cancel"></transition>
| <transition to="decide" name="retry"></transition>
| </task-node>
|
| <end-state name="end"></end-state>
|
| </process-definition>
|
Notice that the decision task calls #{myManager.decide} which a SFSB:
| @Stateful
| @Name ("myManager")
| public class MyManagerImpl implements MyManager,
| Serializable {
|
| private static final long serialVersionUID = 1L;
|
| @Logger
| private Log LOG;
|
| @PersistenceContext (type = PersistenceContextType.EXTENDED)
| private EntityManager entityManager;
|
| @In (required = false)
| @Out (scope = BUSINESS_PROCESS, required = true)
| private Long id;
|
| @CreateProcess(definition = "MyWorkflow")
| public void begin() {
| id = new Long(10);
| }
|
| public String getResult() {
| // NPE :-(
| // why doesnt id get injected?
| int x = id.intValue();
| }
|
| @Remove
| @Destroy
| public void destroy() {
| }
| }
|
I get a NPE in getResult() when it is called by jBPM. How come id never gets injected back?
I set logging to TRACE on org.jboss.seam.Component and I get the "injecting dependencies of" message when begin() is called. But I DONT see the same messages when the jBPM task node executes the getResult() expression.
Am I missing something in a config file?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066808#4066808
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066808
18Â years, 9Â months