[jBPM] New message: "How to start a task from UI?"
by Sergio Figueras
User development,
A new message was posted in the thread "How to start a task from UI?":
http://community.jboss.org/message/519022#519022
Author : Sergio Figueras
Profile : http://community.jboss.org/people/SergioFigueras
Message:
--------------------------------------------------------------
Hi everyone,
I've decided that I need every time when user see the Examine (task.jsf) form, if the task that user is wanting to see isn't started, the task should be started. If it is suspended, the task should be active. So, I've done a little modification at task.xhtml form. Wich is:
<ga:responseActions>
<ga:parameter name="id" target="#{id}"/>
<j4j:loadTask id="#{id}" target="#{task}"/>
<c:if test="#{task.start == null}">
<j4j:startTask task="#{task}"/>
<n:nav outcome="success" redirect="true" storeMessages="true"/>
<n:nav outcome="error" redirect="true" storeMessages="true"/>
</c:if>
But, when the condition of c:if is running, there's no task at all. It always run the if statement and executes the statement.
I know that the ga:responseActions is a component that execute commands when the response is being made.
What I need to do? Can somebody help me? Where can I get the actual task?
Thanks!
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519022#519022
14 years, 4 months
[jBPM] New message: "JBPM4 in an Enterprise Environment"
by None Ya
User development,
A new message was posted in the thread "JBPM4 in an Enterprise Environment":
http://community.jboss.org/message/519018#519018
Author : None Ya
Profile : http://community.jboss.org/people/xero314
Message:
--------------------------------------------------------------
I have been working with JBPM4 for a while now and have a perfectly usable installation of it running but would like to utilize some of the j2ee features (EJB Timers and the EJB Command Executor) and can't seem to find any documentation on setting this up. Currently I am using JBPM 4.1 but could upgrade if it would resolve some of the problems that I am running into.
Just as a little back ground the structure of the Enterprise application I am working with uses jBPM4 embeded in the ear
ear
|--jbpm4 enterprise jar
|--jbpm4 service archive (this is on jboss)
--other j2ee components of the application
I have looked through the source code and picked around as best I could to see that there are settings for using the EJBs provided but thing I try and do seems to get the EJBs working.
First there is a "target" attribute on the timer-session wire binding, but this reference what appears to be a non-existant class (org.jbpm.enterprise.internal.ejb.EnterpriseTimerSession).
I also tried replacing the timer-session binding with the ejb-timer-session binding, and although the ejb is clearly in the jndi tree on the jboss server, jbpm is throwing the following exception when trying to initialize the EjbTimerSession:
org.jbpm.pvm.internal.wire.WireException: couldn't initialize object 'org.jbpm.enterprise.internal.ejb.EjbTimerSession': couldn't lookup 'java:comp/env/ejb/LocalTimer' from the initial context
If anyone can provide me any assistance on getting JBPM4 set up to utilize the provided EJBs I would really appriciate it.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519018#519018
14 years, 4 months
[Performance Tuning] New message: "Re: Jboss is crashing and throwing Out of swap space error."
by Peter Johnson
User development,
A new message was posted in the thread "Jboss is crashing and throwing Out of swap space error.":
http://community.jboss.org/message/519010#519010
Author : Peter Johnson
Profile : http://community.jboss.org/people/peterj
Message:
--------------------------------------------------------------
The OOME exception you are seeing could be caused by one of two things :
a) The JVM is attempting ot expand the heap and Windows says it has no more memory available
b) The JVM is attempting to spawn a new thread and Windows says it can't due to memory limitations
Are you by any chance booting the Windows system with the /3G option? This can often lead to situation 'b' above.
How large is your page file? What is your memory usage like, particularly committed memory?
Are you ruinng a 32-bit or 64-bit OS?
Try running with -Xms and -Xmx set to the same value (that is recommended for production anyway).
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519010#519010
14 years, 4 months
[Performance Tuning] New message: "Re: CPU usage increases daily for JBoss PID, reaches to 100% after 10 days."
by Peter Johnson
User development,
A new message was posted in the thread "CPU usage increases daily for JBoss PID, reaches to 100% after 10 days.":
http://community.jboss.org/message/519005#519005
Author : Peter Johnson
Profile : http://community.jboss.org/people/peterj
Message:
--------------------------------------------------------------
{quote}I doubt that Hashmap is corrupted. the reason is, we are using struts2,{quote} I would be very leery of this statement. Last summer I worked with a customer who was running into stack overflow issues. Turns out they were using a well know open source library (I'll call it lib1) which in turn used another open source library (I'll call it lib2) incorrectly. It turns out that lib2 is not thread safe, yet lib1 was spanning multiple threads, each one using lib2. Issues like this rarely come out during development testing because that is usually single threaded. Not until load testing, or worse in production, when multiple threads are being run do such problems show up.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519005#519005
14 years, 4 months