Hi Chao,
In a nutshell they will use the same kind of code like your remote clients. One thing you can do is to deploy your ejbs and look in the samples that your container provides and get a remote client that connects to the server and invokes a business method on your
ejb. You probably need to twist the code little bit in order to satisfy your needs, but this shouldn�t be very difficult. Once this works you can copy the code in your
JSP or
servlet and see how it works. What you�ll end up doing is far from being a �commercial� version of your application, but you�ll have something that will help you understanding how things work. Finally you need to do some designing work, using a service locator, data transfer objects, session fa�ade, business delegates, etc. Lot of work true, but
you should remember that everything should start from having a clear understanding of the small and fundamental concepts.
Regards.