So i have a java program running as a lib on a server. I need to just simply run a method within that library. In order to do so through J2EE, i need to get a call from a JSP -> EJB ->ResourceAdapter->Method. So i have the Reasource Adapter and method figured out. The resoruce adapter has an interface that listens for messages or calls when deployed to a server. So basically i'm wondering about the bean. How do i get it to connect to that interface on the Resource Adapter? The interface on the RA has code like this:

boolean methodcall();

So it needs to recognize it's being invoked, and then go off and do a contract and run. So how would i invoke that to run, from the EJB?

Thanks