4 Replies Latest reply on Jul 23, 2008 1:38 PM by jsingh jsingh

    Porting a simple RMI client-server app to JBoss

    Etienne Bolduc Newbie

      Hello, zen fans of JBoss,

      I am pretty much new to JBoss. I have read a few articles, searched about the different alternatives and decided to give JBoss a real try. But, what I am trying to do is rather unusual, and it's a huge challenge to find documentation on that specific topic.

      I have an 'old' application, that I have been writing for 2 years now. It's a simple RMI client-server application, backed by a database on the server-side. It's a standalone RMI server, and the client is a simple Swing client, connecting to the server through a single exported object.

      I want to port that application into a JBoss server, for flexibility and future extendability. As a matter of fact, I want to integrate email sending functionnalities and soon add web capabilities to access the data contained in the system. JBoss seemed the way to go.

      So... how can I do that, with minimum hassle? I have my JBoss server setup on my dev machine, but now how do I tell JBoss "Hey, dude, boot that thing up!"... It used to be a simple main() method starting the whole server program, opening up the RMI registry on a specified port and exporting the server object on it.

      I'd guess i need to wrap my program in a EAR package, with some descriptor to tell the server there is an exportable (or do I need to implement activatable?) object in there and it needs to be exported on an RMI registry?.. Or, would I need to wrap my application inside an EJB?

      Well, if you have ideas, I'd love to hear them. Thanks in advance.