I want to make sure I'm doing things the proper way in the setup of this JBoss5 EJB3
application. I'm noticing a few warnings, but googling about them hasn't been too
helpful. Just wondering if there is something I should be doing differently to avoid the
warnings or maybe they are fine and nothing to worry about? TIA
| 16:21:50,232 WARN [SessionSpecContainer] Populating JBoss-specific annotation
metadata manually until done by deployers:
jboss.j2ee:ear=user-administration.ear,jar=lt-ejb-jar-1.0-SNAPSHOT.jar,name=UserServiceBean,service=EJB3
| ....
| 16:23:23,086 WARN [LifecycleCallbacks] EJBTHREE-1480: LifecycleCallbackStack has not
been defined for domain 'Stateless Bean'
| 16:23:23,098 WARN [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory
with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
| 16:23:23,100 WARN [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory
with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
| 16:23:23,102 WARN [InterceptorRegistry] applicable interceptors is non-existent for
public java.util.Collection net.learntechnology.service.UserServiceBean.getUsers()
| 16:23:23,106 WARN [InterceptorRegistry] applicable interceptors is non-existent for
public java.lang.String
net.learntechnology.service.UserServiceBean.helloWorld(java.lang.String)
| ...several more WARNS about InterceptorRegistry like the above for the methods
|
My StatelessSessionBean looks like the following and is working fine:
| @Stateless
| public class UserServiceBean implements UserService {
|
| @PersistenceContext(unitName="OurEntityManager")
| private EntityManager em;
|
| public String helloWorld(String s) {
| return "Hello World: "+s;
| }
|
| public User saveUser(User user) {
| this.em.persist(user);
| this.em.flush();
| return user;
| }
|
| public Collection<User> getUsers() {
| return this.em.createQuery("select user from User user order by
user.lastName").getResultList();
| }
|
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180366#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...