It worked.I am now able to access my remote EJB.
Now do you know how can we use connection pools in my scenario. It's like this:- I have already a database, i m using connection pools as configuration in xml files. in web archive we can run it as web.xml, how can we run it on EJB jar file. I must not use Entity beans.Which is not my business requirement as existing legacy system has lots of data.
Thanks in advance