tag:blogger.com,1999:blog-7836204352369514180.post7326424327879968772..comments2022-03-25T05:11:20.110+01:00Comments on Around the World in Java: CDI - A Major Risk Factor in Java EE 6Harald Wellmannhttp://www.blogger.com/profile/08039976160321882828noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-7836204352369514180.post-25577613694809703342010-11-14T23:44:21.079+01:002010-11-14T23:44:21.079+01:00I just ran a quick and dirty benchmark on the diff...I just ran a quick and dirty benchmark on the differences between the latest weld and weld 1.0.1 with a 5000 bean deployment, and the latest weld uses a third the memory and starts almost 5 times faster. <br /><br />Also all known heap and permgen leaks have been fixed, and there have been big improvements in runtime performance as well. <br /><br />Don't give up on weld just yet, it has come a long way since 1.0.1.Unknownhttps://www.blogger.com/profile/10314531675182493205noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-62912129857363838702010-11-10T19:56:40.395+01:002010-11-10T19:56:40.395+01:00Harald if you take the effort to move this to CDI ...Harald if you take the effort to move this to CDI we (CDI community) will take the effort to make this work for you ... <br /><br />--Rohit Kelapure<br />Apache Open WebBeans committerRohit Kelapurehttps://www.blogger.com/profile/12988550581111360779noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-81761101273636988832010-11-10T18:32:04.763+01:002010-11-10T18:32:04.763+01:00@Rohit: I'm afraid I can't - the applicati...@Rohit: I'm afraid I can't - the application is closed source.Harald Wellmannhttps://www.blogger.com/profile/08039976160321882828noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-59115324028032139662010-11-10T18:11:14.676+01:002010-11-10T18:11:14.676+01:00Can you post your application on Github... We woul...Can you post your application on Github... We would like to get it running on WebSphere Application Server 8 that supports CDI via Open Web BeansRohit Kelapurehttps://www.blogger.com/profile/12988550581111360779noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-65840877769768493212010-11-10T15:47:04.089+01:002010-11-10T15:47:04.089+01:00@philips1021: Of course you can combine Java EE 6 ...@philips1021: Of course you can combine Java EE 6 and Spring, but why on earth should I include Spring in my application just to do dependency injection?<br /><br />As I said, @EJB and @Resource injections do the job perfectly well in my project, without requiring any third-party libraries.<br /><br />On Glassfish, you can also use the OSGi Declarative Services model for dependency injection.<br /><br />Of course, you can use DS in any OSGi environment - it is easy to use, lightweight, no expensive classpath scanning and has IDE support in Eclipse.Harald Wellmannhttps://www.blogger.com/profile/08039976160321882828noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-83554430275848372382010-11-10T15:38:37.139+01:002010-11-10T15:38:37.139+01:00@Gurkan: Yes, I'd read about Siwpas, but I hav...@Gurkan: Yes, I'd read about Siwpas, but I haven't tried it yet. Maybe you'd find more people willing to check it out if the project had a more pronounceable name ;-)Harald Wellmannhttps://www.blogger.com/profile/08039976160321882828noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-25593884314936205842010-11-10T15:31:54.030+01:002010-11-10T15:31:54.030+01:00@daemon: Not sure what you mean by "XML drive...@daemon: Not sure what you mean by "XML driven development model" - in Java EE 6 you can get by without using almost any XML at all.<br /><br />In my project, all wiring is done by annotations or by convention. There is just a very simple web.xml for the Wicket servlet filter.<br /><br />I agree that Java EE 6 is awfully bloated with stuff you might never need and with legacy solutions still supported for backward compatibility.<br /><br />However, if you identify a small number of design patterns suitable to your project and stick with them, working with Java EE 6 is fairly easy.<br /><br />I had some Java beginners (but with lots of PHP experience) on my team who were able to work productively very quickly, once we had set up some project guidelines.Harald Wellmannhttps://www.blogger.com/profile/08039976160321882828noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-67937964375174679112010-11-10T13:20:09.693+01:002010-11-10T13:20:09.693+01:00I thought it was possible to use Java EE 6 and Spr...I thought it was possible to use Java EE 6 and Spring together and not have to use Weld for dependency injection.<br /><br />http://blog.springsource.com/2010/10/19/spring-3-on-a-java-ee-6-server/Brucehttps://www.blogger.com/profile/16143130075826359380noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-63318646041879933022010-11-10T13:18:42.687+01:002010-11-10T13:18:42.687+01:00Did you checkout SIwpas, Simple Web Profile Applic...Did you checkout SIwpas, Simple Web Profile Application Server? We support CDI and other cool stuff of Java EE. We have also 24x7 support. <br /><br />Checkout from http://mechsoft.com.tr/Mechsoft/software/en/acikkaynak/siwpas.htmlGurkan Erdogduhttps://www.blogger.com/profile/16924990278724946080noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-5692224611031488252010-11-10T12:39:13.035+01:002010-11-10T12:39:13.035+01:00I tried CDI as well, but stopped using it before i...I tried CDI as well, but stopped using it before it had the chance to eat memory. The annotation and xml driven development model was a pain to use and I'm happy with Google Guice now.<br /><br />The hole Java EE platform is not as consistent as it should be and there are still ancient things in it. I prefer to use a light weight approach with Servlet, JPA, and Guice, and other libraries if needed. Java EE is still a pain!Unknownhttps://www.blogger.com/profile/07328168099002893532noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-77121147489898630092010-11-05T18:38:27.248+01:002010-11-05T18:38:27.248+01:00Thanks for sharing. Yes, you're right. CDI is ...Thanks for sharing. Yes, you're right. CDI is a great programming model but seems like the implementations can't keep up with it. <br /><br />The part I dislike the most are the proxies everywhere and that the classpath has to be scanned every time on startup. However, I don´t think that the problem comes from the teams behind the implementations, but from the language itself, it is very limited for this type of solutions.Germán Escobarhttps://www.blogger.com/profile/05863454066402527692noreply@blogger.com