This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to inject Map instance to ejb3

 
zb cong
Ranch Hand
Posts: 416
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
i know that @resource anotation can inject simple type param into ejb, but how can i inject the complex type, such as Map, into ejb?

Thanks.
 
Jayr Motta
Ranch Hand
Posts: 110
Google App Engine Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well,

I can be wrong, and if I do, please correct me. You'll be able to inject just primitive/wrapper types and JavaBeans (getters/setters as properties and no-arg constructors), but Map isn't either of them.

With a pure ejb solution I think you'll not be able to do this. Maybe using a special implementation and CDI / JSR-330.

Regards!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic