开发者

Useful environment for CDI / weld web-applications

开发者 https://www.devze.com 2023-01-19 02:05 出处:网络
I am new to weld and consider what environment is useful for a web-application using CDI (Weld). I want to use JSF or Wicket for presentation and JPA/Hibernate for my persistence layer (including Tran

I am new to weld and consider what environment is useful for a web-application using CDI (Weld). I want to use JSF or Wicket for presentation and JPA/Hibernate for my persistence layer (including Transaction-Management). The obvious scenario is to use a JBoss or Glassfish application server with EJB3 surrounding, but is there not a chance to use tomcat or other “lightweight” servlet-containers in 开发者_如何学Ca sensible way? Or is it absurd to try to develop a CDI-webapplication without surround of EJB/Seam?

I am interested in some user-experience!


There is the unportable extension Servlet support for Weld.

Here you can find how to setup the environment in order to have CDI working on tomcat.

(As a sidenote, I'd share my disappointment that CDI hasn't actually been specified so that it can run in any environment. So (as you can see on the above page) many unportable extensions start to appear, and that's exactly what the JBoss guys are accusing spring of)

0

精彩评论

暂无评论...
验证码 换一张
取 消