I have a server running Hibernate, using C3P0 as a connection pool. When I start up my application, if the MySQL server is down when i start the application using
new Configuration().configure().buildSessionFactory();
but this seems to be getting caught and printed by C3P0 or Hibernate itself and not let me catch it. Is there any way, such as a setting in hibernate.cfg.xml to allow me to catchi this myself. I have put a try catch around buildSessionfactory() but nothing ever propogates up to this method call.
I am writing a servlet that accepts a soap message from an iPad/Android device of an order, and converts it to an order.
Where I am having a problem is that I am wanting to then send the order (text formatted from soap message) to a network printer somewhere else via IP Address.
Thanks for the info guys, you've given me a lot to think about and investigate over the next few days. Seemed like such a simple example... guess this is one of those oh so common can of worms java has so much of ;-)
I am wanting to learn a little more about threads, and have been looking at examples of Visibility. The following code is said to either produce 42 or 0. But I don't see how it is to produce 0 as the number is set before the ready boolean so surely the thread will keep looping till the second variable is set. can someone explain for me, thanks
unfortunately i am not able to use vm arguments. So have come up with a way to keep the properties on a server file which the user can update which will in turn change the language to japanese. A bit of a hack, but no other way i have found works.