• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Anybody has any IDEA about J2EE deployment API?

 
Pras Tiwari
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have created my small web server, which runs fine for static websites & displays contents of static website fine when I type in browser URL:- http://localhost:8080/web_app_root

But I want to use it to work for dynamic java web applications also. So I am planning to use J2EE Deployment API. In J2EE deplyment manager in "DeploymentFactoryImpl" class which implements "DeploymentFactory" interface, there is a method
"public DeploymentManager getDeploymentManager(String URI, String userid, String password;"

I am bit confused about this method. What should be the URI that i use for my own web server & what will be id & password for it?
I tried the URI's - http://localhost:8080/web_app_root

But it didn't work. Please share your knowledge with me if you know this.

If you feel this is not question of this category then pls forward it to particular category.

Many Thanks in advance.

-Pras
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not quite sure what you're doing - are you trying to create your own servlet container, on top of your own HTTP server? If so, be advised that creating a servlet container is at least two orders of magnitude more complex than creating a simple web server (i.e., at least 100 times as complex). I'd think long and hard before attempting to do this - there's a reason that the servlet reference implementation (Tomcat) is a multi-megabyte download.

If you're interested in how to go about creating a servlet-capable server in general, have a look at Acme.Serve, which is a simple implementation of a very early version of the Servlet API.

(Also, I'm not sure what the "J2EE Deployment API" is, but I'm fairly certain that it won't help much, if at all, with building a servlet container.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic