I've written a simple stateless session bean with the following interface:
@Remote
public interface Foo {
void sayHello();
}@Stateless
public class FooBean implements Foo {
@PostConstruct
public void postConstruct() {
System.out.println("Inside postConstruct");
}
@PreDestroy
public void preDestroy() {
System.out.println("Inside preDestroy");
}
public void sayHello() {
System.out.println("Hello world");
}
}06:19:16,150 INFO [STDOUT] Inside postConstruct 06:19:16,170 INFO [STDOUT] Hello world