Win a copy of Head First Android this week in the Android forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

How to promote methods in Bean class to remote interface.

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic