hi
can send to me sample code aboute ServiceInvoker and configuration
thank's
"tommy111" wrote:
hi
can send to me sample code aboute ServiceInvoker and configuration
thank's
Hi...
I have a similar problem, with JBoss [SOA] SOA_4.2.0.GA_TP02 (build: SVNTag=SOA_4.2.0.GA_TP02 date=200807081230).
When a use deliverAsync it works fine, but when i use deliverSync i get a error (org.jboss.soa.esb.listeners.message.MessageDeliverException: Failed to deliver message).
I use a webservice deployed as an .ear, in the class that sends the messsage the content looks like this.
final ServiceInvoker serviceInvoker = new ServiceInvoker(serviceCategory, serviceName); Message message = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML); final Call call = new Call(); call.setMessageID(new URI(UUID.randomUUID().toString())); message.getHeader().setCall(call); message.getAttachment().put(ConstMessage.ATTACHMENT_NAME, attachmentName); message.getAttachment().put(ConstMessage.ATTACHMENT_REQUEST, attachmentValue); message = serviceInvoker.deliverSync(message, TIMEOUT_VALUE);
probe = probeFactory.unMarshaller((String)message.getAttachment().get(ConstMessage.ATTACHMENT_REQUEST)); final ProbeDatabaseBras bras = databaseInterface.getProbe(); sync(probe); message.getAttachment().put(ConstMessage.ATTACHMENT_REQUEST, probeFactory.marshaller(probe)); return message;