tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john77eipe <>
Subject TomEE and CDI
Date Sun, 04 May 2014 09:53:37 GMT
I'm a start in CDI. 

To test CDI. I created 2 classes.

public class Exam {
	private Student student;
	private int examCode;
	private void init(){
		System.out.println("Init in Exam");

public class Student {
	private String name;
	public void init(){
		System.out.println("Init in Student"); = "John Eipe";

Isn't it possible to do this in Servlet's doGet.

Exam exam = new Exam();

But I don't see Injection happening.

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message