Solved.
The way I used works fine. I had a packaging error and I have put the class inside one of
the app content so this was the reason way It didnt work
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148904#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...