當前位置:生活全書館 >

IT科技

> enterprise java

enterprise java

<link rel="stylesheet" href="https://js.how234.com/third-party/SyntaxHighlighter/shCoreDefault.css" type="text/css" /><script type="text/javascript" src="https://js.how234.com/third-party/SyntaxHighlighter/shCore.js"></script><script type="text/javascript"> SyntaxHighlighter.all(); </script>

java enterprise是什麼,讓我們一起了解一下?

Java Enterprise是針對Java EE專案中開發設計的,幫助開發和部署可移植、健壯、可伸縮且安全的伺服器端的Java應用程式,所以web專案大多都在這個檢視中進行開發。

想要了解Enterprise,首先要知道web應用和enterprise應用的關係是怎樣的?

web應用是屬於enterprise應用的一部分,enterprise應用可以包括web應用,jms應用,ejb應用,聯結器應用等等 。enterprise應用一般都需要application server來支援,需要有其它更多的容器,比如weblogic中有ejb容器,JMS容器,websphere中有MQ容器,但web應用只需要有一個web container就可以,一般的app server都會自帶這個最基本的web容器。

java enterprise

所以一個enterprise中可以只有一個web應用,也可以存在多個其它單元,比如多個web和其它應用。但一個web應用只是其中一個子單元而已,不能包含其它不同型別的應用 。

那麼如何在IDEA上建立Java Enterprise專案?

建立Java Enterprise專案就是在IDEA上建立動態web專案,它的具體步驟為:

1.Click Create New Project on the Welcome screen, or select File | New | Project. The New Project wizard opens. 2.In the left-hand pane, select Java Enterprise. 3.From the Project SDK list, select the JDK that you want to use in your project. If the JDK is installed on your computer, but not defined in the IDE, select Add JDK and specify the path to the JDK home directory. If you don't have the necessary JDK on your computer, select Download JDK. 4.Specify your application server. We'll use GlassFish Server. If GlassFish is not defined in IntelliJ IDEA yet, click New to the right of the Application Server field and select Glassfish Server. In the Glassfish Server dialog, specify the GlassFish Server installation directory. 5.Under Additional Libraries and Frameworks, select the Web Application checkbox.

標籤: java enterprise
  • 文章版權屬於文章作者所有,轉載請註明 https://shqsg.com/dianzi/6w5433.html