• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JUNIT to test EJB

 
Ahmed Talokdar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I use JUNIT to test EJBs on EJB server such as weblogic?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you see this thread posted earlier today?
 
Ahmed Talokdar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks..... but I need a tutorial that shows how to install it and use it against an EJB app on weblogic server using eclipse as IDE.
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tufail Ahmed:
Thanks..... but I need a tutorial that shows how to install it and use it against an EJB app on weblogic server using eclipse as IDE.

cactus definitely has an eclipse plug-in. So u can zero in on cactus for unit tesing EJB residing on weblogic server through eclipse.
But step-by-step tutorial am not sure where it is :-(
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a step-by-step guide for writing an EJB Cactus test for the J2EE reference implementation. The only difference due to using WebLogic instead of the RI is in the vendor-specific deployment descriptors (and these steps have nothing Cactus-specific so you should be able to cope if you know how to use WebLogic in general).
For Eclipse, there is a Cactus plugin available. Here is an IBM tutorial for writing Cactus tests using WSAD (which is an enhanced Eclipse).
 
Ahmed Talokdar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I will try the links.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cactus? I like the name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic