This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi everyone! Right now I'm facing a new problem and don't know what to do...
I'm using Jboss with Hibernate (EJB3), and now I'm facing to the need of carrying a global variable for all the times the web service is consumed; I think it is called a "session variable".
What I need is that, when Jboss starts and deploys my ear, It needs to take a value from the database and keep this value as long as Jboss is up.
My main concern is that I don't know how to set up a session variable. I already tried with the @in and @out comments, but I think I might be doing something wrong.
Can you guys please show me how to set up a session variable properly? Thank you very much for all your help!