Posts tagged cdi
The whole last week I was migrating my current project from the JBoss AS 6 M2 to the JBoss AS 6 CR1. First of all I had been thinking it should be easy, just switch few things, use other Java packages and so on. Niether I had been expecting some problems nor it will take a week. So I’ve just started my migration “project” – yep, you should always treat it that way, it isn’t just renaming packages or tweaking some configuration files. It’s a huge project that either can take a hour or a week. So be prepared!
To move to the JBoss CR1 I had to also switch to latest versions of our internal libraries, commonly called SML Commons. The main problem was with the CDI Extension package, which base on WELD. During switching the version I discovered some problems during an application deployment. First of all Bean Manager was missing in JNDI context. Googling and looking through existing solution didn’t help. I had to prepare a demo application and try to register an issue with JBoss’ JIRA. The problem was, that my demo application was working just fine with the JBoss CR1. Just Adam was able to break it – the trick was to include in EAR package another module as a Java JAR archive with CDI enabled beans. Then the application blown up!Sandy Wexler film trailer
After few hours we got answer to the problem – add additional beans.xml file to WAR archive!
So I thought the rest should be easy, but wasn’t 😛
The next problem was with the application’s tests. All the tests that were base on Arquillian started yielding – wrong dependency in Maven pom, I had to remove few of them, cut out some unused profile and everything went smoothly.
So, the next problem was with Selenium and it looked strange as the whole JVM blown up with irritating “red zone” message. And till now I don’t know what it was, maybe just wrong configuration or missing dependency. And during solving that problem I discovered a really interesting CDI behaviour. When you defining a bean with @Produces annotation you have access to the InjectionPoint object. It provides many different information about where your bean will be injected.
But there is a slight diference how InjectionPoint.getBean() is working. If your @Produces annotated bean will be used / injected in already CDI managed bean, getBean() will return that bean. But in other way it will return null 😛
Finally, I gave up 🙁 After passing all that problems, another one hit me directly in the face and I haven’t had enough energy to solved it. I shelved all my changes with IntelliJ IDEA and returned to normal coding work, ufff…. 🙂
And just to change my attitude, today’s morning I got monthly newsletter from TED and I want to share with you that brilliant talk about why bosses and meetings are boilerplate at work, enjoy!
The Space Between Us (2017)
|Producer||:||Richard Barton Lewis.|
|Release||:||January 26, 2017|
|Country||:||United States of America.|
|Production Company||:||Southpaw Entertainment, STX Entertainment, Los Angeles Media Fund (LAMF).|
|Genre||:||Romance, Adventure, Science Fiction, Drama.|
‘The Space Between Us’ is a movie genre Romance, was released in January 26, 2017. Peter Chelsom was directed this movie and starring by Asa Butterfield. This movie tell story about A young man raised by scientists on Mars returns to Earth to find his father.
Do not miss to Watch movie The Space Between Us (2017) Online for free with your family. only 2 step you can Watch or download this movie with high quality video. Come and join us! because very much movie can you watch free streaming.
watch full The Space Between Us 2017 movie online, Watch The Space Between Us 2017 Online Viooz, movie The Space Between Us 2017 download, The Space Between Us streaming, Watch The Space Between Us 2017 Online Free 123movie, Watch The Space Between Us 2017 Online Free, watch full film The Space Between Us 2017 online, download full movie The Space Between Us 2017, watch The Space Between Us 2017 film now, movie The Space Between Us 2017 trailer, The Space Between Us movie download, Watch The Space Between Us 2017 Online Free Putlocker, Watch The Space Between Us 2017 Online 123movies, The Space Between Us film download, Watch The Space Between Us 2017 Online Putlocker, Watch The Space Between Us 2017 Online Megashare, Watch The Space Between Us 2017 Online Free Viooz, The Space Between Us 2017 Watch Online, Watch The Space Between Us 2017 For Free online, film The Space Between Us 2017 trailer, The Space Between Us live streaming film online, Watch The Space Between Us 2017 Online Free netflix, The Space Between Us movie, The Space Between Us 2017 movie streaming, Watch The Space Between Us 2017 Online 123movie, Streaming The Space Between Us 2017 Online Free Megashare, streaming The Space Between Us film, streaming film The Space Between Us, Watch The Space Between Us 2017 Online Free megashare, Watch The Space Between Us 2017 Online Free hulu, Streaming The Space Between Us 2017 For Free Online,