I think specifying the datacenter's Domain Admin Server's host and port
to your command would result in performing all your operations on the
remote domain. This assumes that both these dev and data center
installations are the same version of GlassFish
In effect, you have following at this point
asadmin --host localhost --port localDasPort --user adminUserId
--passwordfile somefile_containing_admin_password deploy ..... jar/war/ear
change this to :
asadmin --host remotehost --port remoteDasPort --user adminUserId
--passwordfile somefile_containing_remote_Das_admin_password deploy
....jar/war/ear
Could you try that and report?
If using v2, you can also deploy to a remote instance or cluster which
is part of the remote domain by specifying that as the target.
glassfish_at_javadesktop.org wrote:
> Hi,
>
> I am looking into automating deployment from a development environment to a remote target domain (in datacenter).
>
> When I look at asadmin and asant (which calls exec on asadmin) that the deployment can only be done local or at least when there is a GF installed locally.
>
> How can I integrate proper remote deployment into my development environment. I.e. is there someone who has made some ant scripts that does so?
> I look at the eclipse plugin for WTP, but also there it is restricted to just local deployment. Supports netbeans this remote deployment?
>
> Thanx,
> Eltjo.
> [Message sent by forum member 'eltjo' (eltjo)]
>
> http://forums.java.net/jive/thread.jspa?messageID=211393
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>