Hi cbaretto, 


Let's say you want to use EJB, JBoss and Eclipse and you also want to debug 
your running server code in Eclipse.  



First you will import your project into Eclipse, this is very easy: 

go to menu file->import->exsisting project into workspace

 

browse to the root directory of your androMDA project and select it, done. 



For debugging go to the bin directory in JBoss, open run.conf; here you'll find 
some lines like this 



# Sample JPDA settings for remote socket debuging

#JAVA_OPTS="$JAVA_OPTS -Xdebug 
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"



at the end of the file - uncomment it. 



Go back to Eclipse select menu run->Debug...

- select "Remote Java Application" hit "new" and name it f.ex jobss remote

- select "jboss remote" enter host: "localhost", port: 8787

done.



When you start JBoss now you might experience that the startup process seems to 
hang then just switch to eclipse, find "jboss remote" and start it. 



After that you can debug your beans within jboss remotely within jboss. Even 
better, if you have debugging enabled you can also use hot code replacement 
wich means that if you have switched on "build automatically" within Eclipse, 
all code within JBoss will be replaces as long as you don't change the 
signature of your classes. Very cool if you need to implement many features in 
generated Methods and want to do some debugging in parallel. 



So, hope this will give you a start. 



Cheers 

Harald
--
Harald Weyhing
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2176#2176
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to