[EJB 3.0 Development] New message: "Default remove timeout"
by Pete Muir
User development,
A new message was posted in the thread "Default remove timeout":
http://community.jboss.org/message/527452#527452
Author : Pete Muir
Profile : http://community.jboss.org/people/petemuir
Message:
--------------------------------------------------------------
I got Martin to do a bit more digging around EJB removal timeout to try and establish what the default removal timeout is on JBoss AS.
The issue is that, as Weld uses the http session to back both the session and conversation context, if the backing for the EJB is a session object, then if the EJB is removed in less time than the http session, users get an exception when Weld responds to the http session timing out and tries to remove the EJB.
Of course, we can work around this by recommending users to increase the EJB removal timeout. But for a good ootb experience on JBoss AS I think we need align this by default.
If we don't want to change the default for EJB, an option would be to use the Weld deployer to check the EJB metadata. If the default timeout isn't set, we could add something that was longer than the session timeout.
WDYT?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527452#527452
16 years, 2 months
[jBPM] New message: "Storing java.util.Collection on process"
by Ruben Bentein
User development,
A new message was posted in the thread "Storing java.util.Collection on process":
http://community.jboss.org/message/527448#527448
Author : Ruben Bentein
Profile : http://community.jboss.org/people/rubenbentein
Message:
--------------------------------------------------------------
I have a question about a best practise concerning processes with a dynamic list as a variable.
Let's say for example i have an process which has to store 0..* objects as variables. I.e. an process B
+public class B{+
+ string b1;+
+ string b2;
+
+ java.util.Collection<A> aCollection;
+
+}+
and a class A
+
+
+public class A{+
+ string a1;+
+ string a2;
+
+}+
so before calling
+executionService.startProcessInstanceByKey("B-process-name", variables);+
I have to fill the variables map. But how should i add aCollection ? Should i do something like
+
+
+variables.put("b1", someBObject.b1);+
+variables.put("b2", someBObject.b2);+
+for (int i=0 ; i<someBObject.aCollection.size() ; i++){
+
+ variables.put("aCollection[++" + i + "].a1", aCollection.get(i).a1++);
+
+ variables.put("aCollection[++" + i + "].a2", aCollection.get(i).a2);+
+}+
Or maybe there is a better/cleaner solution.
Or should i store these object in my own tables, and just store a reference (id) on the variables list ?
Thanks for any replies
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527448#527448
16 years, 2 months
[jBPM] New message: "Storing java.util.Collection on process"
by Ruben Bentein
User development,
A new message was posted in the thread "Storing java.util.Collection on process":
http://community.jboss.org/message/527447#527447
Author : Ruben Bentein
Profile : http://community.jboss.org/people/rubenbentein
Message:
--------------------------------------------------------------
I have a question about a best practise concerning processes with a dynamic list as a variable.
Let's say for example i have an process which has to store 0..* objects as variables. I.e. an process B
+public class B{+
+ string b1;+
+ string b2;
+
+ java.util.Collection<A> aCollection;
+
+}+
and a class A
+
+
+public class A{+
+ string a1;+
+ string a2;
+
+}+
so before calling
+executionService.startProcessInstanceByKey("B-process-name", variables);+
I have to fill the variables map. But how should i add aCollection ? Should i do something like
+
+
+variables.put("b1", someBObject.b1);+
+variables.put("b2", someBObject.b2);+
+for (int i=0 ; i<someBObject.aCollection.size() ; i++){
+
+ variables.put("aCollection[++" + i + "].a1", aCollection.get(i).a1++);
+
+ variables.put("aCollection[++" + i + "].a2", aCollection.get(i).a2);+
+}+
Or maybe there is a better/cleaner solution.
Or should i store these object in my own tables, and just store a reference (id) on the variables list ?
Thanks for any replies
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527447#527447
16 years, 2 months
[Beginner's Corner] New message: "Re: Just installed jboss-5.1.0.GA.zip; where are the examples?"
by David Kramer
User development,
A new message was posted in the thread "Just installed jboss-5.1.0.GA.zip; where are the examples?":
http://community.jboss.org/message/527436#527436
Author : David Kramer
Profile : http://community.jboss.org/people/dj_segfault
Message:
--------------------------------------------------------------
Thanks for your reply.
I was really just hoping for a "is this working" HelloWorld that I could look at, regardless of the technologies.
My goal after that is I need to come up to speed quickly on Spring/Hibernate. I have the "Spring Recipes" book, which looks pretty good, and I'm going to work my way through that. But if you knew of any small, known-working examples of Spring and/or Hibernate in addition to that book, that would be great too. It's not that I'm too lazy to Google, but my Googling has turned up more broken codebases that don't even compile or match the documentation (as is the case here).
And next time i'll be more patient on IRC Thanks again and have a great weekend.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527436#527436
16 years, 2 months