You can, but it’s not meant to happen that way. Tomcat is a servlet-container, and only application servers are required to support EJB.
Tomcat with integrated EJB support is basically TomEE. Replace Tomcat by TomEE. You can keep using the Tomcat server plugin in IDE to manage TomEE.
More Related Contents:
- Simplest way to serve static data from outside the application server in a Java web application
- Get ServletContext in JAX-RS resource
- Retrieve current Windows user in Java EE web application for Single Sign On purposes
- how to enable hot deploy in tomcat
- How to avoid storing passwords in the clear for tomcat’s server.xml Resource definition of a DataSource?
- Recommended way to save uploaded files in a servlet application
- How to properly install and configure JSF libraries via Maven?
- java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException
- When is it necessary or convenient to use Spring or EJB3 or all of them together?
- Does Tomcat load the same library file into memory twice if they are in two web apps?
- Where are compiled JSP Java (*__jsp.java) files?
- Can’t access Tomcat using IP address
- EJB 3.1 @LocalBean vs no annotation
- How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses?
- Handling service layer exception in Java EE frontend method
- IntelliJ and Tomcat.. Howto..?
- Stop scheduled timer when shutdown tomcat [duplicate]
- EJB Transactions in local method-calls
- Access-Control-Allow-Origin: * in tomcat
- Get the server port number from tomcat without a request
- Where to use EJB 3.1 and CDI?
- How does Tomcat locate the webapps directory?
- Correct usage of Stateful Beans with Servlets
- How to use HttpServletRequest#getParts() in a servlet filter running on Tomcat?
- Access Tomcat Manager App from different host
- CORS – Tomcat – Geoserver
- How to store a file on a server(web container) through a Java EE web application?
- Java web service without a web application server
- How can I map multiple contexts to the same war file in Tomcat?
- Running Maven project on Tomcat from Eclipse