Hello Experts,
I am a newbie to EJB and so I am trying to learn by following the instructions given in tutorials. I am current working on the following simple EJB tutorial that I found in your recommened web site:
http://www.laliluna.de/simple-xdoclet-ejb-tutorial.html
Basically I could follow all the steps and completed the tutorial successfully. However, when I was trying to set break points in the Entity Bean in this example, those breakpoints could NOT be reached.I am not sure but I guess this is because the tutorial is using a separated java project to create the test client (at last page of the tutorial) and so the breakpoints in Entity Bean cannot be reached as they belong to 2 separated projects. Am I right?
For example, the following is the code fragment of the test client in this tutorial:
….
Object object = context.lookup(SimpleHome.JNDI_NAME);
SimpleHome simpleHome = (SimpleHome) PortableRemoteObject.narrow(object,
SimpleHome.class);
Simple simple = simpleHome.create(); <– *** cannot run to breakpoint at the bean’s home interface when calling to this statement ***
simple.setName(“Gunter”);
System.out.println(simple.getId());
System.out.println(simple.getName());
….
Could you please tell me how I can solve this problem? How can I make this tutorial test program run to the breakpoints in EJBs?
Please help.
Many thanks.
Vincent