Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

A bean implements mulitple interfaces  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1572
10
  • 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
Boost this thread!