[EJB 3.0] New message: "Re: Setting MDB Max Pool Size"
by jaikiran pai
User development,
A new message was posted in the thread "Setting MDB Max Pool Size":
http://community.jboss.org/message/524090#524090
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
> farhanhh wrote:
>
> In the documentation that you have posted:
> http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/...
>
> The xml configuration for mdb's does not work (mydomain-aop.xml):
> ...
> The work around is to set inheritBindings=false and removing extends="Message Driven Bean". This will apply the correct maxSize value.
>
> Now shouldn't the default behaviour result in the XML overriding the defaults regardless of inheritBindings? Either the documentation should be updated, or if this indeed is a bug, it should be resolved.
I can see why that would happen with the inheritBindings = true. Although i don't know what's the expected behaviour of AOP, when it comes to overrding the pointcuts. I'll discuss this in the AOP forums. In either case, as you mention, it's either a bug in AOP or in the documentation.
By the way, do *not* remove the extends = "Message Driven Bean". Doing that will remove all the MDB semantics from the bean.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524090#524090
16 years, 2 months
[jBPM] New message: "Re: jbpm 4.3 auto transition in state"
by Sebastian Schneider
User development,
A new message was posted in the thread "jbpm 4.3 auto transition in state":
http://community.jboss.org/message/524089#524089
Author : Sebastian Schneider
Profile : http://community.jboss.org/people/sebastian.s
Message:
--------------------------------------------------------------
You seem to want to have a custom behaviour of an activity, and a very strange one in my eyes. So you have to use a custom task and implement the behaviour yourself. If you have to use such an activity several times you can think about extending jPDL with your own activity. Then you don't need to put a reference to the Java class anymore. However I don't see the point in implementing such kind of behaviour. Maybe I don't understand your use case because I am lacking information.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524089#524089
16 years, 2 months
[Javassist] New message: "Re: cannot access added Field in some cases. Please help."
by Arvind K
User development,
A new message was posted in the thread "cannot access added Field in some cases. Please help.":
http://community.jboss.org/message/524088#524088
Author : Arvind K
Profile : http://community.jboss.org/people/megalodon
Message:
--------------------------------------------------------------
Hello Jaikiran,
Thanks for your prompt response. Here are the first 3 lines of the stack trace (after which the part of my code where I access the myInt variable forms the next stack trace element):
javassist.CannotCompileException: [source error] no such field: myInt
javassist.CtBehavior.insertBefore(CtBehavior.java:721)
javassist.CtBehavior.insertBefore(CtBehavior.java:681)
Javassist version is 3.11.GA
One more thing I'd like to add is that I am getting all the fields in the CtClass using CtClass.getFields() and displaying them sometime before adding the new field and soon after adding the new field and I do see the new integer field 'myInt' added after CtClass.addField() call. However, the next statement is an 'CtMethod.insertBefore()' which throws the above exception. Thanks.
-Arvind
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524088#524088
16 years, 2 months
[jBPM] New message: "Re: Accessing process variables in task form"
by Raji n
User development,
A new message was posted in the thread "Accessing process variables in task form":
http://community.jboss.org/message/524086#524086
Author : Raji n
Profile : http://community.jboss.org/people/raji_126
Message:
--------------------------------------------------------------
Apologies for not providing the code details. Here is the code snippet...
I don't see any errors printed in the console or log files..When i view the source of the task form displayed in the console, the table cell comes up as an empty cell.
*Process Defintion - Loan Approval*
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="loanapproval">
<start-state name="Start">
<transition to="Document Verification"></transition>
</start-state>
<process-state name="Document Verification">
<sub-process name="document_verification" binding="late"/>
<variable access="read,write" name="loanApplication" mapped-name="loanApplication"></variable>
<transition to="Underwriting"></transition>
</process-state>
...................
.................
<end-state name="End"></end-state>
<event type="process-start">
<action class="sample.test.InitializationActionHandler" name="InitializationActionHandler"></action>
</event>
</process-definition>
*Process Defintion - Subprocess*
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="document_verification">
<swimlane name="loan-executive">
<assignment actor-id="manager"></assignment>
</swimlane>
<swimlane name="loan-officer">
<assignment actor-id="user"></assignment>
</swimlane>
<start-state name="start">
<transition to="Verify Application"></transition>
</start-state>
<task-node name="Verify Application Details">
<task name="Verify Loan Details" duedate="5 business days" swimlane="loan-executive,loan-officer">
<controller>
<variable access="read,write" name="loanApproval" mapped-name="loanApproval"></variable>
<variable access="read,write,required" name="docVerificationRemarks" mapped-name="docVerificationRemarks"></variable>
</controller>
</task>
<transition name="Approved" to="Perform Risk Analysis & Pricing"></transition>
<transition to="Update Status - Doc Incomplete" name="Documents Incomplete"></transition>
</task-node>
..........
...........
.............
</process-definition>
*Value Objects*
public class LoanApplication implements Serializable {
private String applicationId;
private ArrayList<Borrower> borrowerList; //borrower and co-borrower info
// getter and setter methods
}
public class Borrower implements Serializable {
private String firstName;
private String lastName;
private ArrayList<Employment>; //history of present and past employment
//getter and setter methods
.........
}
When the main process is started, I am calling "InitializationActionHandler" to set the loanApplication object as a process variable.
The loanApplication object contains borrower information.
In the task form attached to the "Verify Loan Details" screen, I want to display the application details like borrower name, mortgage value etc.
I used the following syntax,
<h:outputText value="#{var['loanApplication.applicationID']}"/>
<h:outputText value="#{var['loanApplication. borrowerList[0].firstName']}"/>
but nothing gets printed. But i can see the data being populated in the process variable through the InitializationHandler.
So looks like either the variable is not getting passed to the task form or i am using wrong syntax.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524086#524086
16 years, 2 months
[jBPM] New message: "Re: Deployment mechanism details"
by Bernd Ruecker
User development,
A new message was posted in the thread "Deployment mechanism details":
http://community.jboss.org/message/524085#524085
Author : Bernd Ruecker
Profile : http://community.jboss.org/people/camunda
Message:
--------------------------------------------------------------
Deploying via JBoss Deployer is still under discussion, since it raises a lot of problems to be tackled (deployment of classes associated with the process, especially when using scoped deployment; what happens on undeployment; when is undeployment executed, since a shutdown of the server already does an undeployment as well; ...).
This needs some serious thinking, which involves the SOA platform guys as well. And somehow because of the lack of time there wasn't much progress in that area. Especially because there are other ways working as Ronald noted...
Cheers
Bernd
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524085#524085
16 years, 2 months