Re: [jboss-user] [jBPM Development] - History details
by Maciej Swiderski
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion
"History details"
To view the discussion, visit: http://community.jboss.org/message/559176#559176
--------------------------------------------------------------
In fact I set it to be able to get access to some information that are related to the detail, for example variable name when getting all variable updates. When I removed them and rerun the tests, following failed:
Test set: org.jbpm.test.query.HistoryDetailQueryTest
-------------------------------------------------------------------------------
Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.328 sec <<< FAILURE!
testHistoryVariable(org.jbpm.test.query.HistoryDetailQueryTest) Time elapsed: 0.047 sec <<< ERROR!
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:86)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:140)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
at org.jbpm.pvm.internal.history.model.HistoryVariableImpl_$$_javassist_39.getVariableName(HistoryVariableImpl_$$_javassist_39.java)
at org.jbpm.pvm.internal.history.model.HistoryVariableUpdateImpl.toString(HistoryVariableUpdateImpl.java:49)
at org.jbpm.test.query.HistoryDetailQueryTest.testHistoryVariable(HistoryDetailQueryTest.java:186)
After additional review it seems like it is required mainly for variable stuff since it uses persistent fields (to get variable name). Most likely is not required for others, the API is not too verbose in that matter.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/559176#559176]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[jBPM] - Transactions and jBPM
by Francis Tellina
Francis Tellina [http://community.jboss.org/people/francis1972] created the discussion
"Transactions and jBPM"
To view the discussion, visit: http://community.jboss.org/message/559159#559159
--------------------------------------------------------------
Hi all!
I have in charge to set up a small prototype for verifying if it's possible to port a vendor solution (Oracle Workflow) to jBPM.
In my OracleWorkflows there are many use cases where the execution is forked in two branches which both execute transactions. Then, in the JOIN node, if both nodes completed correctly transactions a commit is issued. Otherwise a rollback is executed.
I'd like to reproduce the same behaviour- I have arranged for the purpose a fork with two Java EJB Nodes which perform DML Statements. However, I have two doubts :
1) How can I coordinate transactions ? should I use BMT (via UserTransaction) and manually issue a commit() in the Join node ?
2) How do I know if some Statements fail, that is, if I have to issue a rollback() in the JOIN node ?
Thanks a lot in advance
Francis
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/559159#559159]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[JBoss Cache] - How to configure JDBCCacheLoader on JBoss 5 ?
by Francis Tellina
Francis Tellina [http://community.jboss.org/people/francis1972] created the discussion
"How to configure JDBCCacheLoader on JBoss 5 ?"
To view the discussion, visit: http://community.jboss.org/message/559156#559156
--------------------------------------------------------------
Dear all,
I'm trying to configure data caching on a JBoss 5.1.0 cluster. I'd like to use a JDBC Cache Loader instead of the default FileLoader.
So, looking at the Project docs, I've tried updating jboss-cache-manager-jboss-beans.xml with:
<property name="cacheLoaderConfig">
. . . . .
<property name="individualCacheLoaderConfigs">
<list>
*<bean class="org.jboss.cache.loader.JDBCCacheLoader">
<property name="cache.jdbc.datasource">java:/NMS</property>
</bean>*
</list>
....
</property>
Unfortunately when JBoss starts the following log error is issued:
Caused by: java.lang.IllegalArgumentException: Property is not readable: cache for org.jboss.cache.loader.JDBCCacheLoader
at org.jboss.beans.info.plugins.DefaultPropertyInfo.get(DefaultPropertyI
nfo.java:131)
at org.jboss.beans.info.plugins.BeanInfoUtil.getNestedPropertyInfo(BeanI
nfoUtil.java:115)
at org.jboss.beans.info.plugins.BeanInfoUtil.getPropertyInfo(BeanInfoUti
l.java:197)
at org.jboss.kernel.plugins.dependency.PropertyDispatchWrapper.execute(P
ropertyDispatchWrapper.java:77)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(Executio
nWrapper.java:47)
Can anybody give me some advice how to solve this issue? thanks alot
Francis
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/559156#559156]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
Re: [jboss-user] [JBoss Microcontainer Development POJO Server] - Implementing a non-flat deployment for Weld Integration
by Ales Justin
Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion
"Implementing a non-flat deployment for Weld Integration"
To view the discussion, visit: http://community.jboss.org/message/559150#559150
--------------------------------------------------------------
> > I can look into it what would be the best way to do this.
> > Unless you wanna do it yourself.
> Thanks! You can go ahead. :-)
OK, I have a few things ready, but now I need to know what do you need to make this work.
Currently I have this in place:
public synchronized Set<BeanDeploymentArchive> getLibraries() throws Exception
{
if (libs == null || checked.get() == false)
{
List<VirtualFile> excludedFiles = null;
Map<Module, Set<URL>> modules = provider.getMatchingModules();
for (Map.Entry<Module, Set<URL>> entry : modules.entrySet())
{
Set<URL> urls = entry.getValue();
if (excludedUrls != null && excludedFiles == null)
{
excludedFiles = new ArrayList<VirtualFile>();
for (URL eu : excludedUrls)
excludedFiles.add(VFS.getChild(eu));
}
Set<VirtualFile> files = new HashSet<VirtualFile>();
for (URL u : urls)
{
VirtualFile vf = VFS.getChild(u);
boolean include = true;
if (excludedFiles != null)
{
for (VirtualFile ef : excludedFiles)
{
if (vf.getParentFileList().contains(ef))
{
include = false;
break;
}
}
}
if (include)
files.add(vf);
}
if (files.isEmpty() == false)
{
ClassLoader cl = ClassLoading.getClassLoaderForModule(entry.getKey());
// is this module already installed; past CL stage -- should be
if (cl != null)
{
// TODO <----- your input needed here
}
}
}
checked.set(true);
}
return libs;
}
I can now return a set of matching modules, which have beans.xml as part of its resources.
This is mostly aimed at system deployments, though it can serve all deployments.
(it will be disabled once get past PS' DEPLOYERS phase)
Each module is mapped to beans.xml' owners; e.g. some-cdi-lib.jar.
Will this info be enough for you?
Or at which example / use case / code should I look for more info?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/559150#559150]
Start a new discussion in JBoss Microcontainer Development POJO Server at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[JBoss Web Services Development] - Choreography Implementation
by Xuan Song
Xuan Song [http://community.jboss.org/people/songxuanss] created the discussion
"Choreography Implementation"
To view the discussion, visit: http://community.jboss.org/message/559146#559146
--------------------------------------------------------------
Hi there,
Right now I'm studying service composition and already finished my study on Orchestration. When I turn to Choreography, however, I found it really hard for to come up with a solution to really implement a Choreography based composition.
WS-CDL is only used for description or simulation (work with pi4soa) and it is just a W3C Candidate recommendation, BPMN2 seems cannot be used for real implementation as well.
To be precise,
If i have 3 web services A, B, and C, How can I really build a Choreography based composition, to make A, B and C have a real peer-to-peer communication between one another?
Moreover, according to some search, few researchers have built engines to really execute ws-cdl liked file to really implement Choreography (such as OpenKnowledge and WS-CDL+), with the help of these engines, service A, B and C can really collaborate with one another (something like, once A sends B some message, B will have some kinds of reaction). However, they ar not really integrated with any IDE which makes it time consuming.
Is there any well supported solution to implement Choreography?
Kind Regrads~ and Thanks for your help.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/559146#559146]
Start a new discussion in JBoss Web Services Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[JBoss Web Services] - Choreography
by Xuan Song
Xuan Song [http://community.jboss.org/people/songxuanss] created the discussion
"Choreography"
To view the discussion, visit: http://community.jboss.org/message/559143#559143
--------------------------------------------------------------
Hi there,
Right now I'm studying service composition and already finished my study on Orchestration. When I turn to Choreography, however, I found it really hard for to come up with a solution to really implement a Choreography based composition.
WS-CDL is only used for description or simulation (work with pi4soa) and it is just a W3C Candidate recommendation, BPMN2 seems cannot be used for real implementation as well.
To be precise,
If i have 3 web services A, B, and C, How can I really build a Choreography based composition, to make A, B and C have a real peer-to-peer communication between one another?
Moreover, according to some search, few researchers have built engines to really execute ws-cdl liked file to really implement Choreography (such as OpenKnowledge and WS-CDL+), with the help of these engines, service A, B and C can really collaborate with one another (something like, once A sends B some message, B will have some kinds of reaction). However, they ar not really integrated with any IDE which makes it time consuming.
Is there any well supported solution to implement Choreography?
Kind Regrads~ and Thanks for your help.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/559143#559143]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month