• Post Reply Bookmark Topic Watch Topic
  • New Topic

unable to override remote interface in deployment descriptor  RSS feed

 
yogesh srinivasan
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two interface Bean1Remote, Hello implemented by Session bean

package com;

@Remote
public interface Bean1Remote { ..

public interface Hello { ..


@Stateless(name="bean1" , mappedName="saibean1")
public class Bean1 implements Bean1Remote, Hello {


I want to override the remote interface from Bean1Remote to Hello in the deployment descriptor

<enterprise-beans>
<session>
<ejb-name>TestBean</ejb-name>
<ejb-class>com.Bean1</ejb-class>
<mapped-name>raibaba</mapped-name>
<business-remote>com.Hello</business-remote>
</session>
</enterprise-beans>

but.....

1. The override didnt work and it picks only the com.Bean1Remote
2. When i removed the remote annotation from the com.Bean1Remote interface the override happend

IS the expected behaviour of EJB 3.0? Sorry for a detailed post i have no options


 
Georg Walter
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have the same issue with openejb %-/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!