package com.atomikos.demo;

import org.apache.camel.CamelContext;
import org.apache.camel.ProducerTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DemoCamelBridgeApplication implements CommandLineRunner {

	public static void main(String[] args) {
		SpringApplication.run(DemoCamelBridgeApplication.class, args);
	}

	@Autowired
	public CamelContext camelContext;
	
	@Override
	public void run(String... args) throws Exception {
		ProducerTemplate template = camelContext.createProducerTemplate();
		template.sendBody("noXaJms:queue:inbound","Hello, world!");
	}
	
	

}
