• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hard Code Magic Cookie?

 
Chih-Wei Lee
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have taken a look several post on JavaRanch about magic cookie.
According to these discussion, the magic cookie is related to assignment version, also database schema version.
Can I say "Magic cookie is database schema number"?

So if I would like my application only to read a specific database schema,
I hard code the magic cookie in my code.

Is this a good way to deal with magic cookie?

Thanks
 
Alexander Duenisch
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You either harcode it or you include it in your suncertify.properties configuration file.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!