Christer Hedstr�m

Greenhorn
+ Follow
since Mar 05, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Christer Hedstr�m

I'm on to a javajob in Denmark, thanks to my 3 java-certifications no doubt..

Somewhere in the future I'll go for SCJD but for now I'm very pleased.

Christer
20 years ago
Passed SCBCD last friday with a score that could been a bit better, but still good enough (passing is passing).

Great thanks to HF EJB for passing. There were a few question where I couldn't relate to anything from the book but I think it's mentioned in the book that it doesn't cover exactly everything in the spec.
20 years ago
Well, yes in the DD it all seems ok but on the page 398 it's not the local home interface that's shown.
On page 398 we have a remote home interface belonging to a discussion on CMR.
On page 386 it says:
"The only restriction is that a relationship field can be only a local component interface type! You can't have a CMR relationship field that uses a bean's Remote interface!"
The bean, MovieBean, on page 398 is clearly in relationship with another bean, DirectorBean, if you look at the DD on pages 394-395.
Am I losing it?!
On page 190 in HFE it says (about the SessionContext), among other things, that you can "get a reference to your EJB object" but on page 196 it only says you can "get a reference to your home". Is the key here where you are in the creationprocess?! I mean that on page 190 the bean has been created but on page 196 the bean itself has not been created when the setSessionContext() method is run?!
Well, apparently my classpath was ok (at some point I added the "." for the current directory but my problem remained) because I got through the compilation with this command-line:
javac -classpath %CLASSPATH%;AdviceAppClient.jar AdviceClient.java
When I try to run the client I get the "CORBA BAD_OPERATION"-exception but that's another story (I've haven't have time to look at that on the forum).
I have problem, like so many, with compiling the AdviceClient. I've looked at
the different suggestions but it just won't work.
I do as it says on pg 57 and this is what i get:
AdviceClient.java:4: package headfirst does not exist
import headfirst.*;
^
AdviceClient.java:5: package javax.ejb does not exist
import javax.ejb.*;
^
AdviceClient.java:18: cannot resolve symbol
symbol : class AdviceHome
location: class AdviceClient
AdviceHome home = (AdviceHome)
^
AdviceClient.java:18: cannot resolve symbol
symbol : class AdviceHome
location: class AdviceClient
AdviceHome home = (AdviceHome)
^
AdviceClient.java:19: cannot resolve symbol
symbol : class AdviceHome
location: class AdviceClient
PortableRemoteObject.narrow(o, AdviceHome.class)
;
^
AdviceClient.java:21: cannot resolve symbol
symbol : class Advice
location: class AdviceClient
Advice advisor = home.create();
^
6 errors