Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

unable to override remote interface in deployment descriptor

 
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


 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have the same issue with openejb %-/
 
Message for you sir! I think it is a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!