What version of JBoss AS? Also, for the URL you have, is "myserver.com:port" the URL for JBoss AS?
If your answers are "4.0.x or 4.2.x" and "yes", then see http://www.jboss.org/community/docs/DOC-9727
Also, this prior discussion provides an example: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=139630
Thank you very much Peter, indeed the solution from the wiki works perfectly (I use JBoss 4.2.3) !