Hi, I'm really new to JBoss and would really appreciate any help on this...
Following lies some details but my real question is : "How to set up a couple of plain old RMI Remote object available through a lookup (be it rmi registery or JNDI?)"
First of all some background information: I'm trying to port our current project to JBoss for: 1- commercial reasons (ie we *have to* use an application server anyway) 2- be able to benefit mostly from the persistence framework and other cool stuff (but that's for later)
The current application is a swing-based and connects to the serverside via RMI. There are 4 RMI RemoteObjects registered in the RMI Registery (these could be considered as stateless), one of them providing methods to return some other Remote objects ( these not beeing registered in the RMI registery and could be considered as statefull).
I haven't found how to expose the 4 RMI RemoteObject in the RMI registery from JBoss. So if there is a way of doing it, I'd greatly appreciate if someone could point me to how to do it.
We're are not really willing to use EJB, nor SessionBeans if we can keep away from the J2EE stack, by using simple POJOs. (Actually, all of our remote objects are enhanced at run-time by CGLib (FYI) )
Then, I thought that I could declare the 4 RMI RemoteObject (the ones that are exposed in the RMI registery) as StatelessSessionBeans and live with it happilly. Unfortunately, JBoss won't allow me to declare a method returning a Remote object (not an EJB, just a plain RMI Remote object). (I guess that it would prevent the container to handle the Remote object )
So the question really is: How to set up a couple of plain old RMI Remote object available through a lookup (be it rmi registery or JNDI?)