• Post Reply Bookmark Topic Watch Topic
  • New Topic

Type-level annotation can all be overriden by the deployment descriptor?

 
Himai Minh
Ranch Hand
Posts: 1400
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In ePractice Lab, mock exam 1,

Which two are true about specifying Java EE environment annotation metadata for session bean classes?
....
Choice E: type-level, method-level and field level annotations can all be overridden by the deployment descriptor.




EPractice Lab suggest this is the correct choice.
But @TransactionManagment, @ConcurrencyManagment are type-level annotation, but they cannot be overridden.
Also, according to Enthuware, we cannot override a session bean type by a dd. If we specify @Stateless for a bean, we cannot put <session-type>Singleton</session-type> to override the type of bean.

Any comments from EPractice Lab?
 
Jhonson Fernando
MyExamCloud Software Support
Ranch Hand
Posts: 692
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find answer from this thread.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!