Has anybody seen this ( and maybe have a fix?):
I have an EntityBean that deployed correctly when I did not specify
anything in the assembly-descriptor section of ejb-jar.xml.
Then I added the following:
<container-transaction>
<method>
<ejb-name>Category</ejb-name>
<method-name>*</method-name>
<trans-attribute>Required</trans-attribute>
</method>
</container-transaction>
Now, during the auto-deployment step, I get a compiler error for the
EntityBeanWrapper4.java file, which is for this bean. The error is for
the following code snippet:
if(created)
{
thread.transaction =
home.getTransactionManager().createTransaction();
}
The error says that 'home' is an undefined variable, which is true.
Does anybody have any suggestions or fixes for this error?
Is anybody using '<container-transaction>' for an EntityBean?
Thanks in advance,
Gary
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one place.
Yahoo! Shopping: http://shopping.yahoo.com