« September 2006 | Main | November 2006 »
October 30, 2006
Store Objects, not IDs
In these assignments, you should be storing Objects, not IDs of objects. Your pet object should have a variable of type Owner, not a variable of type int to store a reference to your owner. Your cart should store Pets, not PetIDs.
If you have already completed work storing IDs and need help making the conversion, please come see me for help. The code required to store objects is actually much easier, and the next few labs will flow much smoother if your objects are constructed properly.
Posted by sam at 03:25 PM | Comments (0)
October 03, 2006
Debugging Tips
When you are testing EJBs, there are three places you may want to check for debugging information:
- Java Compilation Errors (when you run your build script)
- JBoss Deployment Errors (usually captured in a log file)
- Runtime Errors in your browser
The JBoss deployment errors will show in the STDOUT from JBoss. If you followed the standard instructions using nohup, then the file should be named jboss.log and can be tailed with tail -f jboss.log
If you get a Null Pointer Exception runtime error in your browser, you may need to theck the JBoss log file for deployment errors.
Posted by sam at 11:11 AM | Comments (0)
