Spring framework with JBOSS tutorial
by Sam Wun
Dear all,
Is there any tutorial or example I can follow for using Spring
framework in JBOSS?
Very appreciate for any suggestion and help.
Thanks
16 years, 9 months
[JBoss jBPM] - Re: JBPM BPEL 1.1.1 Getting variables of processInstance
by evilsephiroth
yes i was doing something similar to get the variables. The problem is the parsing of the element. I want to implement a generic parser for all the processes deployed on the console. But every process has its implementation of variables so i can't effectively know in what node is the variable data(some in the first child, some other in nested childs).
if (variable instanceof MessageValue) {
| MessageValue messageElement = (MessageValue) variable;
| Map partElems = messageElement.getParts();
|
| // Get the first Element
| String partName = (String) partElems.keySet().iterator().next();
| org.apache.xerces.dom.DeferredElementNSImpl partElement = (org.apache.xerces.dom.DeferredElementNSImpl) partElems.values().iterator()
| .next();
| String valueVar=partElement.getFirstChild().getFirstChild().getNodeValue();
| }
This code won't work for all processes because in another process this line will be :
valueVar=partElement.getFirstChild().getNodeValue();
I was thinking a node searcher/comparer to variable Name but i hope something simpler will come out...
any help is appreciated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241408#4241408
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241408
16 years, 9 months
[JBossWS] - Re: Newlines/spaces in SOAPMessage
by alfred.rsa
Using WireShark to intercept the transmission, I found that the JBoss SOAPElement.setvalue implementation seems
to add a carriage return linefeed combination to my text which causes the Web Service to crash:
0000 37 32 0d 0a 3c 65 6e 76 3a 45 6e 76 65 6c 6f 70 72..<env:Envelop
| 0010 65 20 78 6d 6c 6e 73 3a 65 6e 76 3d 27 68 74 74 e xmlns:env='htt
| 0020 70 3a 2f 2f 73 63 68 65 6d 61 73 2e 78 6d 6c 73 p://schemas.xmls
| 0030 6f 61 70 2e 6f 72 67 2f 73 6f 61 70 2f 65 6e 76 oap.org/soap/env
| 0040 65 6c 6f 70 65 2f 27 3e 3c 65 6e 76 3a 42 6f 64 elope/'><env:Bod
| 0050 79 3e 3c 73 65 61 72 63 68 44 6f 63 44 61 74 61 y><searchDocData
| 0060 52 65 71 75 65 73 74 3e 3c 66 5f 6e 72 3e 74 65 Request><f_nr>te
| 0070 73 74 5f 66 6e 6f 0d 0a st_fno..
When I use Sun's SAAJ this doesnot happen
Any ideas?
Regards Alfred
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241399#4241399
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241399
16 years, 9 months