looks as if the code expects 'Both' to be zero length string (since 'Both'
is the default) but somewhere along the way 'Both' is being set.
if( transAttr.length() == 0 || transAttr.equalsIgnoreCase(transTypeString) )
Adding a test for 'Both' fixes the problem.
if( transAttr.length() == 0 || transAttr.equalsIgnoreCase(transTypeString)
|| transAttr.equalsIgnoreCase("Both") )
Mike S-R
>Hi
>
>I've been checking container configurations with 2.4.0.6 and I've found
>that the Entity container config I've created doesn't work.
>
>I get an error message at deployment
>
>[Container factory] There are no interceptors configured. Check the
>standardjboss.xml file
>
>There are interceptors configured - they are identical to the standard cmp
>entity bean in standardjboss.xml (the only difference is the name of the
>container config).
>
>If I use "Standard CMP EntityBean" as the container config name in the
>entity element it works fine. But if I use an identical config in
>jboss.xml the deploy throws up the message about no interceptors.
>
>I have traced it to the ContaineerFactory code line 818
>
> if( transAttr.length() == 0 || transAttr.equalsIgnoreCase(transTypeString) )
>
>The transAttr is "Both" but the transTypeString is "Container"
>
>hence none of the interceptors are added - hence the error message
>
>Shouldn't the interceptor always be added if its type is Both?
>
>Mike S-R
>
>
>_______________________________________________
>Jboss-development mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-development
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development