Co-Author of Head First Design Patterns
Just a Jini girl living in a J2EE world.
SCJP 1.4, SCWCD, SCBCD 1.3
SCJP 1.4, SCWCD, SCBCD 1.3
Originally posted by Kathy Sierra:
Given this code in a stateful session bean business method:
try {
Socket s = new Socket(x,y);
} catch (Exception ex) {
ex.printStackTrace();
}
And assuming that x and y are the port and IP address of a running service running on the same server, what is the result?
(Assume all other bean code is correct and legal.)
Next, it depends largely on what socket we are reading. If it is running on the same host, but in a different virtual machine - no problem. If we are trying to deploy in EJB app, which is collocated (runs in the same JVM and container), then it will fail at runtime.
I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Originally posted by Andrew Perepelytsya:
I would ask you to shed some light on EJB-QL syntax questions. As you know, there are tricky limitations in comparisons for the WHERE clause. And they are not described to the extent they should be in the spec. Thus, only practical experience (read - error and trial) will provide answers, and this is not the best way to build certification exams, perhaps.
OK, waiting for more input![]()
SCJD2,SCBCD,SCJWD,SCJP2
Co-Author of Head First Design Patterns
Just a Jini girl living in a J2EE world.
SCJD2,SCBCD,SCJWD,SCJP2
This tiny ad is wafer thin:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|