Your SlideShare is downloading. ×
0
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
GlassFish v3 and Java EE 6
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

GlassFish v3 and Java EE 6

875

Published on

This presentation explain the feature of Java EE 6 and GlassFish v3.

This presentation explain the feature of Java EE 6 and GlassFish v3.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
875
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
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. GlassFish ! JavaFusion Middleware Fusion Middleware SC
  • 2. Agendaü ü Java EE 6 ü Oracle GlassFish Server 3 ü Oracle GlassFish Server Copyright© 2010, Oracle. All rights reserved. 2
  • 3. Java EE Copyright© 2010, Oracle. All rights reserved. 4
  • 4. •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 5
  • 5. •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 6
  • 6. Java EE 62009 12 10 Copyright© 2010, Oracle. All rights reserved. 7
  • 7. Java EE 6•  •  •  •  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 8
  • 8. •  •  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 9
  • 9. •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 10
  • 10. Web•  •  •  •  •  •  •  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 11
  • 11. Pruning•  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 12
  • 12. Servlet 3.0•  •  •  •  •  •  •  •  Java SE 5 Copyright© 2010, Oracle. All rights reserved. 13
  • 13. Servlet 3.0•  •  •  •  •  •  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 14
  • 14. Servlet 3.0package hello;import javax.servlet.annotation.WebServlet;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;@WebServlet(name="Hello", urlPatterns={"/Hello"})public class Hello extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws <web-app> <servlet> ServletException, IOException { ....... <servlet-name>Hello</servlet-name> } <servlet-class>hello.Hello</servlet-class>} </servlet> <servlet-mapping> <servlet-name>Hello</servlet-name> <url-pattern>/Hello/* </url-pattern> </servlet-mapping> ... </web-app> Copyright© 2010, Oracle. All rights reserved. 15
  • 15. EJB 3.1•  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 16
  • 16. EJB 3.1 –•  foo.ear foo.ear foo.ear lib/foo_common.jar WEB-INF/web.xml com/acme/Foo.class WEB-INF/classes/ com/acme/FooServlet.class foo_web.war WEB-INF/classes WEB-INF/web.xml WEB-INF/classes/ foo. ar com/acme/FooServlet.class com/acme/FooBean.class foo_ejb.jar com/acme/Foo.class com/acme/FooBean.class (ear,war,jar) / Copyright© 2010, Oracle. All rights reserved. 17
  • 17. EJB 3.1 – •  •  •  WEB-INF/classes/com/acme/ •  FooServlet.class FooBean.class (EJB) •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 18
  • 18. EJB 3.1 - “Lite”Full EJB 3.1•  •  •  •  •  •  •  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 19
  • 19. Bean Validation 1.0•  •  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 20
  • 20. Java Persistence API 2.0•  •  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 21
  • 21. JPA 2.0 - Criteria API •  EntityManager em = ; CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery<Person> p = cb.createQuery(Person.class); Root<Person> person = p.from(Person.class); p.select(person).where( cb.equal(person.get(Person_.name),Taro Yamada ); •  •  Person_.name IDE Copyright© 2010, Oracle. All rights reserved. 22
  • 22. JavaServer Faces 2.0•  •  •  •  •  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 23
  • 23. Dependency Injection •  •  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 24
  • 24. GlassFish v32009 12 10 Copyright© 2010, Oracle. All rights reserved. 25
  • 25. GlassFish v3 •  –  Java EE 6 –  –  –  •  –  I/O –  OSGi •  –  •  –  Copyright© 2010, Oracle. All rights reserved. 26
  • 26. •  –  4 (CPU: 2.4GHz Core 2Duo/4GB) –  –  –  –  Copyright© 2010, Oracle. All rights reserved. 27
  • 27. •  –  –  Web https://glassfishplugins.dev.java.net/ Copyright© 2010, Oracle. All rights reserved. 28
  • 28. •  –  –  -keepSessions=true•  –  Eclipse –  NetBeans Copyright© 2010, Oracle. All rights reserved. 29
  • 29. •  –  ( ) –  –  –  REST API Copyright© 2010, Oracle. All rights reserved. 30
  • 30. I/O I/O(Blocking) I/O(Non-Blocking)Request 4Request 5B B Thread-1 Thread-1B B Thread-2 Thread-2B B Thread-3 Thread-3 Copyright© 2010, Oracle. All rights reserved. 31
  • 31. GlassFish OSGi•  GlassFish v3 Copyright© 2010, Oracle. All rights reserved. 32
  • 32. GlassFish•  –  –  Embedded Container Transaction Security Messaging•  Manager System Engine –  –  Java SE•  Copyright© 2010, Oracle. All rights reserved. 33
  • 33. Junit@Testpublic void testSayHello() { Map p = new HashMap(); p.put("org.glassfish.ejb.embedded.glassfish.instance.root", "/Applications/GlassFish/glassfishv3-webprofile/glassfish/ domains/domain1"); EJBContainer container = EJBContainer.createEJBContainer(p); try{ Hello hello = (Hello)container.getContext().lookup ("java:global/classes/Hello"); System.out.println(hello.sayHello()); }catch(Exception e){ e.printStackTrace(); }} Copyright© 2010, Oracle. All rights reserved. 34
  • 34. GlassFish
  • 35. •  –  –  –  •  –  –  –  •  –  Copyright© 2010, Oracle. All rights reserved. 36
  • 36. GlassFish v3.1•  –  –  SSH Node Agent –  –  •  •  HTML5 WebSocket •  –  DTrace •  WebLogic –  WebLogic Copyright© 2010, Oracle. All rights reserved. 37
  • 37. GlassFish v2.1.1 •  –  GlassFish –  –  –  Copyright© 2010, Oracle. All rights reserved. 38
  • 38. GlassFish v3.1 •  SSH –  SSH Client SSH Client –  Hudson(Trilead-ssh2) –  sshd sshd sshd –  •  –  ssh –  Cloud –  Auto Scale Copyright© 2010, Oracle. All rights reserved. 39
  • 39. GlassFish•  •  •  •  •  •  •  •  •  •  •  •  Copyright© 2010, Oracle. All rights reserved. 40
  • 40. GlassFish•  Oracle GlassFish Server •  http://www.oracle.com/technology/global/jp/products/glassfish•  Oracle GlassFish Server •  http://docs.sun.com/app/docs/coll/1343.13?l=ja•  Sun GlassFish Enterprise Server v3 •  http://docs.sun.com/app/docs/doc/821-1299•  GlassFish Community •  https://glassfish.dev.java.net•  GlassFish Wiki •  http://wiki.glassfish.java.net/•  •  http://blogs.sun.com/theaquarium/ •  http://yoshio3.com/ Copyright© 2010, Oracle. All rights reserved. 41
  • 41. •  –  –  –  –  –  •  –  –  –  •  Copyright© 2010, Oracle. All rights reserved. 42
  • 42. ( )Oracle PeopleSoft JD Edwards Siebel Copyright© 2010, Oracle. All rights reserved. 43
  • 43. Copyright© 2010, Oracle. All rights reserved. 44

×