Well even though nobody helped me out I have solved the problem myself --------
Create an sar file and put a llib with all the related jar files and deploy the code in the "all" configuration. Now you can call the resource adapter from a session bean.
--jar (which has all the resource adaptor files)
-rar (with the ra.xml file inside sar)
If anybody has any question. Reply to this link and I'll try to answer.