These are my favorite sentence of these books.
JBoss at work
"If all you're got is a hammer, every problem tends to look like a nail!" said Bruce Tate, author of Better, Faster,Lighter Java.
But if your buisiness process require transactions or if you have externaml remote clients, you shuld consider useing an EJB --see the good reasons below.
We encourage you to look at your system-level and Business requirements before using EJBs.
Transactions should be atomic- if one of the steps fail, all grouped activities should roll back to their initial state.
There are three types of EJBs.
1.Session Beans 2.Message-Driven Beans 3.Entiry Beans
Remote access uses RMI, which requires object(used as parameters or return values) to be serializable.
and just use
<?php echo "Hello World."; ?>
If you have only PHP code in a file, you may omit the closing
This can be good practice, as it will ensure you have no excess whitespace leaking from your PHP files(especially important when writing object-oriented code).
I read ...