i am having trouble with RequiresNew attribute.

Environment:
JBoss2.4.6 w/Tomcat 4
Windows 2000
JDK 1.3.0_02 (Sun)

i have two simple stateless session ejb beans.
one bean calls the other bean.The caller bean has a method with a transaction attribute as Requires and the called bean method has

the transaction attribute as RequiresNew.RequiresNew method is not getting committed the records it has inserted for an explicit

EJBException been raised in Requires method.

Code Snipet

class TestClient
{
psvm()
{
A.hasRequires()
}
}

EJBBeanA
{
public void hasRequires()
{
B.hasRequiresNew()

throw new EJBException()-- Explicit exception is raised for checking hasRequiresNew method commit-rollback.

}
}

EJBBeanB
{
public void hasRequiresNew()
{
insert into table values(....)
}
}

pl treat it as very urgent.


Thanks!
shiva