Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does jboss-4.0.3 support Annotation @Resouce

 
Mark Tobin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark Tobin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jaikiran Pai will download that one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic