ibm was enablement about administration for bps

20
2011. 9. IBM SoftwareGroup WebSphere CTP 이정운 과장 (JungWoon Lee, [email protected]) © Copyright IBM Corporation 2011 SoftwareGroup, IBM Korea IBM WAS 의 다양한 관리방안 Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Upload: jungwoon-lee

Post on 08-Jul-2015

390 views

Category:

Technology


5 download

DESCRIPTION

IBM WAS enablement about architecture for BPs

TRANSCRIPT

Page 1: IBM WAS enablement about administration for BPs

1SoftwareGroup WebSphereConfidential - Do Not Distribute

2011. 9.

IBM SoftwareGroup WebSphere CTP 이정운 과장 (JungWoon Lee, [email protected])

© Copyright IBM Corporation 2011

SoftwareGroup, IBM Korea

IBM WAS 의다양한 관리방안

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 2: IBM WAS enablement about administration for BPs

2SoftwareGroup WebSphereConfidential - Do Not Distribute

1. IBM WAS의 중앙집중화된 관리환경

IBM WAS 의 관리 서버는 원격지로 분산된 여러 노드들의 설정, 프로세스 관리, 어플리케이션 배포 등 모든제어 기능을 중앙 집중식으로 수행합니다.

웹서버 및 WAS 서버 관리

분산된 웹서버 및 WAS 서버의 프로세스 및 클러스터생성부터, 설정 관리, 시작, 중지, 상태 모니터링 까지의모든 관리 작업을 중앙 집중 식으로 수행합니다.

어플리케이션 관리

개발된 애플리케이션의 원격 설치, 분배, 구성변경을중앙 집중 식으로 관리합니다.

노드별 설정은 XML 파일로 분산된 노드들에 복제하여 관리각 노드들이 설정 파일을 자체적으로 보관하므로 관리 서버에 장애가발생하더라도 사용자 서비스에는 전혀 영향을 주지 않습니다.

(1) 관리 툴을 통해 설정

(2) 설정이 XML 파일로 자동 변환됨

(3) 각 WAS 노드들로 설정 파일이 자동 분산됨

관리 서버

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 3: IBM WAS enablement about administration for BPs

3SoftwareGroup WebSphereConfidential - Do Not Distribute

2. 관리콘솔 작업과 XML 파일

관리콘솔을 통한 설정의 변경은 실제적으로 XML 설정파일의 변경 작업 및 동기화 작업이 수반됩니다.

각각의 프로파일 별로 디렉토리 생성

각 프로파일에는 실제적으로Config 디렉토리 밑에 각 설정 정보들이 XML 형태로 저장되어 있음

동기화 작업이란 실제적으로Master repository(Dmgr 이 가지고있음) 설정 정보중에서 변경된 정보들이 각 node 별로 복사되는 작업을 의미

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 4: IBM WAS enablement about administration for BPs

4SoftwareGroup WebSphereConfidential - Do Not Distribute

2. 관리콘솔 작업과 XML 파일

관리콘솔을 통한 설정의 변경은 실제적으로 XML 설정파일의 변경 작업 및 동기화 작업이 수반됩니다.

관리콘솔 서버의 포트 정보

Config 폴더의 serverindex.xml 파일의 포트 정보

팁: 설정 저장 후 리뷰를 누르면 매핑된 xml 파일을 확인할 수 있음

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 5: IBM WAS enablement about administration for BPs

5SoftwareGroup WebSphereConfidential - Do Not Distribute

2. 관리콘솔 작업과 XML 파일

관리콘솔을 통한 설정의 변경은 실제적으로 XML 설정파일의 변경 작업 및 동기화 작업이 수반됩니다.

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 6: IBM WAS enablement about administration for BPs

6SoftwareGroup WebSphereConfidential - Do Not Distribute

그럼, 어플리케이션은?

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 7: IBM WAS enablement about administration for BPs

7SoftwareGroup WebSphereConfidential - Do Not Distribute

WAS 에서 배포된 어플리케이션은 하단과 같이 지정된 폴더에 바이너리와 설정정보들이 모두 사용되는 것 같지만 실제적으로는 분리된 위치에 저장되며 분리된 위치의 정보를 사용합니다.

어플리케이션 바이너리 파일 설치 위치

어플리케이션 설정정보 보관 위치

팁: 어플리케이션 바이너리 파일이 설치된 위치에서 설정을 참조하는 방법

배치된 어플리케이션

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 8: IBM WAS enablement about administration for BPs

8SoftwareGroup WebSphereConfidential - Do Not Distribute

3. 다양한 관리방안 제공

IBM WAS 는 웹 기반의 통합 중앙 관리 콘솔 환경 뿐만이 아니라 다양한 관리기능을 제공하기 위하여wsadmin 이라는 command 기반 Scripting 툴이나 JMX API등을 제공합니다.

다양한 관리방안 제공

다양한 WebSphere 관리 도구

Web Administrative Console(웹 브라우저 기반)

Wsadmin (command 기반 스크립팅 툴)

사용자 정의 관리 도구 개발 환경(JMX API 제공)

ANT

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 9: IBM WAS enablement about administration for BPs

9SoftwareGroup WebSphereConfidential - Do Not Distribute

4. 관리콘솔

IBM WAS 는 중앙 집중 관리를 위하여 웹 기반의 통합 중앙 관리 콘솔 환경을 지원합니다.

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 10: IBM WAS enablement about administration for BPs

10SoftwareGroup WebSphereConfidential - Do Not Distribute

5. Wsadmin 스크립트 툴

IBM WAS 는 웹 기반의 통합 중앙 관리 콘솔 환경 뿐만이 아니라 다양한 관리기능을 제공하기 위하여wsadmin 이라는 command 기반 스크립트 툴을 제공합니다.

Wsadmin (commend 기반 스크립팅 툴)

지원 언어 : Jacle or Jython (향후 Jython 만 지속적으로 투자 계획)

Commend 창에서 wsadmin.sh/bat –lang jython/jacl 형식으로 접속가능

미리 스크립트를 만들어 두고 wsadmin.sh/bat –f 파일명 형식을 통해서 만들어 놓은 스크립트 수행도 가능

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 11: IBM WAS enablement about administration for BPs

11SoftwareGroup WebSphereConfidential - Do Not Distribute

5. Wsadmin 스크립트 툴 – JMX & MBean Wsadmin 스크립트 툴은 내부적으로 JMX(Java Management eXtentions) API 를 이용하여 MBean 객체에 접

근하여 WAS 의 각 설정들을 관리하는 도구입니다.

JMX(Java Management eXtensions) 란?

IBM WAS 의 내부 Mbean 구조 Wsadmin 은 JMX agent 로서 connector 를 통해서Mbean 서버로 접속하여 Mbean 제어

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 12: IBM WAS enablement about administration for BPs

12SoftwareGroup WebSphereConfidential - Do Not Distribute

5. Wsadmin 스크립트 툴 – wsadmin 예제

Wsadmin 스크립트 툴은 내부적으로 JMX(Java Management eXtentions) API 를 이용하여 MBean 객체에 접근하여 WAS 의 각 설정들을 관리하는 도구입니다.

Wsadmin 예제

Wsadmin 스크립트 툴을 이용하여 wsadmin 에 접속하여 Server 객체를 받아와서 출력하는 예제

Ex)AdminControl.completeObjectName(‘Cell=Cell명,node=노드명,name=서버명,type=Server,*’)

이전에 수행한 명령을 스크립트 파일로 미리 만들어두고 해당 스크립트 수행하는 예제(반복 수행이 용이하며 Jython 을 활용하여 프로그래밍이 가능)

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 13: IBM WAS enablement about administration for BPs

13SoftwareGroup WebSphereConfidential - Do Not Distribute

5. Wsadmin 스크립트 툴 – Mbean Interface Mbean 도 결국은 Java 객체이기 때문에 MBean Interface 가 존재하며 해당 Mbean interface 를 확인하시면 제어가능한 모

든 Mbean 객체의 리스트 및 어떤 속성이나 메소드를 제어할 수 있을지 확인할 수 있습니다.

Mbean API

WebSphere 의 모든 Mbean 을 제어하기 위한 Interface 목록

각 Mbean 별로 쉽게 객체를 받아올 수 있는 “Partial ObjectName” 이 명시되어 있음

각 Mbean 이 가지고 있는 속성과 메소드가 정리되어 있음(http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.javadoc.doc/web/mbeanDocs/index.html)

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 14: IBM WAS enablement about administration for BPs

14SoftwareGroup WebSphereConfidential - Do Not Distribute

5. Wsadmin 스크립트 툴 – 팁

Jython 스크립트 작성이 어려우신 분들은 하단과 같이 관리콘솔에 ‘명령 지원 명령 로그’ 를 활성화 시키면 관리콘솔에서 수행한 작업이 모두 Jython 형식의 명령으로 로깅되고 이를 쉽게 활용하여 원하시는 Jython 스크립트를 만드 실 수 있습니다.

관리콘솔 환경 설정 변경을 통한 Jython 로깅

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 15: IBM WAS enablement about administration for BPs

15SoftwareGroup WebSphereConfidential - Do Not Distribute

6. JMX API 직접 사용

JMX API 는 Java API 로서 당연히 직접 Java 소스를 작성하여서 원하시는 관리작업을 수행하실 수도 있습니다.

JMX API 호출 예제

WebSphere 의 AdminService 객체를 받아와서 Mbean 서버와 연결을 맺습니다.

Wsadmin 에서 사용한 Jython 과 비슷한 방식으로 Mbean 객체를 받아와서 제어합니다.

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 16: IBM WAS enablement about administration for BPs

16SoftwareGroup WebSphereConfidential - Do Not Distribute

7. 프로퍼티 파일 기반의 설정 가능

IBM WAS 에서는 기존에 저장된 xml 방식의 설정파일을 이용하여 보다 사용하기 편한 Properties 기반의 파일 설정을(Name=Value 형식) 가능하게 하는 편리한 기능을 제공합니다.

Properties File Based Configuration Tool (PFBCT) 이라는 AdminTask 객체의 명령집합을 가짐

applyConfigProperties – 특정 프로퍼티 파일의 프로퍼티를 설정에 반영

deleteConfigProperties – 지정된 설정의 프로퍼티를 삭제

extractConfigProperties – 설정 데이터를 프로퍼티 형태의 파일로 추출

validateConfigProperties – 프로퍼티 파일의 프로퍼티를 검증

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 17: IBM WAS enablement about administration for BPs

17SoftwareGroup WebSphereConfidential - Do Not Distribute

Properties File Based Configuration Tool (PFBCT) 이라는 AdminTask 객체의 명령집합을 이용하여 프로퍼티파일 기반의 설정 작업이 하단과 같이 가능합니다.

AdminTask 객체의 extractConfigProperties 명령을 이용하여 server1 의 설정을 프로퍼티 형식으로 추출

상단의 명령 수행을 통해 생성해낸 Properties 설정 파일

해당 파일을 열어서 설정 정보를 확인

7. 프로퍼티 파일 기반의 설정 가능 - 예제

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 18: IBM WAS enablement about administration for BPs

18SoftwareGroup WebSphereConfidential - Do Not Distribute

8. 글로벌 배치(Monitored Directory) 관리콘솔이나 wsadmin 을 통한 어플리케이션 배포 이외에 Monitored Directory 를 통하여 개발 라이플사이

클 동안 ‘Edit-Compile-Debug’ 작업을 가속화 가능

Monitored Directory

Java EE 어플리케이션에 대한 새로운 “모니터된 디렉토리 기반 어플리케이션 설치, 업데이트, 삭제” 기능을 통하여 개발자 생산성 향상

드래그 & 드랍, 명령어 기반 지원

WAS Express, Base, ND & z/OS 지원

지원되는 파일 타입- EAR (Enterprise Archive)- WAR (Web Application Archive)– JAR (Java Archive)– SAR (SIP Application Resource)

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 19: IBM WAS enablement about administration for BPs

19SoftwareGroup WebSphereConfidential - Do Not Distribute

End of The Document.End of The Document.

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Page 20: IBM WAS enablement about administration for BPs

20SoftwareGroup WebSphereConfidential - Do Not Distribute

B1. JNDI Connection 관리

IBM WAS 는 J2EE Container 로서 Java Naming and Directory Interface (JNDI) 표준을 준수하고 이를 통하여Naming Service 를 제공합니다.

JNDI Connection 관리

JNDI 를 위한 WebSphere 의 Naming Topology JNDI Binding 을 위해서 사용할 수 있는 3가지 옵션을 제공

(1) Simple Name- Simple name 방식은 같은 서버에서 lookup 하거나

lookup 할 대상을 포함하고 있는 서버의 네임 스페이스로직접 연결되었을 경우 사용 가능예) ejb/webbank/Account

(2) Compound Name- 주로 같은 서버에서 어플리케이션이 돌지 않을 경우

사용되지만 같은 서버에서 어플리케이션이 돌고 있을경우에도 범용적으로 사용 가능예) cell/nodes/node1/servers/server1/ejb/webbank/Account

(3) Corbaname- 항상 사용 가능하며 CORBA URL 표준 방식 준수

예)corbaname::myhost1:9812/NameServiceServerRoot#ejb/webbank/Account

Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)