[ 
https://issues.apache.org/jira/browse/OPENEJB-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727442#action_12727442
 ] 

Ivan commented on OPENEJB-1039:
-------------------------------

Hi, for workaround this issue, I explicitly set the strict option with true in 
Geronimo, then another issue found.
IIRC, those interfaces are not marked with any annotation, but implemented by 
the bean should be marked as local interface. So whatever the value of strict 
option is, the codes below should be executed
if (!strict){
                    // Treat the rest of the unannotated and undeclared 
interfaces implicitly as local interfaces
                    interfaces.removeAll(declared);
                    locals.addAll(interfaces);
                }

Any comment ? Thanks !

> Remote Interface explicitly declared is added to local interface list when 
> strict option is not set
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1039
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1039
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: ejb3 simplified
>    Affects Versions: (trunk/openejb3)
>         Environment: Windows XP
> JDK 1.5
>            Reporter: Ivan
>         Attachments: OpenEJB-1039.patch
>
>
> With the latest openejb 3.1.1 snapshot, I found if the env property 
> openejb.strict.interface.declaration is not set to true, both local and 
> remote interfaces are added to SessionBeanInfo.businessLocal.
>    Here is bean structure:
>   
>    1. interface LocalInterface {}
>    2. interface RemoveInterface {}
>    3. class MyBeanBase implements LocalInterface, RemoteInterface {}
>    4  @Stateful
>        @Remote({RemoteInterface.class})
>        @Local({LocalInterface.class})
>        class MyBean extends MyBaseBean implements LocalInterface, 
> RemoteInterface {}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to