public CamelSE getCamelSE() { final AbstractComponent component = super.getComponent(); assert component != null; return (CamelSE) component; }
listener.getLogger().log(Level.FINE, "sendJMSMessage"); JmsBC component = (JmsBC) listener.getComponent(); GenericObjectPool<JMSProviderConnection> pool = component.getJmsProducerConnections() .get(listener.getProvides()); JMSProviderConnection conn; try { + "linked to the following endpoint: " + exchange.getEndpoint()); } else { listener.getLogger().log( Level.INFO, "Try to send JBI message to '" + conn.getDestinationName() listener.getLogger().log(Level.SEVERE, "Can not create the JMS message from JBI message.", e); if (e instanceof PEtALSCDKException) { listener.getLogger() .log(Level.INFO, "Message sent to '" + conn.getDestinationName() + "'.");
public void onJBIMessage(final Exchange exchange) throws PEtALSCDKException { // Simply log Response content if (this.listener.getLogger().isLoggable(Level.FINE)) { this.listener.getLogger().fine( "JMS BC receive an unhandled response message:\n" + SourceUtil.createString( exchange.getOutMessage().getContent())); } } }
@Override public void init() { super.init(); final Monitoring monitoringMBean = (Monitoring) ((ActivitiSE) this.getComponent()).getMonitoringBean(); this.probeAsyncExecutorThreadPool = monitoringMBean.getProbeAsyncExecutorThreadPool(); this.probeDatabaseConnectionPool = monitoringMBean.getProbeDatabaseConnectionPool(); }
public void onJBIMessage(Exchange exchange) throws PEtALSCDKException { // Simply log Fault Fault fault = exchange.getFault(); try { listener.getLogger().log( Level.INFO, "JMS BC receive a Fault from an other component : \n" + SourceUtil.createString(fault.getContent())); } catch (PEtALSCDKException e) { throw new PEtALSCDKException("Error logging fault received on JMS BC", e); } } }
@Override public BcGatewayComponent getComponent() { final AbstractComponent component = super.getComponent(); assert component != null; return (BcGatewayComponent) component; }
/** * Transform the NormalizedMessage of a JBI MsgExch into a TextMessage. The * content , properties of the IN NormalizedMessage are set. * * @param exchange * @param jmsMessage * @throws JMSException * writing properties to the TextMessage * @throws TransformerException * NormalizedMessage content access error * @throws IOException * NormalizedMessage content access error * @throws PEtALSCDKException */ private void transform(final Exchange exchange, final TextMessage jmsMessage) throws JMSException, TransformerException, IOException, PEtALSCDKException { listener.getLogger().log(Level.FINE, "transform"); NormalizedMessage in = exchange.getInMessage(); // TODO: Do we attach the global properties of the exchange? // set normalized message properties this.setMessageProperties(jmsMessage, in); // set the SOAP Action operation in the JMS message this.setServiceOperation(exchange, jmsMessage); // set content String inSourceAsString = SourceUtil.createString(in.getContent()); jmsMessage.setText(inSourceAsString); }
@Override public RESTComponent getComponent() { return (RESTComponent) super.getComponent(); } }