Hi,

In different part of the documentation, it is mentioned that a bean can be
declared as a jndi reference. This could be done through Java coding as
using spring configuration file. Can you help me and show me how to
transpose the following code into a spring jndi bean declaration ?

"The object instance that is used to consume messages must be explicitly
registered with the Registry. For example if you are using Spring you must
define the bean in the spring.xml; or if you don't use Spring then put the
bean in JNDI."

// lets populate the context with the services we need
// note that we could just use a spring.xml file to avoid this step
JndiContext context = new JndiContext();
context.bind("myBean", new SayService("Good Bye!"));

Regards,

Charles




-- 
View this message in context: 
http://www.nabble.com/How-declare-a-bean-as-a-JNDI-ref-in-Spring-tp16096930s22882p16096930.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to