[jboss-user] [Beginners Corner] - Porting a simple RMI client-server app to JBoss
beastie2
do-not-reply at jboss.com
Fri Aug 11 09:33:13 EDT 2006
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964611#3964611
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964611
More information about the jboss-user
mailing list