Category Archives: CDI

Released : CDIProperties – v.1.0.0

Inspired by the tutorial about writing CDI extensions I wrote several days ago I created a CDI extension which targets exactly this topic CDIProperties This handy library enables a CDI (in a standalone or application server environment) application to directly inject properties from a property file. It’s extensible via an SPI, so that you can […]

 

0
Kudos
Don't
move!

Read more

Tutorial: Writing your own CDI extension

Today I will show you how to write a CDI extension. CDI provides a easy way for extending the functionality, like adding own scopes, enabling java core classes for extension, using the annotation meta data for augmentation or modification, and much more. In this tutorial we will implement an extension that will inject properties from […]

 

6
Kudos
Don't
move!

Read more

DataFX – @Named support (accepted)

During the christmas and new year holidays I implemented the @Named feature for DataFX. It’s already accepted and merged into the validation branch of DataFX (Thanks to Hendrik Ebbers). This feature enables a user to inject different instances of a bean into a controller, distinguished by a resource name via @Named annotation. You can, for […]

 

1
Kudos
Don't
move!

Read more

Tutorial: How to use JAX-RS and CDI together

Hi, because it’s relative hard to figure out, how to do it, I would like to show you how to combine JAX-RS and CDI. Preparation You need a Glassfish v3.x where we will run this application Gradle at least in version 1.0 Let’s start with a minimal application “The Greeter”. If you call “<your_host>/GreetMeWithJaxRSAndCDI/rest/greet/<NAME>” it […]

 

20
Kudos
Don't
move!

Read more

Using hot-deploy with Netbeans and Glassfish

One of the nice features, when you were using Netbeans 7.x and Glassfish 3.x, is the hot-deploy feature. This means, when you change a class or web-page, after saving the file is compiled (if required) and directly deployed to the deploy-location of your project. This can save a lot of time, because you had not […]

 

3
Kudos
Don't
move!

Read more

CDI: SessionScoped-Bean must be passivation capable

Due to some questions about Session/ConversationScoped managed beans in CDI I answered during the last days I decided to wrote a little post about it. Another reason was that there seems to be no information about that issue (except of the origin specification 😉 ). Nearly every single question was around the error message “WELD-000072” […]

 

7
Kudos
Don't
move!

Read more