Hi,

writing servers is very new to me, so I have some basic question.

I have java classes, which start the jetty server and which define servlets.
I don't use any web.xml-files, all code is in java. In java code is the
server adress defined (for now only localhost)

Now I want to build the project with ant, and I need to start my server by
remote access, so I need to use deployment. But all examples, that i saw use
the standard webapp and not embedded server. In these examples the remote
server addresse is defined in deploy task.

I thought, I need to replace mylocalhost in the java code with the remote
server address, build the jar, and then use deploy task depending on
building the jar file and then use ant run. Am i correct?

for now, my script compiles source, builds the jar and executes it with run
task, i can start the server on my local host.

what exactly i need to add to my ant or java code, to start the server
remotely?

Thanks for any help



--
View this message in context: 
http://ant.1045680.n5.nabble.com/embedded-jetty-and-remote-server-tp5713968.html
Sent from the Ant - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to