-
1. Re: Which version of the J2EE tutorial and where to find it?
mbrady Nov 7, 2005 11:56 PM (in response to heinz500)I am using JBoss 4.0.3sp1. When I searched Sun, I found the 1.3 Dukes Bank, no others. It is not the right one - will not even compile. Follow this link, from Section 3 of the JBoss Getting Started Guide:
http://java.sun.com/j2ee/1.4/download.html#tutorial
I have been off to the races with it. -
2. Re: Which version of the J2EE tutorial and where to find it?
heinz500 Nov 8, 2005 4:48 AM (in response to heinz500)Okay,
your link
http://java.sun.com/j2ee/1.4/download.html#tutorial
leads to the same location I have downloaded the version, that is not working. However there are 3 possible downloads. I tried the topmost one (Platform Edition 8.1 2005Q2 UR2) and can say that it is not working.
I found at least some reasons:
They have changed the classes. For example the ejb remote and home interfaces "Customer" and "CustomerHome" have been replaced with
"LocalCustomer" and "LocalCustomerHome". The JBoss deployment descriptors however are referring to the old names. I tried to change the names in the descriptor, but this solves only some problems. The "CustomerBeanClass" is made abstract which leads to smth. like a spec violation error when deploying the ear.
I will download the other Tutorial version with your link, just to see if they are working.
Anyway, I accidently found a workaround for the problem. I bought a used book at ebay: The J2EE Tutorial Book Second Edition. I couldn't believe it, but on the cd there was the right version of the bank example (with the old class names) and it is working, at least for now:-)
Can you tell me, why they made the new Bean class abstract? I'm just beginning with ejb's, but this seems to be a bit strange.
Thanks,
Philip