• Post Reply Bookmark Topic Watch Topic
  • New Topic

Implementing interfaces in SessionBeans

 
Cory Wilkerson
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,
How does one get a SessionBean to implement an interface, ie:
public interface CacheSession extends javax.ejb.EJBObject, ICache {

// Am I forced to redefine the ICache methods
// If so, what if they weren't orginally coded to throw Remotes?
}
I'm sure I'm missing some fundamental concept here...
Any help would be greatly appreciated,
Cory
[ February 10, 2003: Message edited by: Cory Wilkerson ]
 
Scott Duncan
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouldn't you want to implement the desired interface in the Bean class? For example,
public class CacheSessionBean implements javax.ejb.SessionBean, WhateverInterface{
And then any public methods overridden from this interface should be promoted to the remote interface.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!