[jboss-user] [Beginner's Corner] - Re: invoking an EJB over iiop

giu fus do-not-reply at jboss.com
Wed Feb 6 11:02:10 EST 2013


giu fus [https://community.jboss.org/people/giufus] created the discussion

"Re: invoking an EJB over iiop"

To view the discussion, visit: https://community.jboss.org/message/796381#796381

--------------------------------------------------------------
To expose bean v3 over iiop in jboss 5 you need the right profile (look @ slimming jboss to know how to enable corba/iiop naming service etc...i remember "all" profile has corba enabled by default)
and ejb/interfaces like these:


1)
public interface MyRemote extends EJBObject {
String hello(String name) throws RemoteException;
}

2)
public interface MyRemoteHome extends javax.ejb.EJBHome {
MyRemote create() throws javax.ejb.CreateException, java.rmi.RemoteException
}

3)
@Stateless
@RemoteHome(MyRemoteHome.class)
@IIOP(interfaceRepositorySupported=false)
public class MySessionBean {

public String hello(String name) {
System.out.println("hello called for name: " + name);
return "Hello " + name;
}
}


then in jmx-console -> corbaNamingservice you should find the right name to use


Hoper this help,

bye
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796381#796381]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130206/87f548e5/attachment.html 


More information about the jboss-user mailing list