Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
��������������������� �����������
��������������������
!��"���#�$��������$%&���
���%���'��(�������
#����$�!�%����
�����
��������������������� �������������������������)������
��������������
Introduction....................................................................................................................................................................3Setup Requirements....................................................................................................................................................... 4Summarizing Previous Episodes....................................................................................................................................5
ManagedBeans 1.0.................................................................................................................................................... 5JPA 2.0.......................................................................................................................................................................5Servlet 3.0................................................................................................................................................................. 5EJB 3.1...................................................................................................................................................................... 6
Exercise 1 (JSF)............................................................................................................................................................. 7IDE Code Completion...............................................................................................................................................8Wire UI control to code behavior..............................................................................................................................9
Exercise 2 (JAX-RS)....................................................................................................................................................12Turn the EJB into a REST service...........................................................................................................................12Expose a Java object as a RESTful resource.......................................................................................................... 13Support multiple media types and use a command-line client................................................................................15Remove web.xml.....................................................................................................................................................16
Exercise 3 (CDI).......................................................................................................................................................... 17Introduction............................................................................................................................................................. 17Enable CDI..............................................................................................................................................................17Standardize on @Inject........................................................................................................................................... 18Access from JSF facelets........................................................................................................................................ 18Strongly-typed injection using qualifiers................................................................................................................ 19
Conclusion................................................................................................................................................................... 22Troubleshooting........................................................................................................................................................... 23
Error connection to server localhost on port 1527.................................................................................................. 23Select deployment server........................................................................................................................................ 23Database access credentials.....................................................................................................................................24Accessing the Application Server (GlassFish) Admin Console..............................................................................24Admin Credentials for GlassFish Server.................................................................................................................24No project loaded in the IDE.................................................................................................................................. 25Open next exercise project...................................................................................................................................... 25Where can I find a list of shortcuts for the NetBeans IDE?.................................................................................... 26Ok, so GlassFish is behaving really bad and I'd like to restart it, how do I do it?.................................................. 26Ok, get me to the solution!......................................................................................................................................27
��������������������� �������������������������)������
���������
��%&�����**�+����� �,���������-�����������.� �������/�����(����+� �������
/�����(��������� �������������(����0�1���������� ���������������������$��������
�������2�����(����������������������$��������������%�����������"���������%���������
3��������$���+����(����%������4��$���������������������%�(�����������$%����
����5���������+�!6�7��37 �1�$��8��������%��4+�����������������"%������'����"������
/�(�����%-�9�2�%�����3'/94��(�%���%�����:
1���������������3���4������3���-��$%4�����((�����������������������������������������
�����(.;;������������:&����:%�����%�����������(��������%��(����������������(�������
���<�������������� �������=����>����?����&��-�!�������=��%������3�����%����
����������������&���$�������$���-���������-�$����������4:�1�����������%�������������
��������@����"��(�������$%�$��������$����������%&�+�������������������-�����%�
��(�����������������%������������$��-�����$���������((��%������%������������������� �
������$���:�1���������������(������������-�����-�$���$������������"(������$��������
(����������%���������)�%���+������$%�����+������$�+�������������������:
1�������������������2$���%��������� ��+��$���������-���������-�$������������������(���-���
(�����$�����(�������������%���:�9�������%����������-�����������>�%����:*+�!6�7���:�+�
����'/9��:*������������%�����������#�����������+� ���:�+��!��:*+����������:*+�����
����:
��������������������� �������������������������)������
�����������������
!�����������%������������������<�������������� ��?�(��2�%��+�������������$�%��%��������
�����������������������������������������������������������������������(���������-��%�������������������(���������������������������:�����������������A$���������������
������(��������������������������#�����������:�>���������%�+�B���������:C�����������
%������(�-��(���#�����(��2�%�������������$�����������-���������:�1����$�%��%����%���
���%�%&��$��������������������D7��.�
��(.;;&����:%��;(��2�%��;������������;��$�%��;��%;���;����������;����;�������*�*�
8��������%$���������%����3��:�6#����(��-��������%��(����4����������������'�'�
�����3'���������������'�����$������4+��$((������������ ���!�9��������@�����������
������(����������������������(�$���$��������������$�����A$�������:�!���$%�-�$�%���
(������-�������������������������������(���%����������:����������������+����������� �!���%��������������-�$�����������������(������-����������$����������"��"(�����%��
����������������� ��:� %��(����:��3�����4+�������%��� ����(�������%&����� %��(���
3� � +���%�%�����������=����>����:"�(�$���4+����9���������������������(�����:
1����������$������3!((������4����������������"����#��$�%�&�!�������������������������%����(����������������������� �(���������������������(���$%�����A$����-��(�����$�%��
�((��%���������������%$��������������(����"(�����%��3����������������4:�1��%����
��$�����������&������������� ���%����������������-�������������������:�1�������
��A$����������� ���8�����������%�����������������$%�-�$E�������%��������#�����
(��2�%�����(����������������(��������������%��%����������������������������� ���3������������������� �8����������4������������"(�������������������(�����%�������
�������$���������%�����������>+��!+�8���'��������+� ��'�������������������$������:
9���������+������(�������(��2�%�����������������$����3�"��%����+��"��%����+�����
�"��%����4+������(��(���������������$������������$���+���������������2���:����#�����
��(������-��������������%������(�$������(�����%���:�F�$��������%���������$�-������
��������:�!������������$������%���-�����������������(��2�%���%��(�����:
B���������:C:����������������������(.;;��������:���;���������:�1��<���?����<>$��?�
�����������������(���������-�����-�$�����+���%�$��������=����>����((��%������������:�
!�����������������������=����>����:*:��������������������.�
��(.;;��������:���;���������;�:*:�������:���
��������������������� �������������������������)������
�������9/ �������������������������-���������������������������-�����:�!���������
�$%����#�����'�������%�������������11��%������3()��+��*�+4�������������������:
��������������������� �������������������������)������
�������,�)�-��������.�����������
1���������$����-������������������"��%����G�����������������������������%�$(������
%������+����$�����������%�����������������������:�F�$�������%�$�����������������$��
���������������$%��������������(���������������$�-��������%�������������������%�������
����������(������(�:
��������������
1���((��%������������(���������������������������&�:�9��$����������%��(�������-(��)�
�� ����������:�1����������������������%��(��������������������� �����%�-�$�
%������&��������������$�����������������%��(�������3 �+��������+�H4���%�������
����������������%���3������%�����+���%$���-+��11�+�:::4:�9���$��%�������%��(���������
���������������I�������������������������������������������9��B��$������
������������%�(������������%�����������������%�:�'�%&��$������������������������
������������ ���������:
������
���&�������!������������%������������������������������������$�����$%����9��B�
3������4+�������3������4+�(��%��3�����4+����%��(�����3������4+�(�����3�������4+����$���������
3�������4+�������������������3�������������������)����((��������������$������������!�
�:*�����$��4:�'�%&��$�����!�����:
����������
1������������(��������������&���$������($�����������1#�����������(����������������������
�:*�3����������$��������"#����������������������%�$����������((����������������
������������������������������������������$����(��-��������%��(���4:�1��������������
���(������������������%�������������!������-��������:
��������������������� �������������������������)������
�����
9��������������������������(�����������%��%����+���� ������������$%��:�1������������������
���������������������(���������-����������������$������($����������������%������� ��
%��(���������������%�����(��������%��������%������������������������(�����������%�������
%�����������������������������:�'�%&��$�����$%&���������������������� �����(�%&��������(��������������((��%������3����������������8!7+�����������$���������� �
�4:
!������ �����������$%����������)�������%������������������������%����������������$(�3-�������������� ���:������$���4����������������$����%������������:�'�%&��$��
����������������������:
��������� ���%���������������-�������������������� �������������3D���+�#����+�:::4�
$�������������������������%&�'���������!�9:
��������������������� �������������������������)������
.'�������!�/0�#1
8����������%�����$�������(��%�+���E����������($������%����%����������((��%����������
����������>�%���3�>4:�
���%�����$����>+�����������������������������$��������������%����3����>���������&�
$��������������$��������%�����4+����������������+���$�-����%�����������$���������:�1���������>��������������3���������������%����������%&��������4������������������
������������������"������(� �����������������������
"������(� �������)�*����� ���:�9����������������������>+��������������3�����
����������������%�(���4�������������������(� ��� ��(����$����(��-��������%��(����
��%����������%�����(������:�1�����&������������(�-�#%���+,�����%���-��������
����$��������.
1���>��������������$����"%&����2�%����������������������%������������$%&������
�������������������������(������������:
1����������-.�������3�����������-�����4������������������"/���'������ ����%�%�������((����������-�������������������������������������������������&�����
(�($���������������(����������$%&��������%�������%�����%��(���������%��������-����
%��������:
1����'��������!-.�������+�����!,��$-.�����������������������%���������$������
�������>��������%���E��������%������$�����>�%�����:�1��������������������������������%������%�(������������"��3����$��%������E������-����������%$������(���4:�
1����������������$���%��������(��%����������������%�������������A$������"(��������
������������$����������(� ��� ��(����$����(��-��������%��(���:
��������������������� �������������������������)������
�������������������$��������>��:*�������$����-�����$������>�%�����+�����������&�$�����-�
���-����(�����$���������������>���%����������%����(������������������:�>�%������
�������-��"(�����������3(����4�����6�1#��3�������������1#�4��������������D9�
%��(��������$%������"����������������������������������$��������%���������$%����
�$�������������&�������������������������012-.�������:��$%�����������������$�����
��� "(������������$����3 �4�$��������34���5���������:
��������� �������
������!��6�$��3������B��������<8��������?���%�����������(��2�%�4�%��������������
���������������&���������������������������������������&���������������(�����$��-������:�
D�����B�������+��������������������������(��%�����%$������������"(����������������G�C+�
��������&��%����%��(�������3�6�(��'������ �����������-�����4��������������9/ �
%�����(�-�$�������"�������������$���:�1�����������������%������������$�����������.
!������-�'����%��%&����������$����+����$�����������"(������������$������������������
9/ ���&���-�$�������������������������>�������������+����$��������������$��%���:
��������������������� �������������������������)������
���!�"��������"�����#�����
!������������������&������3�������������������"����������&�4���������G �+���(��%�����
%�������������%��������$���������$������ "(������������$����3 �4��������%��������
���������'��������!-.������:�1�����������������������6�1#����$�%�+����%����
��$��������3���E������������������������4�.
���7�����8
���76� �$$���������������9:'����������!:�� ����9:34���$�������'��������!5:�8
7�6�(��$8
����������������(��2�%��3�����%��%&�<'����������$���?�������B��������(��2�%�����$���
���������������������%�����������4:
#�&���$��������������������������3%�%&�������$�������������%���������������������4:�
9����&������$����%�������������(��-���+�-�$�%���%��������������9/ �������������
����������������(����%$����(��2�%����%���������������#������������:
������(��2�%��3�����%��%&�<7$�?�������B��������(��2�%�4:�1��������%�$��������������������((���.
� ���=����>����((��%�����������������������������3�������������-4
� ��������((��%������3(�%&����������8!7�����4�����������(��-������=����>��
� �������������������(������������((��%������D7�.�
6������� ��6����;�;������ ���<�������!�(� ��
��������������������� �������������������������)������
"��%��������((��%�������-�����������������&�:�1������������&�(�����$������������������
������:
F�$�%���%��������������%����"��D7��$���������$������(��2�%��(��(������:�7���������
B�������+�=����>���%������%����������3�������+����((��+��((��%���������(��-��+�:::4�������
<�������?���%�����������<�����%��?�����3��� ����� ��� ��������������� ������� �� ���� �������� �� ���� �� ��� ������� �� ���� ��� ��� ������������� �������4�.
��������������������� �������������������������)������
D������<5��������������?��(�����������������((��%��������������������������������������
���$����������������������:�1��������������������%��������.�
��=��,��>?>@�%������(��6���$�������$���<����������������:
�������(��������������>��:*���%�$������������$%��������%��(������%��(�������3-�$�
%�������������%$������>�%��(�������������������6�1#������4+��������(�����������$����
��������$������������������!2�"��������������������������@���2����%��(�������������
7(�����8����:�1����"���"��%������������������������%�����������������+�%�%&��$��
��$�%��%�������-�$E����&�����&��������:
��������������������� �������������������������)������
.'���������/0234��1
�����������������������7 �1�$��8��������%��(��������������+����������������$�����
���������(���������������%�����"��%���:
-�$�������%�$�����������$�-����������������$�%��%����3���-�$�����E��������-��������+�
�(������(��2�%��%������<%��� ���A�&=0�)�?�������%��������
�������6�$����B<BACC�&���%% ?��4�.
� ���!������������������������������%�������������������$�����
� D�����<8��������?+������� �����$��������$��6�$�+�������>�%��(������
%��(������������$%��������������������&������'/��3��������������'D��6�$��
(�����������$(������������!��6�$�4:
� ��E�����6�$�����$���������������������(�����������$��������>��:*�%������$���:
� ���$�������������$��������������%�����������5����������3�7��*�+����������������������������� ��4�������������%������������������$����������������������
����$����%����3����������$�������%������������������4:
$%���#���������&��$�����"�
!6�7����������(���������������-���(�����$����%�����-����������(�7 �1�$��8���
�����%��:�1�����(���������������������%��������������"/��6�����������:�9���$��%���������������������������������������$�������!6�7���:����%�������%���������� ������
!6�7���$�%������������3���������:*����!6�7����������������������������$����������-���
(�������������� �(�������4:�
��������������������� �������������������������)������
�'�����������(�"����&��$)%�����%�"�
9�����$%&������+������������������"/��6���������������(����������%����������!6�7��
����$�%��3������2$���-�$����(���������'���F�6�(���������%�$���������������/��64�.
"���������
"����� �����
"/��6-:����$�:.���������� �����������(��$��6������$����6
��� � ��������$%&��4�
���������-�����������!-.����������$����������������!6�7��������������3��&���$���
�����(�����$���%�������(����"������������������4�.
"�%G����>GG/H���%G�������������
"/��6-:4��!I�E5:.������ ����J����6����6����6������$����
"/���� ��-�����GE��=//��'=G�@+?0��.����$�$���E�
��� ����!�������!-"/��6/���$-:��!I�E:.��������!I�E.�4
1����!I�E��������������������������@����������(����������"���%��������������A$������
D7��3<AB�����������%������D7��6������� ��6����;�;���������$��<AB4:
1��������%�������������������������<7 �1�$��8��������%��?������������B��������
(��2�%������((����.
>�����-+�(��%�����"0$�)���%��$���������������������!�%����:�
��������������������� �������������������������)������
B������E����-����������$����������$�������������%�$���������(��-����:���%�����(����
�((������������������+�������@�������&�9/������-(�����������������������������
�����������������6������� ��6����;�;������ ���A������� ������$�����
���������������6#���������������(����:�1��������� ���(������������������������-�
����������((����������������������$�:�8�E��������������������������$����������$����(��-��������%��(���:
B������������������$%��������������%��������������$�����������6#�:�D���<������1#��
��$�%�?����������������������������:�!����������������+�-�$�%���$���B�������E�<1����
7 �1�$��8��������%��?�����$���3�����%��%&�������<7 �1�$��8��������%��?�����4�.
>����������������+���-�����$�������#9# ��-(������������(���$%��6#�:�!�������������= 1�
���������-���������(��������������������3�����������%�$����11��J*,�)�#���������
��������������4:
��������������������� �������������������������)������
�%����� %������ �����*������%���"� ���+����"�����
D�������������������%%������7 �1�$������$�%����������������$��+������E�����������$�������
%�������������11��%������������$��������$�����!6�7������$���:�
9�����$%&������+������-����"/���� �����������������������2����������������������$�($���������3�������������-��������A$����������+�%�$����-����!6�����������������
"0$�)���%��$���4�.
"/���� ��-4�����GE��=//��'=G�@+?0��K�����GE��=//��'=G�@+?&�@+5.�
B�������(��-�����((��%�����:�B���-�$�%����(�������������������������$������%D7��
������������&���������������%����������������%������������.
<� ���6������� ��6����;�;������ ���A������� ������$��<AB�
A� �����>�:= ������ ����������:
6������� ��6����;�;������ ���A������� ������$��<AB�
B� �����>�:= ������ �������$�:
6������� ��6����;�;������ ���A������� ������$��<AB�
� 1��������%���������������$������6#����(������������������&�9�����:
� 1����%����%�������$��������11��<= ���?�������������������$�������B���(���������������������������&:
� 1�������%��������"(��%���-�����%�����%&�������6#����(�����������:
��������������������� �������������������������)������
&� �������$�
>�����-+����(�������+����������������������$��%�����$�����������+�-�$�%���$�������������$������!6�7���:����%�������%���������������������(�-�%�����������
�������������� ����������(�%&����.�
"������������=�� �����/��6-:������ ��:.�
��� � �����=�� �����'��(����������
������������ ����=�� ������4�
1�����(�����!6�7��3����-�����$��%���4���������������K����$�%��K�(�����������$��%������������������������3����������$����������������:*4:
F�$�%��������$������((��%����������������������������-���������-����������-������&�������
(�����$��-����%��������������-�������%�����������������6#��%�����$�������%���:
��������������������� �������������������������)������
.'�������%�/5 1
������%"����
'/9����'����"������/�(�����%-�9�2�%�����3�7��CC+��L��8�������4��������"%����������
������������������� �(�������:�>���������������(���(�%��������%���������%���������
����������������-��-(�������������-�%�$(������(�����%-���2�%����+��$������%�%����"��
�����������3�$%������<%�����������?��%�(�4���������������$�����������������$����
3������+��������-(��+���%:::4:�1��������"��%����������������$%��������'/9�������%$�������
�����2�%�����(���:
'/9��$����������(�������������������������������7���*�3/�(�����%-�9�2�%������������4+�
�����-�"���� �+�"L����(���+�����"+�$��:�8�������$������������������������������
%����"������$�������((��%�������$�������������((��%������������:�B��������'/9������
��A$�����%��(�������������0����..���6���-���������%�������������-�%���������
�$((�������������������������������������"�%$����������������%���:
���������
9���������������'/9������������������$�����+����������%�����(��-�����������%���-���������
������$�������3��%��������#%���+,������$��%���4:�1��$��$���������+��������������������(�-��$�����������������(�����������'/9����&�%&����3������������$������������������%���
$���%������$%������������������������(��������������(������������������&�-���A$�������4:
D��������9/ ����-�$�����������������3D��"���� 6�����������%�4+�%�������������7�#%��
�+,�������$����������-�$��(��2�%�:�8���B�������+������������%��%&����#%���+,�����
%����+%#�8�0���D� �$�������3��&���$���-�$��-(��<�����?�������������������
�"�����������������$������%���-��((�����4���������%��%&�������(��2�%������%����+���8�
@�6��M�8�'�����������D������ E����� �����8�������$�:
��������������������� �������������������������)������
���������,���"���� �
9�����$%&������+���(��%���%%$����%������")����� ������"���� ��������2$�����(�����
3�����%��%&���������$�%��%������������%��<,����$����?����$���'���F�6�(�F�4:�1����������������'/9������2�%���������������$�%��:�1����2�%����������$�������������%��%$������
��������$(������-���������������%�$�������-�3�����E�����������4��������������$����2�%������
%�$�����+���/������%� �����������$�����:
��������-�������$���������+���(��%���%%$����%������"%&������"���� ��������2$�����(�����:
!������(�����-�$�%�$����$������((��%����������������$������������������������(�-���
����%�����������%�����������������������-���-:
�""���)�� ��-)�"�����
!���"+�$��-:���������:.�������%��������������������������������������������&�������������������$���������������������� ��3 "(������������$���4������������>�
6�1#�������:�!��������%�������������������������.
������� ���������������@(N�����-.�4
�������������������������!�E���-.���������-.O
����5
9��������!��6�$�+��������������$����%����76�����G���8���������GJ,+������������������%����3������-�$�����%����%��(�����������������-(��4�.
����76����������������9:34��������������@(N�����5:�8
1���$������������%������P���������Q�3��%�����������������������"+�$��.����
��$��������������(����������������������������$����%����:�B�����������"+�$��������������%������$��������$�����������$��������%�%���������������������������������
�������%���������:
��������������������� �������������������������)������
�������*+�*�����(�"����%����.%���)����
'���������������'����$����������$�%������:�9���������������(��������������%����������
���������(����������-�%��%�����%������������������D�(����'����$������������
�� ���'����$�������:�!��-�$�%������������������������������%���+����<����$��?�
%$�������%�������$-���-�������������<�(�%���?�%$�������%��:
9�����$���������+�$�������������>�"������������������������������
"+�$��-: ���������:.:�1�����������-�������%��������������%���������������:��� ���
������ �� ��� ��� ��� ������������ ����� ������� �� ��� ��� �� ���� � ���� ���� �� ���
"'������������ ��� ������� �� ")�*����� ���!
1����������������������%$������+��������������2�%���������������������$������������$�����
%�����3��&���$���-�$�$���< ���?��������������������4�.
����"���� ��'����$��� ���O
H����������������������������(����������.
�������,�������G���E-.
���������E����������-.
��������E-.
1�������������������������$������������>�������!��6�$��(����3����������
G��M;G��C4�������������E-.�������������%�$���-�(��%�����������������������9��B�
�$�����3�����G�� 4:
1�-��������$�������������3�����%��%&�N�7$�4:
1����(��-�������$���������������=����>��������������3���������$(�$������������%��%&�
������=����>��������������<����� ��?����4���$��������������������������������
3(������6�(�F%� ��������"���@�;������@���������������4�.
��������������������� �������������������������)������
�%N%)%��%� �������6�������������6���
���������(��6�����E$���� �$$���D���E$���%� �������
#%�D���<R�S����� ����������6����$�������������� ����
���� ������������(������������������� �������������$����� ���O
�����L����(�������T"�������������������� ��D�(����-.UO
/�������������� ����
T�������������������V�����=������/�+�������/���� ���&<>@��%��� ���B�
'D�����������$�<B�������������� �����
�������������� ������������ ���'����$��K�
�������������������V�����=������/�+�������/���� ���&<>@��%��� ���B�
'D�����������$�<B�������������� �����
�������������� ����������D�(����'����$��U
!��-�$�%������+�����((��%�����������������������������$�����������������$����%�
�(�%���%�'����$�����(�����������������$�����2�%����������� ���'����$�������
D�(����'����$���������(������������������%�:
1��������������E���$�����'/9�8��������������������/��$��$�����:�1��������%$�����
���������������������%�-�$�%���$���������&���(��������������������A$����-���2�%�����:�
9���$��%�������������������"/��$��$������%����������� ���'����$���%�����.
B�����-������4����$������������:
F�$���$���������������((��%���������������������������2�%������-�(������������
D�(����'����$�����(�����������:�1����������������$��������������������7�
�7�$�)���������$%����D9���$����������������%�������:
��������������������� �������������������������)������
B��������-������2�%�����������$��������������������������.
����"���� ��"/��$��$�'����$��� ���O
��������������������((��%��������������������������������(������������$�������
�(�%���'$������������������$������������������������7:�1����������%�%&�$������$�����(����������������-�$E�����������%�%&��������������������%�$���($�%��������������:
1���%��%�$�������'/9���2�%�����(��������������:�1��&�-���&�����-�������������-����
%����������(����������������$�����������%��������%������;��2�%�����%���:�1���������
�������'/9����������%�������������������-�%�$(������������A$��������(�������������&���
����������-��-(���3������������������4:
��������������������� �������������������������)������
�������
��(��$��-��������������������������-�$�%$���$�����$�����������������=����>�������
��-��$������ �������-�$�����:�������������(������������ �������-0
����-�$������(.;;������������:&����:%��;������������%��(�������������������� ���
����$���:
��������������������� �������������������������)������
��������$����)
�����"����"��������������"��#���������/�0
������,� ����������������3���/�;/���-4�����$���(���:�9�����������������E��������-�
����������%���-+�-�$E������������������������������������B��������9/ �$����������%���N�
/���������N�����/��N���������������������������������������%��������:
��������������������� �������������������������)������
����"������* ���������
�������������$�������%��"��%����-�$���-������&����������%����%��������������%��-�$�
����������(��-���:�F�$�����(���������������������������������������������B��������9/ :�
>����������+��������$���������-�����%��%�:�>����������������(������$�����$���-�$�����
��%�$�����������&����9/ �����������������%��%�:�
���������""���"����������
This lab uses a default database hosted in a local JavaDB database. If you're requested a user/password to navigate through the JDBC connection from the NetBeans IDE (Services tab > Database), user “APP” and password “APP” should get you in.
��������������������� �������������������������)������
�""�������#������"�����������12����-��#3�� ���������
9��-�$����������������������=����>����������������������%�������3������������������9/ �
�������%��-������http://localhost:48484��������$���$�������“admin”������������$���(�����������“adminadmin”:
�� �������������)��2����-��#������
9�����9/ ���&��-�$�����������%������������������=����>����((��%�������������3�����-�
�((�����%������-�$�������$�����B�������4+�-�$E���������-(�����������������.�����$���
$�������“admin”������������$���(�����������“adminadmin”:
4����(�"����������#����
9���������������������B��������9/ ���������������(��2�%�����������-��(��������������
<���2�%�?����+�-�$E������������(�����������#�����(��2�%����%������%�����������
lab313277�$��������3/export/home/lab3132774:�!��-�$�%������������������������%����������������������������-�$�%���������(������������A$�����(��2�%��3���������
�"��%����������������4�.
��������������������� �������������������������)������
5�����'��'��"������(�"�
9��-�$����E��������������“Java EE 6 HOL (to be completed – JavaOne 2010)”�(��2�%���(��+�(����������������������������-����<B��(��2�%���������������9/ ?:��%����������(��2�%������������������9/ +�-�$�%����(�����-�������������"��%����
(��2�%����-���$����%��%&����������(��2�%�������������<#��$���?�������������������
(��2�%��.
1��������%�$�������������������%���#�����(��2�%���������(�����������9/ :
��������������������� �������������������������)������
#���"���)���������)�#���"%��)���#�4����������6
���(�-�������>���8�I�E������6��� ����'���:�����%$���%������%$�����@������
���9/ �(�������%�����������$�������-��������������(���������3#�%���:�8���������:�O��"4:
578��2����-��#����#����������*�������9���7������������8#�:�������6
1�����������������������������%�����������-�$����$����������%����������������%������
=����>���3���������������������#>������%�4�.
=����>����������.W��(?������
������=����>���.W��(?�����
�����=����>���.W��(?���
B$%������(�����3���(�=����>��+�������%&�%���������������������������������������
=����>��4�.
W��(?�����
��������������������� �������������������������)������
578��� ����#����%����;
1��%��(������%������������������"��%�������������������������%����#�����(��2�%����%�����
���/export/home/lab313277/JavaEE6_Lab .
B����������������(��2�%������������$�������������&����������“Completed”�����.