3637383940414243
} @Override protected JndiRegistry createRegistry() throws Exception { JndiRegistry jndi = super.createRegistry(); jndi.bind("myBean", new MyFooBean()); return jndi; }
3637383940414243444546
return false; } @Override protected JndiRegistry createRegistry() throws Exception { foo = new MyFooBean(); bar = new MyDummyBean(); JndiRegistry jndi = super.createRegistry(); jndi.bind("foo", foo); jndi.bind("bar", bar);
3536373839404142
@Test public void testMvelLanguage() throws Exception { MockEndpoint result = getMockEndpoint("mock:result"); result.expectedBodyReceived(); template.sendBody("direct:testmvel", new MyFooBean()); }