Piotr Nowicki's Homepage

"Simplicity is the ultimate sophistication."

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Blog
  • Exam Simulator
  • Gallery
  • Contact me

Tag Archives: testng

Inject Java Properties in Java EE Using CDI

Posted on June 17, 2012 by Piotr | 9 Replies

The aim of this post is to show you how, using CDI, you can inject Java properties entries (those in *.properties files) directly into your Java class. This is somewhat similar to the Spring’s @Value annotation I needed in my plain Java EE project.

The whole code can be found on GitHub so feel free to clone it, use it or make any changes you like.

Continue reading →

Posted in EJB, Java.

Categories

  • EJB (16)
  • Java (57)
  • Misc (18)
  • Ubuntu (21)
  • Windows (1)
  • WWW (6)

About me

profile for Piotr Nowicki at Stack Overflow, Q&A for professional and enthusiast programmers
​
Java Code Geeks

Recent posts

  • Asynchronous CDI Events
  • Java EE 7: JMS 2.0 With Glassfish v4
  • EJB Inheritance is Different From Java Inheritance
  • Defining EJB 3.1 Views (Local, Remote, No-Interface)
  • Entities as Local Interface Parameters Can Harm You

My Twitter

Latest on twitter from p_nowicki 
  • loading...
Follow @p_nowicki

Java community

  • Down Home Country Coding With Scott Selikoff and Jeanne Boyarsky
  • ExamLab OCPJP Exam Simulator
  • GeeCON 2012
  • Implosion-Media blog
  • Java Ranch – a friendly place for Java greenhorns!
  • Majson's blog
  • NoBlogDefFound – Tomasz Nurkiewicz

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
  • About
  • Blog
  • Exam Simulator
  • Gallery
  • Contact me
Proudly powered by WordPress