How enable a camel transaction from File consumer to JMS producer?

I have a route which picks up a file, splits it into individual records, and posts these records to a JMS topic. from(“ftp:…” .unmarshal(bindy) .split(body()) .marshal(jaxb) .to(“activemq:topic:myTopic”); This has been working fine, until recently something went bizarrely wrong with ActiveMQ, and it successfully processed the first few messages in the file and then gave some…

Discover more

Swap list of tuples in Python with multiple elements

I am trying to swap the cities and their respective locations in the list of tuples: my_cities = [(“London”, “Rome”, 38.197274, -84.86311), (“Michigan”, “Denver”, 39.161921, -75.526755), (“Paris”, “Lisbon”, 44.95, -93.094)] so every city gets a new pair, so the output should be a list of tuples with the new city pairs + their locations. I’ve…

Discover more