• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Turning the Query debug on

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

How can I see what query is being executed in the server...I mean the EJB QL? I remember in Hibernate, we specify this in the xml config file. Is there anthing similiar to that I can do in EJB?
[ October 01, 2008: Message edited by: Jothi Shankar Kumar Sankararaj ]
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See if your connection pooling library provides SQL logging or not. If yes, then turn that on.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jothi Shankar Kumar Sankararaj:
Is there anthing similiar to that I can do in EJB?



EJB3 or EJB2.x? I think in EJB3 you can pass the property through your persistence.xml.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jaikiran Pai:


EJB3 or EJB2.x? I think in EJB3 you can pass the property through your persistence.xml.


I'm refering to EJB 2.x
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic