Thanks for your prompt response!
I am interested in trying the embedded mode. I checked the document that you pasted, it's too abstract. Actually, it just shows how to deploy one RA into the container.
Are there any detailed samples or guides to explain how to invoke the deployed RA ? for example, issue one outbound request from Java code; or receive one inbound notification.