On Jan 4, 2008 8:58 AM, puli <[EMAIL PROTECTED]> wrote: > > > Yeah this is what i meant and Thanx for your response. > > Then can u help me how can i write the POJO call out to EJB. Is there any > sample available anywhere?
I'd use the Spring EJB APIs to achieve this: http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/ejb/access/package-summary.html For an example of using these APIs to invoke remote EJBs, see the section named 'Accessing EJBs with Spring' in the following article: http://www.javaworld.com/javaworld/jw-02-2005/jw-0214-springejb.html The key is using the proxies to invoke the remote EJB. > How can i write the client application?means how can i access the > servicemix. You will need to create some kind of Java application that will send a XML message into the JBI container via some component. For example, it's pretty easy to send messages using JMS so you could create a small application that sends JMS messages to a JMS queue in the JBI container and forwards the message along to your other components. Below is an example component flow demonstrating this: client application sends jms message --> servicemix-jms queue --> (other components here) --> servicemix-bean POJO to invoke an EJB This is just an example, but it's a good demonstration of how an EJB can be invoked. Bruce -- perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' Apache ActiveMQ - http://activemq.org/ Apache Camel - http://activemq.org/camel/ Apache ServiceMix - http://servicemix.org/ Apache Geronimo - http://geronimo.apache.org/ Blog: http://bruceblog.org/
