Hope this help
This is Stand Alone Client for EJB 3.0 in JBoss :
posted 8 years ago
Thanks pulkit, i have tried this way its working.
But i want to use dependency injection instead of jndi lookup.
I have googled a couple of examples (using dependency injection for jndi look up instead of using initial context for lookup), but for me the business interface instance comes as null.
See..according to my experience dependency injection gets failed due to following reason :
1)You are using server which does not support DI in web container.eg JBoss 4.x(DI work in EJB not in WEB)
2)You must have giving wrong JNDI name.Please refer to JNDI console of your server and see naming convention they follow.
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
ScroogeXHTML - small and flexible RTF to HTML converter library