aspose file tools*
The moose likes JBoss/WildFly and the fly likes Does jboss-4.0.3 support Annotation @Resouce Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Does jboss-4.0.3 support Annotation @Resouce" Watch "Does jboss-4.0.3 support Annotation @Resouce" New topic
Author

Does jboss-4.0.3 support Annotation @Resouce

Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37
I have a method that works in tomcat but does not work in Jboss-4.0.3



I googled an found conflicting that Jboss-4.0.3 may not support @Resource, that jboss-5.1.0 does, but there is a lot of proplems with getting that version working.

If jboss-4.0.3 supports Annotation @Resouce then I can work on that problem.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10207
    
166

JBoss AS 4.0.3 is a very ancient version. It doesn't support any injection of resources. From what I remember, there was a plugin for AS 4.0.5 (which again is an ancient version), but I don't know how good it is/was. Your best bet is AS 5.1.0. But if you want to stick to AS-4, then you might want to try 4.2.3 which supports injection only in EJBs.

[My Blog] [JavaRanch Journal]
Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37
Thanks Jaikiran Pai its injection into a WAR file so it looks like I will have to try an get 5.0.1 working
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10207
    
166

Mark Tobin wrote: I will have to try an get 5.0.1 working


5.1.0 (the latest stable version).
Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37
Thank you Jaikiran Pai will download that one.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Does jboss-4.0.3 support Annotation @Resouce