• Post Reply Bookmark Topic Watch Topic
  • New Topic

[EJB3] are Annotation properties case sensitive  RSS feed

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For MDBs, the spec says that the value of the acknowledgeMode property must be either Auto-acknowledge or Dups-ok-acknowledge for a JMS message-driven bean. Is this case sensitive ?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd say yes, just to be safe.

Anyway Annotations are classes, so they would always be case sensitive like any other class.

Mark
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark, thank you for your reply.

I agree that ActivationConfigProperty (annotation class), propertyName and propertyValue (annotation properties) are case-sensitive, but what about "acknowledgeMode" which we set in propertyName, and "Auto-acknowledge/Dups-ok-acknowledge" that we set in propertyValue. I can't find anything about this. But I'd also say that they are case-sensitive.
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the Javadocs, propertyValue is a String. Whether the servers treat it in a case-sensitive or case-insensitive way (both are possible), and whether this is standardized, I don't know.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. The spec doesn't say anything about it, does it ? It may be container specific, but a good guess would be that it is case-sensitive.
Thank you.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And that is why I'd say assume it is case sensitive to be on the safe side.

Mark
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, we're on the same side
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!