EJB 3 and Struts

Hey.. I programmed the last 1-2 month with Struts 1.3 simple Web-Application. I have talked with the database about simple sql-queries. Now I want to write the backend with ejb 3, but in all tutrials they write that I have to start the hole application in an EAR-File an deploy it in the application server.

But is the application-server not only necessary for the ejb side and not for the struts? Can I use the ejb in a application-server and the website part in a tomcat on a other server? Or must they always be in the same application server?

Thanks.. sry for the very bad english, I hope you understand the problem..

[640 byte] By [RooKeea] at [2007-11-26 15:37:30]
# 1
Or must they always be in the same application server?They can be on different app servers.
annie79a at 2007-7-8 21:55:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Running in the application server means you don't need to have extra stuff since the web container is local to the ejb container. If you want to call the ejb from tomcat as a ejb client, you will need appserver-rt.jar and j2ee.jar as well as stub. I hope this helps.
skoizumi2133a at 2007-7-8 21:55:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

> Running in the application server means you don't

> need to have extra stuff since the web container is

> local to the ejb container.

Local interfaces cannot be guaranteed to be used by web containers. Servers have different classloaders for web container and ejb container.

annie79a at 2007-7-8 21:55:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...