[JBoss jBPM] - Re: going from jbpm-starters-kit-3.1.3 to jboss-4.0.5.GA
by Digeratus
So I stumbled into the point I had missed yesterday (being new to all four components I'm trying to make work: jboss, hypersonic, hibernate & jbpm).
The thing I had missed was the .../jboss-4.0.5.GA/server/default/data/hypersonic/localDB.script
I've begun merging the contents that come with the default server configuration with those in the example from .../jbpm-starters-kit-3.1.3/jbpm-server/server/jbpm/data/hypersonic/llocalDB.script
After discovering through trial and error that the order of the statements in that file were important (initially I tried to just group the jms statements in one block and the jbpm in another) I've gotten an almost right set. I'll post them here when I'm done.... right now, I'm just missing the timers (they're not working in my merged version, I imagine I blew it in the script merge).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986820#3986820
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986820
19Â years, 7Â months
[EJB 3.0] - Re: EntityListener, EntityManager, and Threading
by mfishman
To try and further explain what we are attempting to do, we basically have the following case:
1. An EntityListener is listening for when an entity is persisted, updated, or deleted
2. When that happens, the EntityListener wants to evaluate some other DB state to make a decision. To make that decision we had wanted to use an EntityManager to lookup the values in the DB that we needed.
3. Based on the evaluation in step 2, we wanted to do a call to a JMX Service that we have, which happens to be running in the same instance of JBoss in this case, to do some further work. This service has some threading in it and has its own references to some EJB3 Session beans.
Our questions are:
1. Is it true that you can not access an EntityManager from an EntityListener?
2. If the answer to question one is true, what is the correct way to relatively generically trigger some work to be done when the DB changes (assuming that work requires access to other information in the DB)?
3. It is our understanding that the MBean spec allows threading. Since EJBs are not supposed to spawn their own threads does this mean that you should really never access a MBean from within a EJB?
Thanks a lot.
-- Mark
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986817#3986817
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986817
19Â years, 7Â months
[JBoss Seam] - Problem with nested dataTables
by m.schuetz
Hi,
I have a problem using nested dataTables. Following code does not work correctly:
|
| <h:dataTable value="#{companies}" var="aCompany"
| rendered="#{companies.rowCount > 0 }" binding="#{contracts}">
| <h:column>
| <f:facet name="header">
| <h:outputText value="Unternehmen" />
| </f:facet>
| <h:outputText value="#{aCompany.name}" />
| </h:column>
| <h:column>
| <f:facet name="header">
| <h:outputText value="Bereiche" />
| </f:facet>
| <h:dataTable value="#{aCompany.contracts}" var="aContract">
| <h:column>
| <h:outputText value="#{aContract}" />
| </h:column>
| </h:dataTable>
| </h:column>
| <h:column>
| <h:commandButton action="#{manager.bla}" value="Bearbeiten" />
| </h:column>
| </h:dataTable>
|
Bean:
| @DataModel
| private ArrayList<CompanyEntity> companies;
|
| @DataModelSelection
| private CompanyEntity selectedCompany;
|
|
The Error
/user/showAllCompanies.xhtml @38,51 value="#{aContract.scope}": Bean: org.hibernate.collection.PersistentSet, property: scope
What i get is a list of contractEntititis but not the each Entity.
When Is assign the second dataTable an own Model, everything works fine - but it does not work in teh above example, because all is dynamically generated.
I have neither find anything about that in the documentation nor in the examples.
Do you have an idea?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986815#3986815
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986815
19Â years, 7Â months