• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

Jbuilder X, debugging EJB

I have just started using Jbuilder X and EJB with Jboss server. Both Jboss and Jbuilder X are on the same machine.
Can someone plz give me some links to some articles and tutorials as hot to debug EJB's using Jbuilder X with Jboss
I have tried the JbuilderX help but its not working.

 
0
thomas908
Asked:
thomas908
  • 3
  • 3
  • 2
2 Solutions
 
thomas908Author Commented:
Thanks objects
That was a really useful document
Actually the problem i am facing is that the debugger keeps on moving on the client and does not go inside the bean.
Say I have a bean called "Advice" in which I have a method called getAdvice().
From the client I am calling
   
1.      Advice advisor = adviceHome.create();
2.      System.out.println(advisor.getAdvice1());

The probelm is when the debugger reaches line 2 it does not go inside the bean but just prints the results from the bean. That mean I can only debug the client using  the debugger but can't go inside the bean to debug the bean.

0
 
aozarovCommented:
Do you have JBoss source code configured in JBuilder (you will need that if you want to trace into their code).
Also, try putting a breakpoint in Advice EJB in getAdvice1 method
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
thomas908Author Commented:
I don't want to go into the Jboss source code. i only want to go into the code of the bean I have created. At the moment it debugs only the client for the bean but doesn't go inside the bean.

>>Also, try putting a breakpoint in Advice EJB in getAdvice1 method
Tried that, doesn't help
0
 
aozarovCommented:
>> at the moment it debugs only the client for the bean but doesn't go inside the bean.
Are you debugging a remote client? or is the client servlet/another bean in the same server instance?
It sounds like you are debuging a client that runs on a seperate JVM the JBoss.
Tracing into the EJB will be done only if you debug JBoss JVM itself (after all the code is running there and not on your client).
To setup JBoss for remote debugging read this (short) http://www.oracle.com/technology/products/jdev/howtos/appservers/debug_in_jboss.html
Just consider the first part that shows the JVM settings needed for remote debugging then
use your IDE to attach to the remote process.
The JVM settings are basically something like this: -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000
0
 
thomas908Author Commented:
Thanks a lot
0
 
objectsCommented:
:)
0
 
aozarovCommented:
You are welcome. :-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now