-2

Is it possible to use the following APIs with tomcat (as a lightweight server):

JSF, JPA, JTA, JAAS, CDI, Bean Validation.
  • Yes, it is. But it's up to you to configure them to work properly. At least for JSF, JPA and CDI, you just drop the relevant jars in WEB-INF/lib and they will work. – Luiggi Mendoza Jun 13 '15 at 17:12
  • Thanks. but can I use Java transactions without EJB. – Mohammed Bounaga Jun 13 '15 at 17:17
  • Better think of TomEE instead (Tomcat's successor). Why do you want to avoid EJBs, by the way? EJBs not only provide transaction management but many more features like security, pooling, concurrency management... – Tiny Jun 13 '15 at 17:46
  • Thank you @Tiny for your help. I just want to avoid using a heavyweight app server and instead use declarative and programmatic transactions and security. which I think is possible with tomcat. Also spring framework provides the same services without the need for an app server. I am wrong? – Mohammed Bounaga Jun 13 '15 at 18:31
  • App servers are no longer heavy-weight. Take a look at WildFly or GlassFish and you're ready to go. Even when you go the hard way and add lots of libs to Tomcat, you'd be still missing the container glue code. – Harald Wellmann Jun 13 '15 at 18:34
  • @Tiny: TomEE is not Tomcat's successor. TomEE extends Tomcat into a full app server. – Harald Wellmann Jun 13 '15 at 18:34

1 Answers1

0

Yes. Except of JAAS.

​​​​​​​​

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555