SlideShare a Scribd company logo
Платформа Java и
IDE Netbeans 6.7 для
разработки
Enterprise (корпоративных)
и Web приложений

• Андрей Родионов
• Community manager
• Sun Microsystems
Перечень тем
• Двух- и трех– уровневая архитектура приложений
• Обзор Java платформы: Java SE, Java EE, Java ME
• IDE NetBeans как среда разработки разных типов
  приложений
• Возможности Java EE для построения трех(много)-
  уровневых приложений
• Glassfish Application Server - обзор, демонстрация работы
• Технологии для разработки Web-уровня
• Технологии для разработки бизнес-уровня
• Практика
  > Web service
  > Java persistence
  > EJB
«Drinkens, Who is this?»
3 Million People a Week Join the
Network!
Java SE, Java EE, Java ME
Java SE, Java EE, Java ME
NetBeans IDE 6.7 Features
• Java SE (Java Standard Edition)
• Web and Java EE (Java Enterprise Edition)
 > Web Applications
 > Java EE Applications
 > Web Services
• Mobility (Java Micro Edition)
• Ruby, JRuby, Ruby on Rails
• C and C++
• UML
• SOA, XSLT Designer, WSDL and XML
• JavaFX
• Project Kanai
Двух- и трех– уровневая архитектура
приложений
• Возможность использования
  различных языков
  программирования для различных
  компонентов
• Централизация компонентов
• Балансировка нагрузки
• Более эффективный доступ к
  данным
• Улучшенная защита
• Более простой доступ к внешним
  ресурсам
Java SE, Java EE, Java ME
Java Stadard Edition
Java Enterprise Edition
• Построена на Java Standard Edition (Java SE)
• Web Application Technologies
• Web Services Technologies
• Enterprise Application Technologies
• Management and Security Technologies

• Sun Java System Application Server (Glassfish)
Java EE для построения трех(много)-
уровневых приложений
Java EE Components

• Application clients and applets are components that
  run on the client
• Java Servlet, JavaServer Faces, and JavaServer
  Pages (JSP) technology components are web
  components that run on the server
• Enterprise JavaBeans (EJB) components
  (enterprise beans) are business components that
  run on the server
Java EE Clients

• Web Clients
  > dynamic web pages containing various types of
    markup language (HTML, XML, and so on), which are
    generated by web components running in the web tier
  > web browser, which renders the pages received from
    the server
• Applets
• Application Clients
• The JavaBeans Component Architecture
Java EE Server Communications
Web Components
• Java Servlet technology
• Java Server Pages (JSP)
• Java Server Faces (JSF)
Business Components &
Enterprise Information SystemTier
Архитектура API Java EE
Java EE 5 APIs
• Java ServletTechnology        • Java Architecture for XML
                                  Binding (JAXB)
• JavaServer PagesTechnology
                                • SOAP with Attachments API
• JavaServer Pages                for Java
  StandardTag Library
                                • Java API for XML Registries
• JavaServer Faces
                                • J2EE Connector
• Java Message Service API        Architecture
• JavaTransaction API           • Java Database Connectivity
• JavaMail API                    API
• JavaBeans Activation          • Java Persistence API
  Framework                     • Java Naming and Directory
• Java API for XML Processing     Interface
• Java API for XMLWeb           • Java Authentication and
  Services (JAX-WS)               Authorization Service
Типы Web-приложений

• Presentation-oriented
  > A presentation-oriented web application generates
   interactive web pages containing various types of
   markup language (HTML, XML, and so on) and
   dynamic content in response to requests.
• Service-oriented
  > A service-oriented web application implements the
   endpoint of a web service. Presentation-oriented
   applications are often clients of service-oriented web
   applications
Java Platform and IDE Netbeans 6.7 for Developing Enterprise and Web Applications
Технологии для разработки Web-
уровня
• Java Servlet technology
• Java Server Pages (JSP)
• Java Server Faces
Java Servlet technology
• A servlet is a Java programming language class
Java Server Pages (JSP)
• JavaServer Pages (JSP) technology allows you to easily create web
  content that has both static and dynamic components
• A JSP page is a text document that contains two types of text: static
  data, which can be expressed in any text-based format (such as
  HTML, SVG,WML, and XML), and JSP elements, which construct
  dynamic content
Java Platform and IDE Netbeans 6.7 for Developing Enterprise and Web Applications
Java Server Faces
• JavaServer Faces technology is a server-side user
  interface component framework for Java
  technology-based web applications
Технологии для разработки бизнес-
уровня
• Web Services
• Enterprise JavaBeans (EJB)
 > Session Bean (Stateful, Stateless)
 > Message-Driven Beans
• Java Persistence
Web Services
• Дает возможность удаленного вызова функций по
  протоколу HTTP
• Клиент и сервер могут базироваться на разных
  программных платформах
• Стандарт передачи данных SOAP (формат XML)
Java Platform and IDE Netbeans 6.7 for Developing Enterprise and Web Applications
Java Platform and IDE Netbeans 6.7 for Developing Enterprise and Web Applications
Java Platform and IDE Netbeans 6.7 for Developing Enterprise and Web Applications
Enterprise JavaBeans (EJB)
• Written in the Java programming language, an
  enterprise bean is a server-side component that
  encapsulates the business logic of an application.
  The business logic is the code that fulfills the purpose
  of the application.
• Enterprise beans simplify the development of large,
  distributed applications
• Enterprise beans are portable components, the
  application assembler can build new applications
  from existing beans
When to Use Enterprise Beans?
• The application must be scalable. To accommodate
  a growing number of users, you may need to
  distribute an application’s components across
  multiple machines.
• Transactions must ensure data integrity. Enterprise
  beans support transactions, the mechanisms that
  manage the concurrent access of shared objects.
• The application will have a variety of clients. With
  only a few lines of code, remote clients can easily
  locate enterprise beans. These clients can be thin,
  various, and numerous.
Types of Enterprise Beans
Session Bean - a session bean represents a single
 client inside the Application Server. To access an
 application that is deployed on the server, the client
 invokes the session bean’s methods
  > Stateful
  > Stateless
• Message-Driven Beans - a message-driven bean is
  an enterprise bean that allows Java EE
  applications to process messages asynchronously.
  It normally acts as a JMS message listener, which
  is similar to an event listener except that it receives
  JMS messages instead of events.
Stateful session bean

• The bean’s state represents the interaction
  between the bean and a specific client.
• The bean needs to hold information about the client
  across method invocations.
• The bean mediates between the client and the
  other components of the application, presenting a
  simplified view to the client.
• Behind the scenes, the bean manages the work
  flow of several enterprise beans.
Stateless session bean

• The bean’s state has no data for a specific client.
• In a single method invocation, the bean performs a
  generic task for all clients. For example, you might
  use a stateless session bean to send an email that
  confirms an online order.
• A stateless session bean can implement a web
  service, but other types of enterprise beans cannot.
Message-Driven Beans
Session beans allow you to send JMS messages and to
 receive them synchronously, but not asynchronously.
 To avoid tying up server resources, do not to use
 blocking synchronous receives in a server-side
 component, and in general JMS messages should not
 be sent or received synchronously. To receive
 messages asynchronously, use a message-driven
 bean.
СПАСИБО!

Andrii.Rodionov@sun.com

http://blogs.sun.com/ntuu
http://osug.org.ua/

More Related Content

What's hot (18)

PPTX
WebSphere Application Server Family (Editions Comparison)
ejlp12
 
PDF
Single page applications with backbone js
Gil Fink
 
DOC
Websphere interview Questions
gummadi1
 
DOCX
Ibm web sphere application server interview questions
praveen_guda
 
PDF
Single Page Apps
Gil Fink
 
PPT
SD Forum Java SIG - Service Oriented UI Architecture
Jeff Haynie
 
PPTX
IBM WebSphere Application Server version to version comparison
ejlp12
 
PPTX
Back to the Basics - 1 - Introduction to Web Development
Clint LaForest
 
PPT
IBM WebSphere Portal
Vincent Perrin
 
PPTX
Jsf login logout project
Gagandeep Singh
 
PDF
Java unit 14
Shipra Swati
 
PDF
Java Edge.2008.Web.Frameworks.Catagorized
roialdaag
 
PDF
Life above the_service_tier_v1.1
Ganesh Prasad
 
PPT
oracle oa framework training | oracle oa framework training courses | oa fram...
Nancy Thomas
 
PPTX
Oracle application framework (oaf) online training
Glory IT Technologies Pvt. Ltd.
 
PPTX
Oracle Alta UI Patterns for Enterprise Applications and Responsive UI Support
andrejusb
 
DOCX
Client side vs server side
abgjim96
 
PPTX
An Oracle ADF Introduction
Jean-Marc Desvaux
 
WebSphere Application Server Family (Editions Comparison)
ejlp12
 
Single page applications with backbone js
Gil Fink
 
Websphere interview Questions
gummadi1
 
Ibm web sphere application server interview questions
praveen_guda
 
Single Page Apps
Gil Fink
 
SD Forum Java SIG - Service Oriented UI Architecture
Jeff Haynie
 
IBM WebSphere Application Server version to version comparison
ejlp12
 
Back to the Basics - 1 - Introduction to Web Development
Clint LaForest
 
IBM WebSphere Portal
Vincent Perrin
 
Jsf login logout project
Gagandeep Singh
 
Java unit 14
Shipra Swati
 
Java Edge.2008.Web.Frameworks.Catagorized
roialdaag
 
Life above the_service_tier_v1.1
Ganesh Prasad
 
oracle oa framework training | oracle oa framework training courses | oa fram...
Nancy Thomas
 
Oracle application framework (oaf) online training
Glory IT Technologies Pvt. Ltd.
 
Oracle Alta UI Patterns for Enterprise Applications and Responsive UI Support
andrejusb
 
Client side vs server side
abgjim96
 
An Oracle ADF Introduction
Jean-Marc Desvaux
 

Similar to Java Platform and IDE Netbeans 6.7 for Developing Enterprise and Web Applications (20)

PPTX
Web programming and development - Introduction
Joel Briza
 
PPTX
Java EE 7 introduction
Moumie Soulemane
 
PDF
Summer training java
Arshit Rai
 
PPT
Introduction to java_ee
Yogesh Bindwal
 
PPT
J2 ee architecture
saurabhshertukde
 
PDF
Enterprise java unit-1_chapter-1
sandeep54552
 
PPT
Java J2EE
Sandeep Rawat
 
PPT
Summer training java
Arshit Rai
 
PDF
J2EE day 1
Biswabrata Banerjee
 
DOCX
Jboss
Sridhar Rapala
 
PPTX
Enterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPT
dcruzsophia24
 
PDF
Java EE6 CodeCamp16 oct 2010
Codecamp Romania
 
DOCX
J2EE Architecture Explained
Adarsh Kr Sinha
 
PPTX
Enrterprise Java-Unit 1 (All chapters) for TYIT PPTx
dcruzsophia24
 
PPTX
J2ee web services(overview)
Prafull Jain
 
PPT
Introduction to java ee
Ranjan Kumar
 
PDF
Java Interview Questions Answers Guide Section 2
DaisyWatson5
 
PDF
JEE 8, A Big Overview
Jasmine Conseil
 
PPT
J2 EEE SIDES
bputhal
 
PPT
Javaee intro
haris147
 
Web programming and development - Introduction
Joel Briza
 
Java EE 7 introduction
Moumie Soulemane
 
Summer training java
Arshit Rai
 
Introduction to java_ee
Yogesh Bindwal
 
J2 ee architecture
saurabhshertukde
 
Enterprise java unit-1_chapter-1
sandeep54552
 
Java J2EE
Sandeep Rawat
 
Summer training java
Arshit Rai
 
Enterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPT
dcruzsophia24
 
Java EE6 CodeCamp16 oct 2010
Codecamp Romania
 
J2EE Architecture Explained
Adarsh Kr Sinha
 
Enrterprise Java-Unit 1 (All chapters) for TYIT PPTx
dcruzsophia24
 
J2ee web services(overview)
Prafull Jain
 
Introduction to java ee
Ranjan Kumar
 
Java Interview Questions Answers Guide Section 2
DaisyWatson5
 
JEE 8, A Big Overview
Jasmine Conseil
 
J2 EEE SIDES
bputhal
 
Javaee intro
haris147
 
Ad

More from SSA KPI (20)

PDF
Germany presentation
SSA KPI
 
PDF
Grand challenges in energy
SSA KPI
 
PDF
Engineering role in sustainability
SSA KPI
 
PDF
Consensus and interaction on a long term strategy for sustainable development
SSA KPI
 
PDF
Competences in sustainability in engineering education
SSA KPI
 
PDF
Introducatio SD for enginers
SSA KPI
 
PPT
DAAD-10.11.2011
SSA KPI
 
PDF
Talking with money
SSA KPI
 
PDF
'Green' startup investment
SSA KPI
 
PDF
From Huygens odd sympathy to the energy Huygens' extraction from the sea waves
SSA KPI
 
PDF
Dynamics of dice games
SSA KPI
 
PPT
Energy Security Costs
SSA KPI
 
PPT
Naturally Occurring Radioactivity (NOR) in natural and anthropic environments
SSA KPI
 
PDF
Advanced energy technology for sustainable development. Part 5
SSA KPI
 
PDF
Advanced energy technology for sustainable development. Part 4
SSA KPI
 
PDF
Advanced energy technology for sustainable development. Part 3
SSA KPI
 
PDF
Advanced energy technology for sustainable development. Part 2
SSA KPI
 
PDF
Advanced energy technology for sustainable development. Part 1
SSA KPI
 
PPT
Fluorescent proteins in current biology
SSA KPI
 
PPTX
Neurotransmitter systems of the brain and their functions
SSA KPI
 
Germany presentation
SSA KPI
 
Grand challenges in energy
SSA KPI
 
Engineering role in sustainability
SSA KPI
 
Consensus and interaction on a long term strategy for sustainable development
SSA KPI
 
Competences in sustainability in engineering education
SSA KPI
 
Introducatio SD for enginers
SSA KPI
 
DAAD-10.11.2011
SSA KPI
 
Talking with money
SSA KPI
 
'Green' startup investment
SSA KPI
 
From Huygens odd sympathy to the energy Huygens' extraction from the sea waves
SSA KPI
 
Dynamics of dice games
SSA KPI
 
Energy Security Costs
SSA KPI
 
Naturally Occurring Radioactivity (NOR) in natural and anthropic environments
SSA KPI
 
Advanced energy technology for sustainable development. Part 5
SSA KPI
 
Advanced energy technology for sustainable development. Part 4
SSA KPI
 
Advanced energy technology for sustainable development. Part 3
SSA KPI
 
Advanced energy technology for sustainable development. Part 2
SSA KPI
 
Advanced energy technology for sustainable development. Part 1
SSA KPI
 
Fluorescent proteins in current biology
SSA KPI
 
Neurotransmitter systems of the brain and their functions
SSA KPI
 
Ad

Recently uploaded (20)

PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PDF
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
PDF
AI-Powered-Visual-Storytelling-for-Nonprofits.pdf
TechSoup
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PPTX
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
PDF
Workbook de Inglés Completo - English Path.pdf
shityouenglishpath
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PPTX
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PDF
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PDF
epi editorial commitee meeting presentation
MIPLM
 
PPTX
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
AI-Powered-Visual-Storytelling-for-Nonprofits.pdf
TechSoup
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
Workbook de Inglés Completo - English Path.pdf
shityouenglishpath
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Introduction to Indian Writing in English
Trushali Dodiya
 
epi editorial commitee meeting presentation
MIPLM
 
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 

Java Platform and IDE Netbeans 6.7 for Developing Enterprise and Web Applications

  • 1. Платформа Java и IDE Netbeans 6.7 для разработки Enterprise (корпоративных) и Web приложений • Андрей Родионов • Community manager • Sun Microsystems
  • 2. Перечень тем • Двух- и трех– уровневая архитектура приложений • Обзор Java платформы: Java SE, Java EE, Java ME • IDE NetBeans как среда разработки разных типов приложений • Возможности Java EE для построения трех(много)- уровневых приложений • Glassfish Application Server - обзор, демонстрация работы • Технологии для разработки Web-уровня • Технологии для разработки бизнес-уровня • Практика > Web service > Java persistence > EJB
  • 4. 3 Million People a Week Join the Network!
  • 5. Java SE, Java EE, Java ME
  • 6. Java SE, Java EE, Java ME
  • 7. NetBeans IDE 6.7 Features • Java SE (Java Standard Edition) • Web and Java EE (Java Enterprise Edition) > Web Applications > Java EE Applications > Web Services • Mobility (Java Micro Edition) • Ruby, JRuby, Ruby on Rails • C and C++ • UML • SOA, XSLT Designer, WSDL and XML • JavaFX • Project Kanai
  • 8. Двух- и трех– уровневая архитектура приложений • Возможность использования различных языков программирования для различных компонентов • Централизация компонентов • Балансировка нагрузки • Более эффективный доступ к данным • Улучшенная защита • Более простой доступ к внешним ресурсам
  • 9. Java SE, Java EE, Java ME
  • 11. Java Enterprise Edition • Построена на Java Standard Edition (Java SE) • Web Application Technologies • Web Services Technologies • Enterprise Application Technologies • Management and Security Technologies • Sun Java System Application Server (Glassfish)
  • 12. Java EE для построения трех(много)- уровневых приложений
  • 13. Java EE Components • Application clients and applets are components that run on the client • Java Servlet, JavaServer Faces, and JavaServer Pages (JSP) technology components are web components that run on the server • Enterprise JavaBeans (EJB) components (enterprise beans) are business components that run on the server
  • 14. Java EE Clients • Web Clients > dynamic web pages containing various types of markup language (HTML, XML, and so on), which are generated by web components running in the web tier > web browser, which renders the pages received from the server • Applets • Application Clients • The JavaBeans Component Architecture
  • 15. Java EE Server Communications
  • 16. Web Components • Java Servlet technology • Java Server Pages (JSP) • Java Server Faces (JSF)
  • 17. Business Components & Enterprise Information SystemTier
  • 19. Java EE 5 APIs • Java ServletTechnology • Java Architecture for XML Binding (JAXB) • JavaServer PagesTechnology • SOAP with Attachments API • JavaServer Pages for Java StandardTag Library • Java API for XML Registries • JavaServer Faces • J2EE Connector • Java Message Service API Architecture • JavaTransaction API • Java Database Connectivity • JavaMail API API • JavaBeans Activation • Java Persistence API Framework • Java Naming and Directory • Java API for XML Processing Interface • Java API for XMLWeb • Java Authentication and Services (JAX-WS) Authorization Service
  • 20. Типы Web-приложений • Presentation-oriented > A presentation-oriented web application generates interactive web pages containing various types of markup language (HTML, XML, and so on) and dynamic content in response to requests. • Service-oriented > A service-oriented web application implements the endpoint of a web service. Presentation-oriented applications are often clients of service-oriented web applications
  • 22. Технологии для разработки Web- уровня • Java Servlet technology • Java Server Pages (JSP) • Java Server Faces
  • 23. Java Servlet technology • A servlet is a Java programming language class
  • 24. Java Server Pages (JSP) • JavaServer Pages (JSP) technology allows you to easily create web content that has both static and dynamic components • A JSP page is a text document that contains two types of text: static data, which can be expressed in any text-based format (such as HTML, SVG,WML, and XML), and JSP elements, which construct dynamic content
  • 26. Java Server Faces • JavaServer Faces technology is a server-side user interface component framework for Java technology-based web applications
  • 27. Технологии для разработки бизнес- уровня • Web Services • Enterprise JavaBeans (EJB) > Session Bean (Stateful, Stateless) > Message-Driven Beans • Java Persistence
  • 28. Web Services • Дает возможность удаленного вызова функций по протоколу HTTP • Клиент и сервер могут базироваться на разных программных платформах • Стандарт передачи данных SOAP (формат XML)
  • 32. Enterprise JavaBeans (EJB) • Written in the Java programming language, an enterprise bean is a server-side component that encapsulates the business logic of an application. The business logic is the code that fulfills the purpose of the application. • Enterprise beans simplify the development of large, distributed applications • Enterprise beans are portable components, the application assembler can build new applications from existing beans
  • 33. When to Use Enterprise Beans? • The application must be scalable. To accommodate a growing number of users, you may need to distribute an application’s components across multiple machines. • Transactions must ensure data integrity. Enterprise beans support transactions, the mechanisms that manage the concurrent access of shared objects. • The application will have a variety of clients. With only a few lines of code, remote clients can easily locate enterprise beans. These clients can be thin, various, and numerous.
  • 34. Types of Enterprise Beans Session Bean - a session bean represents a single client inside the Application Server. To access an application that is deployed on the server, the client invokes the session bean’s methods > Stateful > Stateless • Message-Driven Beans - a message-driven bean is an enterprise bean that allows Java EE applications to process messages asynchronously. It normally acts as a JMS message listener, which is similar to an event listener except that it receives JMS messages instead of events.
  • 35. Stateful session bean • The bean’s state represents the interaction between the bean and a specific client. • The bean needs to hold information about the client across method invocations. • The bean mediates between the client and the other components of the application, presenting a simplified view to the client. • Behind the scenes, the bean manages the work flow of several enterprise beans.
  • 36. Stateless session bean • The bean’s state has no data for a specific client. • In a single method invocation, the bean performs a generic task for all clients. For example, you might use a stateless session bean to send an email that confirms an online order. • A stateless session bean can implement a web service, but other types of enterprise beans cannot.
  • 37. Message-Driven Beans Session beans allow you to send JMS messages and to receive them synchronously, but not asynchronously. To avoid tying up server resources, do not to use blocking synchronous receives in a server-side component, and in general JMS messages should not be sent or received synchronously. To receive messages asynchronously, use a message-driven bean.