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&...]