This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to promote methods in Bean class to remote interface.

 
Mahesh Malviya
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 226
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic