File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JBoss as a RMI Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss as a RMI Server" Watch "JBoss as a RMI Server" New topic
Author

JBoss as a RMI Server

Chris Dillon
Greenhorn

Joined: Feb 13, 2004
Posts: 6
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?)

Thanks in advance for any help
Cheers
Chris
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss as a RMI Server