[JBoss Seam] - Manual flush not working
by KimLord
I am trying to do some post processing after a record is entered into a database and am finding the flush is not causing the record to be written. This is my code:
| @Override
| public String persist() {
| String retval = super.persist();
| EntityManager em = (EntityManager)Component.getInstance("entityManager", true);
| em.flush();
| moveTempRecord();
| return "success";
| }
|
| public void moveTempRecord() {
| log.info("Calling UpdateDB_NID_SUB.loadSubTargetStrength");
| UpdateDB_NID_SUB ACINTDatabase_loader = null;
| ACINTDatabase_loader.loadSubTargetStrength();
| }
In stepping through the code, the problem is that the records are not there for the moveTempRecord method to work. I thought the flush would take care of that. If there is another way to do this, please let me know.
Thank you,
Kim
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084729#4084729
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084729
18 years, 9 months
[JBossWS] - Re: Necessary artifacts/descriptors for JAX-WS web service
by palin
"bernhard_pauler" wrote : I'm somewhat lost. I don't know what artifacts/descriptors are needed for a >JAX-WS< web service...
|
| I start with a handwritten WSDL file and use the wsconsume tool to generate the annotated Java source code. I know I have to put the classes in the 'classes' directory and the WSDL file in the 'wsdl' directory under WEB-INF. What descriptors need to go into the WAR file for deployment, which can be generated and how do they need to look like?
|
| I couldn't find any thorough/step-by-step tutorial on this topic (the "JBossWS 2.0.GA - JAX-WS User Guide" is fairly incomplete in my opinion).
See section 2.1 (POJO endpoints) and 2.2 (SLSB endpoints); anyway the full documentation is coming back soon on the wiki (as soon as the its host is fixed or replaced).
anonymous wrote : jaxrpc-mapping.xml, jboss-web.xml, web.xml, webservices.xml?
You only need web.xml if using pojo endpoints, none of them is using ejb3 slsb endpoints.
Bye
Alessio Soldano
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084726#4084726
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084726
18 years, 9 months
[JBoss jBPM] - Transition script bug
by mikes222
Hello!
Seems there is a bug in jBPM 3.2.1 when using Scripts in Transistions. I wrote a script condition for a transition like this one:
new Boolean(DataObject.hasNode("Connector.Xml.Data.idx.request.signoff"));
hasNode returns boolean (integral type), so I convert this to Boolean.
jBPM though answers with
org.jbpm.JbpmException: transition condition new Boolean(DataObject.hasNode("Connector.Xml.Data.idx.request.sign
on")); evaluated to non-boolean: java.lang.String
I found in JbpmExpressionEvaluator in line 39 the following code:
result = evaluator.evaluate(dollarExpression, Object.class, usedVariableResolver, functionMapper);
which should be imho:
result = evaluator.evaluate(dollarExpression, Boolean.class, usedVariableResolver, functionMapper);
I am not able to test the changes, but it might be necessary to change also the method convertStaticValueToExpectedType() in ExpressionEvaluatorImpl
greetings from Austria,
mikes222
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084720#4084720
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084720
18 years, 9 months