Can I deploy a .EAR in Glassfish via Eclipse?
I develop using "Glassfish bundle for Ecli开发者_Go百科pse", that have the internal server to test and debug JAvaEE applications on dev machine. You chan add as many servers you like, but not a remote server. Solutions?
Can't do remote servers yet via Eclipse.
As a workaround, please export (export menu on the eclipse project) as a war or ear depending on the project type, and get the archive from there. Then, you can go to the bin/ dir of glassfish and use the asadmin command: ./asadmin deploy archivename
From a local glassfish server bin/ dir, you can also deploy to remote servers via: ./asadmin --host REMOTEHOSTNAME --port REMOTEPORT deploy ARCHIVENAME
See http://docs.sun.com/app/docs/doc/820-7701/asadmin-1m?l=en&n=1&a=view
Yes, http://glassfishplugins.java.net/ That looks like the complete guide, it links to this page that has really good examples.
精彩评论