[code]
import javax.ejb.EJB;
public class AppClient {
@EJB
private static MyBean myB;
public static void main(String args[]) {
// MyBean myB = new MyBean();
try {
myB.hello();
System.out.println(myB.hello()); // Display the string.
} catch (Exception ex) {
System.out.println("Got some exception");
}
}
}
[/code]
As output i obtain:
init:
deps-jar:
compile-single:
run-main:
[b]Got some exception[/b]
BUILD SUCCESSFUL (total time: 0 seconds)
I don't know how use kenai.
[Message sent by forum member 'alexjava2008' (alekirk2004_at_yahoo.it)]
http://forums.java.net/jive/thread.jspa?messageID=390833