Hello,

I have the following routes:


public void configure() throws Exception {
        
from("activemq:queue:purchaseorder:transid").beanRef("purchaseOrderService",
"getByTransId(String)");
        
from("activemq:queue:purchaseorder:externalId").beanRef("purchaseOrderService",
"getByExternalId(String)");
        }



and I call it using:

        PurchaseOrder po = (PurchaseOrder)
camelTemplate.sendBody("activemq:queue:purchaseorder:transid",
            ExchangePattern.InOut, poid);
                System.out.println("POID: " + po.getTranId());


The server throws and AmbiguousMethodCallException.  I thought the
activemq:queue:purchaseorder:transid route would differentiate the method
call from activemq:queue:purchaseorder:externalId. Am I going about this the
wrong way?

-----
Buzzterrier

http://buzzterrier.blogspot.com/ View my blog: Ordinary Average Developer... 
-- 
View this message in context: 
http://www.nabble.com/AmbiguousMethodCallException-tp24042324p24042324.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to