Your SlideShare is downloading. ×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

GlassFish v3 for Tomcat User

3,058
views

Published on

This presentation explains the benefit of GlassFish for Tomcat users.

This presentation explains the benefit of GlassFish for Tomcat users.

Published in: Technology, News & Politics

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,058
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
31
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Insert Picture Here> Javahttp://yoshio3.com
  • 2. Copyright© 2011, Oracle. All rights reserved.
  • 3.             Copyright© 2011, Oracle. All rights reserved.
  • 4. Copyright© 2011, Oracle. All rights reserved.
  • 5.           http://glassfish.org       GlassFish Server   http://www.oracle.com      Copyright© 2011, Oracle. All rights reserved.
  • 6.                     Copyright© 2011, Oracle. All rights reserved.
  • 7.                       Copyright© 2011, Oracle. All rights reserved.
  • 8. Oracle GlassFish Server Copyright© 2011, Oracle. All rights reserved.
  • 9. Copyright© 2011, Oracle. All rights reserved.
  • 10. Copyright© 2011, Oracle. All rights reserved.
  • 11. Copyright© 2011, Oracle. All rights reserved.
  • 12.   Copyright© 2011, Oracle. All rights reserved.
  • 13. Copyright© 2011, Oracle. All rights reserved.
  • 14. 
   ServletJSPExpression Language Copyright© 2011, Oracle. All rights reserved.
  • 15. 
       GlassFish WebProfileServlet 3.0 JPA 2.0JSP 2.2/EL JTA 1.1JSTL DI 1.0/CDI 1.0JSF 2.0 Managed Bean 1.0Bean Validation 1.0 Interceptors 1.1 EJB 3.1 Lite Common Annotations Copyright© 2011, Oracle. All rights reserved.
  • 16.           Tomcat Tomcat Tomcat Tomcat Tomcat Tomcat Tomcat Tomcat Tomcat •  •  •  Copyright© 2011, Oracle. All rights reserved.
  • 17.             GlassFish GlassFish •  •  •  Copyright© 2011, Oracle. All rights reserved.
  • 18.       Tomcat Tomcat Tomcat Tomcat GlassFish Copyright© 2011, Oracle. All rights reserved.
  • 19. Copyright© 2011, Oracle. All rights reserved.
  • 20. 
             Copyright© 2011, Oracle. All rights reserved.
  • 21. 
                   Copyright© 2011, Oracle. All rights reserved.
  • 22. 
   Copyright© 2011, Oracle. All rights reserved.
  • 23. 
                 Copyright© 2011, Oracle. All rights reserved.
  • 24.     Copyright© 2011, Oracle. All rights reserved.
  • 25.     Copyright© 2011, Oracle. All rights reserved.
  • 26.               Copyright© 2011, Oracle. All rights reserved.
  • 27. Oracle GlassFish Server v3 Copyright© 2011, Oracle. All rights reserved.
  • 28.                           Copyright© 2011, Oracle. All rights reserved.
  • 29.               Copyright© 2011, Oracle. All rights reserved.
  • 30.             C:glassfishv3bin> asadmin version --verbose = Oracle GlassFish Server 3.0.1 (build 22) JRE 1.6.0_21 versionC:glassfishv3bin> asadmin version --verbose = GlassFish Server Open Source Edition 3.0.1 (build 22)JRE 1.6.0_21 version Copyright© 2011, Oracle. All rights reserved.
  • 31.                       domains Copyright© 2011, Oracle. All rights reserved.
  • 32. 
                     http://IP_ADDRESS:4848 Copyright© 2011, Oracle. All rights reserved.
  • 33.               Copyright© 2011, Oracle. All rights reserved.
  • 34. 
                     http://IP_ADDRESS:4848/management/domain Copyright© 2011, Oracle. All rights reserved.
  • 35.   > curl -u admin:adminadmin -X GET -H "Accept: application/json" http:// ! localhost:4848/management/domain/configs/config/server-config/network-! config/network-listeners/network-listener/http-listener-1 { "HttpListener1":{"port":"8080", "enabled":"true", "protocol":"http-! listener-1” , "transport":"tcp", "address":"0.0.0.0", "name":"http-listener-1", "jk-enabled” :"false", "thread-pool":"http-thread-pool"}, … !  > curl -u admin:adminadmin -X POST -d "port=18080" -H "Accept: application/! json" http://localhost:4848/management/domain/configs/config/server-config/! network-config/network-listeners/network-listener/http-listener-1"http://localhost:4848/management/domain/configs/config/server-config/! network-config/network-listeners/network-listener/http-listener-1" updated ! successfully.! Copyright© 2011, Oracle. All rights reserved.
  • 36.               Copyright© 2011, Oracle. All rights reserved.
  • 37. 
             Copyright© 2011, Oracle. All rights reserved.
  • 38. Oracle GlassFish Server v3.x Copyright© 2011, Oracle. All rights reserved.
  • 39. 
 Copyright© 2011, Oracle. All rights reserved.
  • 40.                 OSGi  Java SE       Copyright© 2011, Oracle. All rights reserved.
  • 41.         GlassFish OSGi   OSGi HK2   HK2 Service Mapper  OSGi     Java SE   Copyright© 2011, Oracle. All rights reserved.
  • 42.             Copyright© 2011, Oracle. All rights reserved.
  • 43. 
 % telnet localhost 6666! Trying 127.0.0.1…! Connected to localhost.!Escape character is ‘^]’.!Felix Remote Shell Console:!============================!-> ps (GlassFish v3 )!START LEVEL 1!ID State Level Name![ 0] [Active ] [ 0] System Bundle (2.0.2)!…… ( )![ 245] [Installed ] [ 1] MyBundle (1.0.0)!-> start 245!-> stop 245! Copyright© 2011, Oracle. All rights reserved.
  • 44.                           Copyright© 2011, Oracle. All rights reserved.
  • 45. B B Thread-1 Thread-1B B Thread-2 Thread-2B B Thread-3 Thread-3 Copyright© 2011, Oracle. All rights reserved.
  • 46.     Embedded Container   Transaction Security Messaging Manager System Engine    Java SE     Copyright© 2011, Oracle. All rights reserved.
  • 47. Copyright© 2011, Oracle. All rights reserved.
  • 48.                 Copyright© 2011, Oracle. All rights reserved.
  • 49.           Copyright© 2011, Oracle. All rights reserved.
  • 50. 
 > asadmin deploy --name=HelloWorld:MS1 ./ ! HelloWorldWeb-MS1.war!! > asadmin deploy --enabled=false –-! name=HelloWorld:Beta ./HelloWorldWeb-Beta.war ! Application deployed with name HelloWorld:Beta.! Command deploy executed successfully. !! > asadmin deploy --enabled=false –-! name=HelloWorld:GA ./HelloWorldWeb-GA.war ! Application deployed with name HelloWorld:GA.! Command deploy executed successfully.! Copyright© 2011, Oracle. All rights reserved.
  • 51. 
 > asadmin enable HelloWorld:GA! Command enable executed successfully.!! > asadmin list-applications -l! NAME TYPE STATUS ! HelloWorld:MS1 <web> disabled ! HelloWorld:Beta <web> disabled ! HelloWorld:GA <web> enabled ! Command list-applications executed successfully. Copyright© 2011, Oracle. All rights reserved.
  • 52. 
           Copyright© 2011, Oracle. All rights reserved.
  • 53.           Copyright© 2011, Oracle. All rights reserved.
  • 54.     SSH Client   sshd sshd       Copyright© 2011, Oracle. All rights reserved.
  • 55. 
                   http://tinyurl.com/3yto2gc Copyright© 2011, Oracle. All rights reserved.
  • 56. 
                 Copyright© 2011, Oracle. All rights reserved.
  • 57. Copyright© 2011, Oracle. All rights reserved.
  • 58. Copyright© 2011, Oracle. All rights reserved.
  • 59.                         http://tinyurl.com/2aejyfa Copyright© 2011, Oracle. All rights reserved.
  • 60. Copyright© 2011, Oracle. All rights reserved.
  • 61.                 Copyright© 2011, Oracle. All rights reserved.
  • 62.     Copyright© 2011, Oracle. All rights reserved.
  • 63.                           Copyright© 2011, Oracle. All rights reserved.
  • 64. Copyright© 2011, Oracle. All rights reserved.
  • 65. Copyright© 2011, Oracle. All rights reserved.
  • 66. Copyright© 2011, Oracle. All rights reserved.