Jaikiran:
Got another one I might be able to goad off to you. ;)
Today I committed enhancements to
/projects/ejb3/trunk/proxy/src/main/java/org/jboss/ejb3/proxy/jndiregistrar/JndiSessionRegistrarBase.java,
specifically the addition of an "unbindEjb" method. The responsibility of this
function is to remove all JNDI bindings for the specified EJB, and is likely called upon
undeployment.
Left the unit tests for you, figured it'd be a good entry into getting deeper into the
EJB3 Proxy component codebase to see how things work. What we'll need is a test to:
* Deploy an EJB (there are already a couple sample ones available in src/test/java)
* Test that all expected bindings are there (very similar to what is done "proxy
session" tests)
* Undeploy the EJB
* Test that all the previous bindings are no longer available (ie. NameNotFoundException
on lookup)
The tests themselves won't be tricky, but the setup, deployment, and creating of the
test environment should prove educational. Questions either to here or IRC @ Freenode,
#jboss-ejb3.
http://jira.jboss.com/jira/browse/EJBTHREE-1420
I'll see if I can't cook up another project after this that'll get you writing
code in src/main/java, and off these tests. :)
S,
ALR
PS - I still can't assign you tasks in JIRA; will see what I can do about this.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158172#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...