camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raulsperoni <r...@mgcoders.uy>
Subject JpaConsumer endpoint not showing up in hawtio.
Date Thu, 27 Oct 2016 12:38:30 GMT
Hi, i'm using wildly-camel, camel 2.16.3, hawtio (1.4.60) comes really handy,
but i can't get routes with jpa consumer endpoint to appear in the list, in
fact i'm using direct channels to join the jpaconsumer route with the rest.

Do you have any idea why this is happening?

Here is an example...

//EventoPieza
jpaEventoPieza.setCamelContext(getContext());
jpaEventoPieza.setEntityType(EventoPieza.class);
jpaEventoPieza.setEntityManagerFactory(entityManagerFactory);
jpaEventoPieza.setTransactionManager(transactionManager);
jpaEventoPieza.setEndpointUriIfNotSpecified("jpa://archivoEventoPieza");
//Consumer
jpaEventoPieza.setConsumeDelete(false);
Map<String, Object> prop = new HashMap<>();
prop.put("delay", delay);
prop.put("namedQuery", "pieza.paraArchivar");
jpaEventoPieza.setConsumerProperties(prop);
jpaEventoPieza.setBackoffMultiplier(backoff_multiplier);
jpaEventoPieza.setBackoffIdleThreshold(backoff_threshold);
jpaEventoPieza.setMaximumResults(1000);

from(jpaEventoPieza).to("direct:archivarEventoPieza").autoStartup(isHabilitado());
        from("direct:archivarEventoPieza").routeId("A_" + id_prefix)
                .setHeader("key",
constant(Configuracion.GENERAL_ARCHIVO_OFFSET))....


Thanks!




--
View this message in context: http://camel.465427.n5.nabble.com/JpaConsumer-endpoint-not-showing-up-in-hawtio-tp5789346.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message