Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A bean implements mulitple interfaces

 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSR 318, p. 125

A bean class is permitted to have more than one interface. If a bean class has more than one interface ... any business interface of the bean class must be explicitly designated a business interface of the bean by means of Local or Remote annotation.

However, I think GlassFish does not follow this rule:







Based on the JSR 318, we must put @Local annotation in XLocal and YLocal. However, without the @Local, it still works.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic