[JBoss Seam] - Re: Problems using ajax validation in seam-gen
by damianharvey
As mentioned in the JIRA this is the code (added to any old page) that will cause ajax4jsf to reset the conversation resulting in a "The conversation ended, timed out or was processing another request" error.
I realise that this sort of problem is better suited to the ajax4jsf forum but wanted to keep continuity with JIRA.
Bean:
| @Name("calcBean")
| public class CalcBean {
|
| private Integer first = new Integer(0);
| private Integer second = new Integer(0);
| private Integer third = new Integer(0);
|
| public Integer getFirst() {
| return first;
| }
| public void setFirst(Integer first) {
| this.first = first;
| }
| public Integer getSecond() {
| return second;
| }
| public void setSecond(Integer second) {
| this.second = second;
| }
| public Integer getThird() {
| return third;
| }
| public void setThird(Integer third) {
| this.third = third;
| }
| public Integer getTotal() {
| return this.first + this.second + this.third;
| }
| }
|
Page (put these on any page):
| <s:decorate id="firstDecoration" template="layout/edit.xhtml">
| <ui:define name="label">First</ui:define>
| <h:inputText id="first"
| required="true"
| value="#{personHome.first}">
| <a:support event="onblur" reRender="firstDecoration, total" eventsQueue="calc" ignoreDupResponses="true"/>
| </h:inputText>
| </s:decorate>
|
| <s:decorate id="secondDecoration" template="layout/edit.xhtml">
| <ui:define name="label">Second</ui:define>
| <h:inputText id="second"
| required="true"
| value="#{personHome.second}">
| <a:support event="onblur" reRender="secondDecoration, total" eventsQueue="calc" ignoreDupResponses="true"/>
| </h:inputText>
| </s:decorate>
|
| <s:decorate id="thirdDecoration" template="layout/edit.xhtml">
| <ui:define name="label">Third</ui:define>
| <h:inputText id="third"
| required="true"
| value="#{personHome.third}">
| <a:support event="onblur" reRender="thirdDecoration, total" eventsQueue="calc" ignoreDupResponses="true"/>
| </h:inputText>
| </s:decorate>
|
| <s:div id="total">
| Total: <h:outputText value="#{personHome.total}"/>
| </s:div>
|
Enter some values in the first, second and third and then tab over them and back again. Ajax4JSF will be overwhelmed and will kill the page (or at least generate the error mentioned above).
Regards,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080026#4080026
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080026
18Â years, 7Â months
[EJB 3.0] - Naming for a stateles in an EAR
by jc7442
I have an interface. with several implentation developped as stateless session.
In a session bean according to an algorithm I choose one of the implementation. Each implementation as a name and is deployed in the same ear as the invoker
my code looks like:
| @Resource SessionContext ctx;
|
| public void myMethod() {
| if (...) {
| ctx.lookup("earName/myImpl1/local");
| } else if (...) {
| ctx.lookup("earName/myImpl2/local");
| } ...
| }
|
This code works fine but I have to hardcode the name of the ear. In my project the name of the ear contain the project version. I'd like to be able to do a lookup with adding the earname. My ejb always uses implemtnations contains in the same ear.
1-Is it possible to invoke a service in the same ear without writting the ear name in the lookup ?
2-Is it possible to dynamiclly get the ear name from a staeless session ?
I do not want to use the EJB annotation in order not to inject ejb that I will not use. Is there other solution ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080024#4080024
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080024
18Â years, 7Â months
[JBoss jBPM] - Synchronization problem
by lucapino
Hi all,
we are developing an application using jBPM.
This application has a scheduler that instances jBPM processes in different thread.
These processes are long term automatic processes (made of several 'node' step each with an actionHandler) which spans several minutes.
When in one of the step the actionHandler raise an exception, we suspend and save the process instance.
We then develop a console that query the jBPM engine to find the suspended processes, in order to resume or kill the execution.
The problem we have is this: when we call findProcessInstances() to retrieve the process instances from the database, jBPM did not responds until all the process in execution ends or is suspended.
It seems that there is a problem of concurrence in the database access.
We didn't find any advice to solve this.
Any help would be appreciated.
Thanks in advance
Luca
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080018#4080018
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080018
18Â years, 7Â months