Hey Dushy Inguva,
I think answer to your question lies more or less on which
EJB version you are using.....
Well, with EJB 3.0 there is no need to specify any mapping in your xml files and you can directly invoke the references(with jndi name) through dependency injection.
Is this is what you are referring to ???
Cheers !!!
Sumit Malik