Java - General » Web Services » How to do this?
270 Views
3 Replies
How to do this?
Posted 26-12-2009Reply
I want to use my pc as a hosting server, i.e. people can host their site on my pc, my pc will b connected 2 net for 24 hrs.
I want to let the people use my pc for their use on net. What I'll have to do for that? DNS, ISP etc......
Hi
Hosting a scalable site with 24 X 7 support is quit a deal .....
offcourse if you have a system and an app server deployed on it you have to configure a DNS (coz nobody likes a an IP address)
but important part is that how will you ask users to deploy their apps your server
1.u can manually take their apps and deploy them on your server ( thats simply not cool)
2.develop a programm which remotely deployes their app from thier pc to your server ( I guess for this you like to see goolge app engine).
and also i hope your question was related to hosting a site not someting like yahoogeosites (coz geosites are different story all together).
but before doing that see that u have all the infra like DB good scalable App server and the list continues
Hosting a scalable site with 24 X 7 support is quit a deal .....
offcourse if you have a system and an app server deployed on it you have to configure a DNS (coz nobody likes a an IP address)
but important part is that how will you ask users to deploy their apps your server
1.u can manually take their apps and deploy them on your server ( thats simply not cool)
2.develop a programm which remotely deployes their app from thier pc to your server ( I guess for this you like to see goolge app engine).
and also i hope your question was related to hosting a site not someting like yahoogeosites (coz geosites are different story all together).
but before doing that see that u have all the infra like DB good scalable App server and the list continues
if you want to remotely deploy
so the first task would be to get the app war/EAR from the client to your machine .
now what you can use is the FTP API provided by JSCAPE ( why jscape ? becoz I like that) and develop a simple client programm to upload the app war / EAR .
this is pretty straight forward J2SE please refer : -- http://www.jscape.com/articles/simple_ftp_using_java.html
Once you have the WAR\EAR now u can deploy it using ANT or MAVEN ..
But it strictly depends on the Server which are using coz different server have different Ant tasks for the deployment onto the Server.
so the first task would be to get the app war/EAR from the client to your machine .
now what you can use is the FTP API provided by JSCAPE ( why jscape ? becoz I like that) and develop a simple client programm to upload the app war / EAR .
this is pretty straight forward J2SE please refer : -- http://www.jscape.com/articles/simple_ftp_using_java.html
Once you have the WAR\EAR now u can deploy it using ANT or MAVEN ..
But it strictly depends on the Server which are using coz different server have different Ant tasks for the deployment onto the Server.














