How exactly can an j2ee application developed for one application server work with another application server?
Kannan J
2007-09-08 05:00:23 UTC
It will have compile time dependency on the libraries of a particular application server, no?
Four answers:
Andy
2007-09-08 05:19:13 UTC
Once the code is compiled it creats a .class file.
This file can be understood & run on any JVM
Once the code is deloyed it does not need further compiling.
All it needs is a JVM for the Platform on which the server is running on
Bcoz of this the Code can exe any where
The Runtime dependencies are taken care of in the JVM Programming so u dont need to worry about that
This is the reason why a J2EE app will run on diff servers will no dependency restrictions on the underlying OS
anonymous
2007-09-08 05:16:27 UTC
No. It has no compile time dependency on a particular application sever unless you use some very application server specific feature.
J2EE is a platform and a specification. It already contains a set of libraries. You compile against those libraries not against a particular application server.
A J2EE web application is a Java based web application that follows the J2EE specs for web applications.
A J2EE application server is a Java based server that can run 'ANY' of those web applications that follow the J2EE specs.
geonautika
2007-09-08 06:26:31 UTC
Java class runs on JVM (java virtual machine). When you install Java on different OS, the JVM for that particular OS is also installed. JVM takes care of "linking" with libraries (JAR) etc.
For J2EE apps even though you don't need to recompile the apps you may need to create or modify the configuration files since each J2EE vendors have their own custom config file.
kieck
2016-12-13 08:07:59 UTC
First you configure your SMTP server as a outgoing mail server to outlook show or the different mail customer that's supported by ability of your application, then attempt to connect it out of your application.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.