nothing stops you from perfoming a regular lookup the way you access a remote ejb, but its not a good practice. all these are based on RMI anyway (it is the back end protocol for ejbs)
you can alternatively use a web tier component in between, although this depends on your own strategies and complexity of your work