You should just need a jboss.xml in the META-INF folder to specify the jndi names you want to use.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">
The contents of ejb-name need to match the ejb-name in the ejb-jar.xml
I am not sure if you need the resource-managers element at the bottom I just know my file contains it and it works.
Thanks that solved my problem, I didn't know about that tag. solved my problem wonderfully.