日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

EJB-应用创造中

發布時間:2023/12/14 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 EJB-应用创造中 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一、構建項目

  • ? ??在項目資源管理器窗口中選擇EjbComponent項目。
  • ? ? 右鍵單擊它打開context菜單。
  • ? ? 選擇clean and build。

? ? 您將在NetBeans控制臺輸出中看到以下輸出。

ant -f C:\\EJB\\EjbComponent clean dist init: undeploy-clean: deps-clean: Deleting directory C:\EJB\EjbComponent\build Deleting directory C:\EJB\EjbComponent\dist clean: init: deps-jar: Created dir: C:\EJB\EjbComponent\build\classes Copying 3 files to C:\EJB\EjbComponent\build\classes\META-INF Created dir: C:\EJB\EjbComponent\build\empty Created dir: C:\EJB\EjbComponent\build\generated-sources\ap-source-output Compiling 2 source files to C:\EJB\EjbComponent\build\classes warning: [options] bootstrap class path not set in conjunction with -source 1.6 Note: C:\EJB\EjbComponent\src\java\com\tutorialspoint\stateless \LibraryPersistentBean.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 warning compile: library-inclusion-in-archive: Created dir: C:\EJB\EjbComponent\dist Building jar: C:\EJB\EjbComponent\dist\EjbComponent.jar dist: BUILD SUCCESSFUL (total time: 3 seconds)

?

二、啟動應用服務器

  • ? ? ?在“服務”窗口的“服務器”下選擇JBoss application server。
  • ? ? ?右鍵單擊它打開 context 菜單。
  • ? ? ?選擇開始。

您將在NetBeans中看到以下輸出,即JBoss Application Server下的輸出

Calling C:\jboss-5.1.0.GA\bin\run.conf.bat =========================================================================JBoss Bootstrap EnvironmentJBOSS_HOME: C:\jboss-5.1.0.GAJAVA: C:\Program Files (x86)\Java\jdk1.6.0_21\bin\javaJAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m -serverCLASSPATH: C:\jboss-5.1.0.GA\bin\run.jar=========================================================================16:25:50,062 INFO [ServerImpl] Starting JBoss (Microcontainer)... 16:25:50,062 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634) ...16:26:40,420 INFO [TomcatDeployment] deploy, ctxPath=/admin-console 16:26:40,485 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console' 16:26:42,362 INFO [TomcatDeployment] deploy, ctxPath=/ 16:26:42,406 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console 16:26:42,471 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080 16:26:42,487 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 16:26:42,493 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 52s:427ms

三、部署項目

? ??

  • ? ? 在項目資源管理器窗口中選擇EjbComponent項目。
  • ? ? 右鍵單擊它打開context菜單。
  • ? ? 選擇部署。

? ? 您將在NetBeans控制臺輸出中看到以下輸出。

ant -f C:\\EJB\\EjbComponent -DforceRedeploy=true -Ddirectory.deployment.supported=false -Dnb.wait.for.caches=true run init: deps-jar: compile: library-inclusion-in-archive: Building jar: C:\EJB\EjbComponent\dist\EjbComponent.jar dist-directory-deploy: pre-run-deploy: Checking data source definitions for missing JDBC drivers... Distributing C:\EJB\EjbComponent\dist\EjbComponent.jar to [org.jboss.deployment.spi.LocalhostTarget@1e4f84ee] Deploying C:\EJB\EjbComponent\dist\EjbComponent.jar Application Deployed Operation start started Operation start completed post-run-deploy: run-deploy: run: BUILD SUCCESSFUL (total time: 2 seconds)

? ? JBoss應用服務器日志輸出

16:30:00,963 INFO [DeployHandler] Begin start, [EjbComponent.jar] ... 16:30:01,233 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@12038795{vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/EjbComponent.jar/} ... 16:30:01,281 INFO [JBossASKernel] jndi:LibrarySessionBean/remote-com.tutorialspoint.stateless.LibrarySessionBeanRemote 16:30:01,281 INFO [JBossASKernel] Class:com.tutorialspoint.stateless.LibrarySessionBeanRemote 16:30:01,281 INFO [JBossASKernel] jndi:LibrarySessionBean/remote 16:30:01,281 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=EjbComponent.jar,name= LibrarySessionBean,service=EJB3) to KernelDeployment of: EjbComponent.jar 16:30:01,282 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=EjbComponent.jar,name=BookMessageHandler,service=EJB3 16:30:01,282 INFO [JBossASKernel] with dependencies: 16:30:01,282 INFO [JBossASKernel] and demands: 16:30:01,282 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService ... 16:30:01,283 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@5497cb{name=jboss.j2ee:jar=EjbComponent.jar, name=LibrarySessionBean, service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true} ... 16:30:01,394 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=EjbComponent.jar,name=LibrarySessionBean,service=EJB3 16:30:01,395 INFO [EJBContainer] STARTED EJB: com.tutorialspoint.stateless.LibrarySessionBean ejbName: LibrarySessionBean 16:30:01,401 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:LibrarySessionBean/remote - EJB3.x Default Remote Business InterfaceLibrarySessionBean/remote-com.tutorialspoint.stateless.LibrarySessionBeanRemote - EJB3.x Remote Business Interface 16:30:02,723 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=EjbComponent.jar,name=LibrarySessionBean,service=EJB3 16:30:02,723 INFO [EJBContainer] STARTED EJB: com.tutorialspoint.stateless.LibrarySessionBean ejbName: LibrarySessionBean 16:30:02,731 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:LibrarySessionBean/remote - EJB3.x Default Remote Business InterfaceLibrarySessionBean/remote-com.tutorialspoint.stateless.LibrarySessionBeanRemote - EJB3.x Remote Business Interface

未完待續,下一節。

總結

以上是生活随笔為你收集整理的EJB-应用创造中的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。