aspose file tools*
The moose likes BEA/Weblogic and the fly likes How to promote methods in Bean class to remote interface. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to promote methods in Bean class to remote interface." Watch "How to promote methods in Bean class to remote interface." New topic
Author

How to promote methods in Bean class to remote interface.

Mahesh Malviya
Ranch Hand

Joined: Aug 20, 2004
Posts: 39
Hi,
I am new to weblogic. I build a stateless session bean FirstEjb. I was able to lookup FirstEjb. I have defined a getName() method in FirstEjbBean class. But this is not visible through the remote interface.
Yes I know that this is becuase the method doesn't exist in remote interface.
My question : I simply want to know that what and where changes should be made so that the method in FirstEjbBean can be made available to the client through remote interface.

Thanks And Regards
Mahesh Malviya
Santosh Maskar
Ranch Hand

Joined: Jul 02, 2003
Posts: 226
Originally posted by Mahesh Malviya:

My question : I simply want to know that what and where changes should be made so that the method in FirstEjbBean can be made available to the client through remote interface.

Thanks And Regards
Mahesh Malviya


not sure if this can solve your problme
http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.ejb.assembly.doc/topics/tepromoteinterfacemethod.html
Mahesh Malviya
Ranch Hand

Joined: Aug 20, 2004
Posts: 39
Thanks for reply.
Santosh I couldnt find even from the link you sent to me. There were no options in weblogic workshop as told in the link. Yes it is true from WebSphere becuase I have worked on WebSphere Studio.

Can you please tell me how to call ejbmethods in weblogic workshop?
Thanks
Mahesh Malviya
maya fur
Greenhorn

Joined: Sep 08, 2005
Posts: 11
You just need to add the method to the remote interface (the class that extends EJBObject).
For example:

public interface FirstIntf extends EJBObject
{
public void getName() throws RemoteException, Exception;
...
}

public interface FirstLocalIntf extends EJBLocalObject
{
public void getName() throws Exception;
...
}

your ejb will implement FirstIntf in remote and FirstLocalIntf locally,
and will "know" getName in both cases.
 
 
subject: How to promote methods in Bean class to remote interface.