��8��@J2EE�̃g�����U�N�V��������


 �g�����U�N�V���������̓���


�@

 Required

�@���̑������ݒ肳��Ă���ꍇ�A���̂悤�ȃg�����U�N�V�����������s���܂��B����g�����U�N�V�����̉��ɃN���C�A���g���������ꍇ�ŁA�N���C�A���g���r�[���̃��\�b�h���Ăяo�����Ƃ��܂��B���̂Ƃ��A���̃��\�b�h�̎��s�́A�N���C�A���g��������g�����U�N�V�����̉��ōs���܂��B�����A�N���C�A���g���g�����U�N�V�����̉��ɂȂ�������A�R���e�i�́A���\�b�h�𑖂点��O�ɁA�V�����g�����U�N�V�������J�n���܂��B���̑����́A�����Ă��̃g�����U�N�V���������ɑ΂��ėL���ŁA�f�t�H���g�̃g�����U�N�V���������Ƃ��Ďg�����Ƃ��ł���ł��傤�B

�@��ɐG�ꂽpreInvokeTx���\�b�h�́A����REQUIRED�������������Ă��镔�������Ă݂܂��傤�B

..............
case 2: // TX_REQUIRED
  if(isNullTx)
      throw new TransactionRequiredException();
  if(status == 6) // TX_NEVER
  { // �N���C�A���g���g�����U�N�V�����̉��ɂȂ�������A
     // �R���e�i�́A�V�����g�����U�N�V�������J�n����B
       inv.clientTx = null;
       startNewTx(prevTx, inv);
  } else
  { // �����łȂ�������A���̃��\�b�h�̎��s�́A�N���C�A���g��
     // ������g�����U�N�V�����̉��ōs����B
       inv.clientTx = transactionManager.getTransaction();
       useClientTx(prevTx, inv);
  }
  break;
..............
..............


�@

 RequireNew

�@���̑����́A�N���C�A���g�Ƀg�����U�N�V�����̉��ɂȂ�������A���\�b�h�̌Ăяo���ɍۂ��ĐV�����g�����U�N�V�������n�߂�Ƃ����_�ł́A���Requierd�Ɠ����ł����A�N���C�A���g������g�����U�N�V�����̉��ő����Ă��鎞�ɂ́A���̂悤�ȏ������s���܂��B

�@�܂��A�N���C�A���g�̃g�����U�N�V�������ꎞ��~���܂��B�����āA�V�����g�����U�N�V�������J�n���Ă��̉��Ń��\�b�h���Ăяo���܂��B���\�b�h�̌Ăяo�����I�������A���̃N���C�A���g�̃g�����U�N�V�����𕜊������܂��B

�@���̑������g���΁A���\�b�h�̌Ăяo���́A�K���A�V�����g�����U�N�V�����̉��ōs����悤�ɂ��邱�Ƃ��o���܂��B

preInvokeTx���\�b�h
case 4: // TX_REQUIRES_NEW
   if(status != 6) // TX_NEVER
      inv.clientTx = transactionManager.suspend();
   startNewTx(prevTx, inv);
   break;

postInvokeTx���\�b�h
case 4: // TX_REQUIRES_NEW
   newException = completeNewTx(context, exception);
   if(inv.clientTx != null)
      transactionManager.resume(inv.clientTx);
   break;


�@

 Mandatory

�@�@����g�����U�N�V�����̉��ɃN���C�A���g���������ꍇ�A�r�[���̃��\�b�h�̎��s�́A�N���C�A���g�̑�����g�����U�N�V�����̉��ōs���܂��B�����A�N���C�A���g���g�����U�N�V�����̉��ɂȂ�������A�R���e�i�́ATransactionRequiredException��O�𓊂��܂��B

�@���̑����́A���ǁA���ׂẴ��\�b�h�Ăяo�����A�N���C�A���g�̃g�����U�N�V�����̉��ōs����ׂ����Ƃ�v�����Ă��܂��B

preInvokeTx���\�b�h
case 5: // TX_MANDATORY
   if(isNullTx || status == 6) // TX_NEVER
      throw new TransactionRequiredException();
   useClientTx(prevTx, inv);
   break;


�@

 NotSupported

�@����g�����U�N�V�����̉��ɃN���C�A���g�������āA�r�[���̃��\�b�h���Ăяo�����ꍇ�A�R���e�i�́A���\�b�h�̌Ăяo���O�ɃN���C�A���g�̃g�����U�N�V�������ꎞ��~���A���\�b�h�̎��s���I����Ă��炻��𕜊����܂��B�����A�N���C�A���g���g�����U�N�V�����̉��ɂȂ�������A�R���e�i�́A���\�b�h�̌Ăяo���ɍۂ��āA�V�����g�����U�N�V�������n�߂邱�Ƃ͂��܂���B

�@���̑������g���΁A���\�b�h�́A�R���e�i�̐�������g�����U�N�V�����̉��ł́A�����Ď��s����Ȃ����ƂɂȂ�܂��B

�@

 Supports

�@����g�����U�N�V�����̉��ɃN���C�A���g���������ꍇ�A�r�[���̃��\�b�h�̎��s�́A�N���C�A���g�̑�����g�����U�N�V�����̉��ōs���܂��B�����A�N���C�A���g���g�����U�N�V�����̉��ɂȂ�������A�R���e�i�́A���\�b�h�̌Ăяo���ɍۂ��āA�V�����g�����U�N�V�������n�߂邱�Ƃ͂��܂���B

�@���̑����̏ꍇ�ɂ́A�g�����U�N�V�����̓����́A�������\�b�h�ł��ς�邱�Ƃ�����܂��̂ŁA���ӂ��K�v�ł��B

�@

 Never

�@�g�����U�N�V�����̉��ő����Ă���N���C�A���g���A�r�[���̃��\�b�h���Ăяo�����Ƃ���ƁA�R���e�i�́ARemoteException�𓊂��܂��B�����A�N���C�A���g���g�����U�N�V�����̉��ɂȂ�������A�R���e�i�́A���\�b�h�̌Ăяo���ɍۂ��āA�V�����g�����U�N�V�������n�߂邱�Ƃ͂��܂���B

4/5

J2EE�̊�b�i��8��j
�@ �R���s���[�e�B���O�ɂ�����g�����U�N�V�����̕K�v��
�@ �g�����U�N�V�����̊�b��m��
�@ J2EE�̃g�����U�N�V����
�g�����U�N�V���������̓���
�@ �g�����U�N�V��������

�A�ړ��e
J2EE�̊�b
�@ ��1��@Java Pet Store�ŁAJ2EE��̌�����(1)
�@ ��2��@Java Pet Store�ŁAJ2EE��̌�����(2)
�@

��3��@J2EE�A�v���P�[�V�����Ɣz�u�ideployment�j

�@ ��4��@J2EE�A�v���P�[�V�������\������R���|�[�l���g
�@ ��5��@�f�[�^�x�[�X�̃u���E�U�����
�@ ��6��@EJB�ɂ�����R���e�i�ƃR���|�[�l���g
�@ ��7��@J2EE�̃Z�L�����e�B�̃L�z����m��
��8��@J2EE�̃g�����U�N�V��������


�A�ڋL���ꗗ




Java Agile �t�H�[���� �V���L��
��IT���[���}�K�W���@�V������X�^�b�t�̃R���������[���œ͂��܂��i�����j

���ڂ̃e�[�}

Java Agile �L�������L���O

�{�� ����