Could you please provide some more information as to how you have managed to get your EJB3
bean accessible over IIOP. There seems to be very little complete documentation on how to
expose EJB3.0 beans over IIOP in JBoss.
I have the following:
1. A simple Stateless Session Bean, IIOPInvokableBean ,
| @Stateless
| @Remote(IIOPInvokable.class)
| @RemoteBinding(factory=RemoteBindingDefaults.PROXY_FACTORY_IMPLEMENTATION_IOR)
| public class IIOPInvokableBean implements IIOPInvokable {
|
| public void doSomething() {
| System.out.println("IIOPInvokableBean - Invoked doSomething() !");
| }
|
| public String getString() {
| System.out.println("IIOPInvokableBean - Invoked getString() !");
| return "HELLO!";
| }
|
|
| }
|
2. Its remote interface...
| @Remote
| public interface IIOPInvokable extends EJBObject
| {
| public void doSomething();
| public String getString();
| }
|
3. I have REMOVED the jboss.xml from the META-INF folder as you have advised
4. When I deploy the bean to JBoss 5.0.0.Beta3 (and also Jboss 4.2.2), I am presented
with the following exception...
| 11:33:19,140 INFO [EJBContainer] STARTED EJB: IIOPInvokableEJB.IIOPInvokableBean
ejbName: IIOPInvokableBean
| 11:33:20,625 INFO [EJBContainer] STOPPED EJB: IIOPInvokableEJB.IIOPInvokableBean
ejbName: IIOPInvokableBean
| 11:33:20,625 ERROR [AbstractKernelController] Error installing to Start:
name=jboss.j2ee:jar=IIOPInvokableEJBPOC.jar,name=IIOPInvokableBean,service=EJB3
state=Create
| java.lang.NullPointerException
| at org.jboss.ejb3.iiop.BeanCorbaServant.<init>(BeanCorbaServant.java:122)
| at org.jboss.ejb3.iiop.IORFactory.start(IORFactory.java:348)
|
Am I missing something or doing something incorrectly? Your assistance is appreciated.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138842#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...