@Override public void sendEvent(Event event, String targetNamespace, String targetService) { try { QName service = new QName(targetNamespace, targetService); InOnly inOnly = new InOnlyImpl(UUID.randomUUID().toString()); inOnly.setService(service); inOnly.setOperation(new QName("event")); NormalizedMessage msg = inOnly.createMessage(); inOnly.setInMessage(msg); msgProperties.applyToMessage(msg); String xml = Transformer.toXml(event); msg.setContent(new StringSource(xml)); endpoint.sendSync(inOnly); } catch (MessagingException e) { throw new RuntimeException(e); } catch (SerializationException e) { throw new RuntimeException(e); } }