掲示板

Identify web server using Liferay API

thumbnail
12年前 に Jitendra Rajput によって更新されました。

Identify web server using Liferay API

Liferay Master 投稿: 875 参加年月日: 11/01/07 最新の投稿
Is that any way possible why which i can get configured web server details using liferay api ?
And also how to identify web apps directory for all servers ?


Thanks in Advance
thumbnail
12年前 に jelmer kuperus によって更新されました。

RE: Identify web server using Liferay API

Liferay Legend 投稿: 1191 参加年月日: 10/03/10 最新の投稿
There is com.liferay.portal.kernel.util.ServerDetector to check for the application server you are on.
Eg. to check if you are on tomcat you can do

ServerDetector.isTomcat()


The webapps folder is a tomcat specific thing and other servers may or may not use a completely different approach (like deploying via a url). So there is no generic way to get the webapps folder
thumbnail
12年前 に Jitendra Rajput によって更新されました。

RE: Identify web server using Liferay API

Liferay Master 投稿: 875 参加年月日: 11/01/07 最新の投稿
thank you jelmer...
for further details i will look into current implementation of deploying portlet via URL functionality..