Hi,
as far as I know, the "PROVIDER_URL" should be "jnp://localhost:1099" for JBoss 5.
The rest should work.
Did you check what is bound in JNDI using JNDIView? https://community.jboss.org/wiki/DisplayTheJDNITreeWithTheJMXConsole
If this does not help, please provide more details about your application.
Best regards
Wolfgang