I created an 'Application Client Project' (that has static main method) in Eclipse to be able to generated messages to a Queue & deployed it in JBoss AS 7. However, the dependency injection (code below) is not working for some reasons.
Although I could see the the JNDI Bindings in the JBoss deployment.
I guess your lookup name is not found. You may want to go to the deployment descriptor or JBoss configuration to check the name of the ConnectionFactory.
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
Gift giving made easy with the permaculture playing cards