Hi it's me again. This is still in regards to the Chapter 4 example of the BMP entity bean, from Sun's
J2EE Developer's Guide.
As I mentioned in my other post on this topic, I found that I needed to run cloudscape's IJ tool so I could "delete from account;" before I re-ran my application.
I decided I'd modify the Account EJB so that it would not simply throw an uncaught expection. So here is the modified method:
The try catch block at the end is inserted by me. This works great now.
But I had a good deal of trouble gettting Sun's app server to "Update and Redeploy". In short, it doesn't work, or I'm perhaps expecting too much of it. I needed to completely remove the EJB From the Account app, and re-do the EJB Jar Wizard, resetting all the
jdbc stuff, and the transaction support, etc..
Is there no way for the app server to realize that a recompile is necessary, since the source class files have changed? It seems to do this check, but poorly. Example: here is the output in the DOS window when I undeploy the app, and click "update and redeploy"
But there is code generation required! How to get it to realize this is the problem.