WebLogic Workspace ユーザーズ ガイド(非推奨)

Similar documents
time.book

rmi.book

WebLogic Event ユーザーズ ガイド(非推奨)

interop.book

diplugin.book

b2bintro.book

新・明解Java入門

Java演習(4) -- 変数と型 --

WebLogic File Services ユーザーズ ガイド

file.book

wlec.book

Java (9) 1 Lesson Java System.out.println() 1 Java API 1 Java Java 1

cluster.book

rosnet.book

intro.book

Oracle9i JDeveloperによるWebサービスの構築

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

intra-mart Accel Platform — イベントナビゲータ 開発ガイド   初版   None

intra-mart Accel Platform — イベントナビゲータ 開発ガイド   初版  

Q&A集

Gartner Day

tkk0408nari

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF

cxml.book

ALG ppt

untitled

PowerPoint Presentation

アルゴリズムとデータ構造1

TopLink å SampleClient.java... 5 Ò readallsample() querysample() cachesample() Ç..

相続支払い対策ポイント

150423HC相続資産圧縮対策のポイント

ハピタス のコピー.pages

Copyright 2008 All Rights Reserved 2

ALG ppt

support.book

55 7 Java C Java TCP/IP TCP/IP TCP TCP_RO.java import java.net.*; import java.io.*; public class TCP_RO { public static void main(string[] a

new_logo.eps

スライド 1

untitled


解きながら学ぶJava入門編

Brekeke PBX - Version 2.1 ARSプラグイン開発ガイド

b2bsampl.book

Oracle Change Management Pack, Oracle Diagnostics Pack, Oracle Tuning Packインストレーション・ガイド リリース2.2

applets.book

Cisco® ASA シリーズルーター向けDigiCert® 統合ガイド

cluster.book

Oracle Forms Services R6i

CAC

(Microsoft PowerPoint - \223\306\217KJAVA\221\346\202R\224\ ppt)

ストラドプロシージャの呼び出し方

FileMaker ODBC and JDBC Guide

9iAS_DEV.PDF

Oracle Identity Managementの概要およびアーキテクチャ

Client Client public void sendobject(object message) String String Web Container String RemoteEndpoint String Endpoint throwsioexception, EncodeExcept


untitled

A B 1: Ex. MPICH-G2 C.f. NXProxy [Tanaka] 2:

new_logo.eps

r1.dvi

I. EspressReport 100%Java JSP API II. EspressReport Report Designer Report Designer - Report Designer Web Java Web Web Report Designer import java.awt

Javaセキュアコーディングセミナー東京 第3回 入出力(File, Stream)と例外時の動作 演習解説

Oracleコール・インタフェース for Windows スタート・ガイド リリース8.1.6

intra-mart Accel Platform — IM-Repository拡張プログラミングガイド   初版  

初心者にもできるアメブロカスタマイズ新2016.pages

Java プログラミング Ⅰ 3 回目変 数 今日の講義講義で学ぶ内容 変数とは 変数の使い方 キーボード入力の仕方 変 数 変 数 一時的に値を記憶させておく機能 変数は 型 ( データ型 ) と識別子をもちます 2 型 ( データ型 ) 変数に記憶する値の種類変数の型は 記憶できる値の種類と範囲

- 2 Copyright (C) All Rights Reserved.

untitled

cstour.book

ERP連携モジュールチュートリアル

ユニット・テストの概要

Oracle8 Workgroup Server for Windows NTインストレーション・ガイド,リリース8.0.6

untitled

untitled

Microsoft Intune MDM ソリューション向けDigiCert® 統合ガイド

FileMaker 15 ODBC と JDBC ガイド

FileMaker 16 ODBC と JDBC ガイド

Copyright All Rights Reserved. -2 -!

データ構造とアルゴリズム論

Microsoft PowerPoint - Lecture_3

ValueHolder... 9 Customer.java Oracle TopLink 10g(10.1.3) È Volume3 2

目的 泡立ち法を例に Comparableインターフェイスの実装 抽象クラスの利用 型パラメタの利用 比較 入替 の回数を計測

TopLink È... 3 TopLink...5 TopLink åø... 6 TopLink å Workbench O/R ~... 8 Workbench À ~... 8 Foundation Library å... 8 TopL

IPA:セキュアなインターネットサーバー構築に関する調査

Mobilelron® Virtual Smartphone Platform 向けDigiCert® 統合ガイド

secwlres.book

Microsoft Word - 最終版 バックせどりismマニュアル .docx

aiuser.book

XMLテクノロジを使いやすくする

JAVA H13 OISA JAVA 1

JavaプログラミングⅠ

Systemwalker IT Service Management Systemwalker IT Service Management V11.0L10 IT Service Management - Centric Manager Windows

class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =

intra-mart Accel Platform — 外部ソフトウェア接続モジュール 仕様書   第3版  

MultiPASS Suite 3.20 使用説明書

Exam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN Exam's Question and Answers 1 from Ac

インターネットマガジン2001年4月号―INTERNET magazine No.75

tutorial.book

install.book

クラウド時代のインフラ構成/変更管理とコンプライアンス管理

Transcription:

BEA WebLogic Server WebLogic Workspace WebLogic Server 6.1 1.0 2001 11 30

Copyright 2001 BEA Systems, Inc. All Rights Reserved. BEA Systems, Inc. BEA BEA BEA FAR 52.227-19 Commercial Computer Software-Restricted Rights (c)(1) DFARS 252.227-7013 Rights in Technical Data and Computer Software (c)(1)(ii) NASA FAR 16-52.227-86 Commercial Computer Software--Licensing (d) BEA BEA BEA WebLogic Tuxedo Jolt BEA Systems, Inc. How Business Becomes E-Business BEA WebLogic E-Business Platform BEA Builder BEA Manager BEA elink BEA WebLogic Commerce Server BEA WebLogic Personalization Server BEA WebLogic Process Integrator BEA WebLogic Collaborate BEA WebLogic Enterprise BEA WebLogic Server BEA Systems, Inc. WebLogic Workspace 6.1 2001 11 30 BEA WebLogic Server 6.1

1. WebLogic Workspace API...1-2...1-2...1-2 API...1-3 WebLogic API...1-3...1-4...1-4...1-5 ID...1-5...1-6...1-9...1-10...1-11...1-12...1-13...1-15...1-15...1-17 1....1-17 2....1-19 3....1-20 4....1-23...1-24 WebLogic ACL...1-24 WebLogic Workspace iii

iv WebLogic Workspace

1 WebLogic Workspace WebLogic API WebLogic API WebLogic API ID WebLogic ACL WebLogic Windows WebLogic Windows WebLogic API WebLogic Workspace 1-1

1 WebLogic Workspace : WebLogic Server API WebLogic API WebLogic JNDI WebLogic WebLogic 1 WebLogic Server WebLogic Server 1-2 WebLogic Workspace

API T3Client WebLogic Server T3Client T3Client T3Client T3User JDBC WorkspaceDef final static int SCOPE_CLIENT WorkspaceDef final static int SCOPE_SERVER 2 WebLogic Server ResultSet WebLogic Server API WebLogic API WebLogic Workspace API WebLogic Server API weblogic.common weblogic.workspace.common WebLogic API WebLogic T3Client 1 API T3Client API weblogic.common WebLogic Workspace 1-3

1 WebLogic Workspace weblogic.common weblogic.workspace.common WorkspaceDef ID WebLogic ACL WebLogic Server T3Client services T3Client 1-4 WebLogic Workspace

T3Client t3 = new T3Client("t3://localhost:7001"); t3.connect(); WorkspaceDef defaultws = t3.services.workspace().getworkspace(); WorkspaceDef T3Client T3Client T3Client WorkspaceDef weblogic.workspace.common.workspacedef weblogic.common.workspaceservicesdef.getworkspace() ID T3Client WebLogic Server ID ID ID T3Client T3Client t3 = new T3Client("t3://localhost:7001"); t3.connect(); // // t3.setsoftdisconnecttimeoutmins(t3client.disconnect_timeout_never ); // T3Client WorkspaceDef defaultws = t3.services.workspace().getworkspace(); String wsid = defaultws.getid(); //..... t3.disconnect(); // ID wsid T3Client newt3 = new T3Client("t3://localhost:7001", wsid); newt3.connect(); //..... // // WebLogic Workspace 1-5

1 WebLogic Workspace newt3.setsoftdisconnecttimeoutmins(0); newt3.disconnect(); T3Client T3Client t3 = new T3Client("t3://localhost:7001", "MY_CLIENT_WS"); t3.connect(); // // t3.setsoftdisconnecttimeoutmins(t3client.disconnect_timeout_never ); //..... t3.disconnect(); T3Client newt3 = new T3Client("t3://localhost:7001", "MY_CLIENT_WS"); newt3.connect(); //..... // // newt3.setsoftdisconnecttimeoutmins(0); newt3.disconnect(); setsoftdisconnecttimeout() DISCONNECT_TIMEOUT_NEVER WebLogic Server WebLogic Server setsoftdisconnecttimeout() 0 WebLogic Server T3Client T3Client SCOPE_SERVER 1-6 WebLogic Workspace

SCOPE_CLIENT WorkspaceDef T3Client T3Client t3 = new T3Client("t3://localhost:7001"); t3.connect(); WorkspaceDef defaultws = t3.services.workspace().getworkspace(); T3Client 1 T3Client WorkspaceDef subws = defaultws.getworkspace("data_store"); WorkspaceDef final static SCOPE_CLIENT T3Client WorkspaceDef SCOPE_CLIENT SCOPE_SERVER WebLogic Server WebLogic Server T3Client WebLogic Workspace 1-7

1 WebLogic Workspace WebLogic Console Admin 3 WorkspaceDef final static WorkspaceDef.CREATE WorkspaceDef.ATTACH WorkspaceDef.OPEN DATASTORE_SPACE ATTACH ATTACH CREATE getworkspace() CREATE ID WorkspaceDef.CREATE T3Client t3 = new T3Client("t3://localhost:7001"); t3.connect(); WorkspaceDef defaultws = t3.services.workspace().getworkspace(); 1-8 WebLogic Workspace

WorkspaceDef subws = defaultws.getworkspace("data_store", WorkspaceDef.CREATE); WorkspaceDef.subspaces() java.lang java.util java.io.serializable 3 String key WorkspaceDef.store(String key, Object p) WorkspaceDef.fetch(String key) WorkspaceDef.remove(String key) WorkspaceDef.keys() DATA_SPACE WebLogic JDBC ResultSet DATA_SPACE WebLogic Workspace 1-9

1 WebLogic Workspace T3Client t3 = new T3Client("t3://toyboat.toybox.com:7001"); t3.connect(); // T3Client WorkspaceDef defaultws = t3.services.workspace().getworkspace(); WorkspaceDef dataws = defaultws.getworkspace("data_workspace", WorkspaceDef.CREATE, WorkspaceDef.SCOPE_SERVER); //... DB ResultSetrs rs... // dataws.store("myresults", rs); t3.disconnect(); ResultSet DATA_SPACE ResultSet fetch() ResultSet remove() T3Client t3 = new T3Client("t3://toyboat.toybox.com:7001"); t3.connect(); // T3Client WorkspaceDef defaultws = t3.services.workspace().getworkspace(); // WorkspaceDef mydataws = defaultws.getworkspace("data_workspace", WorkspaceDef.ATTACH, WorkspaceDef.SCOPE_SERVER); // ResultSet ResultSet rs = (ResultSet) mydataws.fetch("myresults"); t3.disconnect(); 2.4 T3Client T3Client t3 = new T3Client("t3://localhost:7001"); t3.connect(); String wsid = t3.getid(); 1-10 WebLogic Workspace

T3Client weblogic.common.workspace.workspacedef T3Client t3 = new T3Client("t3://localhost:7001"); t3.connect(); WorkspaceDef defaultws = t3.services.workspace().getworkspace(); WorkspaceDef getid() getname() T3Client weblogic.common.workspaceservicesdef WorkspaceDef WorkspaceDef weblogic.common.setmonitor weblogic.common.getmonitor weblogic.common.destroymonitor weblogic.common.monitorexception weblogic.common.getmonitor weblogic.common.monitor weblogic.common.monitordef WebLogic Workspace 1-11

1 WebLogic Workspace MonitorException WebLogic WebLogic API / 2 1 1 2 1-12 WebLogic Workspace

target public void preset(setable target, ParamSet callbackdata) throws MonitorException { target.newvalue("altered Value"); setmaster() true MonitorException Monitor monitor = new Monitor("mycode.MyMonitor", ps); monitor.setmaster(true); try { workspace.addmonitor(key, monitor); catch (Exception e) { inform("addmonitor failed: a Master Monitor " + "may already be installed."); Setable Getable Destroyable 3 Set Get Destroy Destroyable Setable Getable xxxvalue() WebLogic Workspace 1-13

1 WebLogic Workspace 6 1. preset postset setvalue() newvalue() oldvalue() preset MonitorException 2. preget postget preget MonitorException 3. predestroy postdestroy predestroy MonitorException MonitorException 1 SetMonitor GetMonitor DestroyMonitor 3 3 2 SetMonitor GetMonitor DestroyMonitor 1 1-14 WebLogic Workspace

WebLogic 4 SetMonitor GetMonitor DestroyMonitor 3 1 package mycode; import weblogic.common.*; public class MyMonitor implements SetMonitor { public T3ServicesDef services; public void monitorinit(paramset params, boolean ismaster) { public void setservices(t3servicesdef services) { this.services = services; public void preset(setable target, ParamSet callbackdata) throws MonitorException { System.out.println("preSet called"); public void postset(setable target, ParamSet callbackdata, Exception e) { System.out.println("postSet called"); weblogic.workspace.common.workspacedef.addmonitor() WebLogic Workspace 1-15

1 WebLogic Workspace WorkspaceDef.addMonitor() addmonitor() Monitor 2 Monitor MonitorDef SetMonitor GetMonitor DestroyMonitor MonitorDef addmonitor() Monitor Monitor MonitorDef SetMonitor GetMonitor DestroyMonitor WebLogic Server CLASSPATH WebLogic Server MonitorDef addmonitor() ParamSet monitorinit() ParamSet pre post Monitor T3Client t3 = new T3Client("t3://localhost:7001"); t3.connect(); ParamSet initps = new ParamSet(); ParamSet cbps = new ParamSet(); 1-16 WebLogic Workspace

WorkspaceDef defaultws = t3.services.workspace().getworkspace(); initps.setparam("topic", "newbooks"); Monitor mymon = new Monitor("mycode.MyMonitor", initps, cbps); defaultws.addmonitor("topic", mymon); 4 examples\workspace\monitor : 1. 2. 3. 4. 1. examples.workspace.monitor.rangemonitor MonitorException addmonitor() T3Client t3 = new T3Client("t3://localhost:7001"); t3.connect(); // 2 ParamSet // // ParamSet initps = new ParamSet(); ParamSet callbackps = new ParamSet(); WebLogic Workspace 1-17

1 WebLogic Workspace // WorkspaceDef defaultws = t3.services.workspace().getworkspace(); WorkspaceDef workspace = defaultws; try { Monitor rangemonitor = new Monitor("examples.workspace.monitor.RangeMonitor", initps, callbackps); workspace.addmonitor("key3", rangemonitor); System.out.println("Setting Value within range 0-100"); workspace.store("key3", new Integer(50)); try { System.out.println("Setting Value outside range 0-100"); workspace.store("key3", new Integer(150)); catch (T3Exception ex) { System.out.println("Received Exception for " + "out-of-range value"); catch (Exception e) { e.printstacktrace(); t3.disconnect(); preset() postset() preset() examples\workspace\monitor\rangemonitor.java SetMonitor target : public void preset(setable target, ParamSet callbackdata) throws MonitorException { if (!target.newvalue() instanceof Integer) { throw MonitorException("Value must be of type Integer"); integer newvalue = ((Integer) target.newvalue()).intvalue(); if (newvalue < 0 newvalue > 100) { throw MonitorException(newValue + " must be between 0 and 100"); public void postset(setable target, ParamSet callbackdata, Exception e) { 1-18 WebLogic Workspace

2. weblogic.event.actions.actiondef addmonitor() WebLogic Events T3Client t3 initps callbackps workspace examples\workspace\monitor\monitordemo.java : destructionmonitor lock initps.setparam("topic", "destroytopic"); Monitor destuctionmonitor = new Monitor("examples.workspace.monitor.DestructionMonitor", initps, callbackps); Evaluate eval = new Evaluate("weblogic.event.evaluators.EvaluateTrue"); Action action = new Action(this); EventRegistrationDef destroyreg = t3.services.events().geteventregistration("destroytopic", eval, action); destroyreg.register(); workspace.addmonitor("key1", destuctionmonitor); System.out.println("Storing value under key1"); workspace.store("key1", "testvalue"); System.out.println("Removing key1 from workspace " + "(expect message notification)"); synchronized(md.lock) { workspace.remove("key1"); md.lock.wait(); WebLogic Workspace 1-19

1 WebLogic Workspace // ActionDef EventRegistration // public void setservices(t3servicesdef services) { public void registerinit(paramset ps) { public void action(eventmessagedef message) { System.out.println("Message Received: " + message.gettopic()); synchronized(lock) { lock.notify(); postdestroy() DestroyMonitor postdestroy() target Destroyable public void postdestroy(destroyable target, ParamSet callbackdata, Exception e) { if (e == null) { ParamSet ps = new ParamSet(); try { if (target instanceof WorkspaceValue) { ps.setparam("key", ((WorkspaceValue) target).getkey()); EventMessageDef em = services.events().geteventmessage(topic, ps); em.submit(); catch (ParamSetException pse) { catch (EventGenerationException ege) { 3. addmonitor() T3Client t3 initps callbackps workspace 1-20 WebLogic Workspace

examples\workspace\monitor\monitordemo.java : try { // MirrorMonitor SetMonitor DestroyMonitor // // // initps.setparam("mirror", "mirroredworkspace"); Monitor mirrormonitor = new Monitor("examples.workspace.monitor.MirrorMonitor", initps, callbackps); workspace.addmonitor("key2", mirrormonitor); String mirrorval = "mirror this"; workspace.store("key2", mirrorval); System.out.println("Set key2 = " + mirrorval + ", in default workspace"); WorkspaceDef mirror = defaultws.getworkspace("mirroredworkspace", WorkspaceDef.OPEN, WorkspaceDef.SCOPE_SERVER); String mirroredvalue = (String) mirror.fetch("key2"); System.out.println("Got key2 = " + mirrorval + ", in workspace " + mirror.getname()); catch (Exception e) { e.printstacktrace(); // // NEVER WebLogic Server // t3.disconnect(); SetMonitor DestroyMonitor Setable Destroyable target WebLogic Workspace 1-21

1 WebLogic Workspace Monitor monitorinit() ParamSet ParamSet public class MirrorMonitor implements SetMonitor, DestroyMonitor { public T3ServicesDef services; WorkspaceDef mirror = null; public void setservices(t3servicesdef services) { this.services = services; public void monitorinit(paramset params, boolean ismaster) throws ParamSetException { String mirrorname = params.getparam("mirror").asstring(); mirror = services.workspace().getworkspace(mirrorname, WorkspaceDef.OPEN, WorkspaceDef.SCOPE_SERVER); public void preset(setable target, ParamSet callbackdata) throws MonitorException { // public void postset(setable target, ParamSet callbackdata, Exception e) { if (e == null && target instanceof WorkspaceValue) { try { mirror.store(((workspacevalue)target).getkey(), target.newvalue()); catch (T3Exception t3e) { public void predestroy(destroyable target, ParamSet callbackdata) { // public void postdestroy(destroyable target, ParamSet callbackdata, Exception e) { try { mirror.destroy(((workspacevalue)target).getkey()); catch (T3Exception t3e) { 1-22 WebLogic Workspace

4. 1 1 Monitor.setMaster(true) MonitorException addmonitor() try { // XXXMonitor MasterMonitor // // "XXX" Monitor xxxmonitor = new Monitor("examples.workspace.monitor.XXXMonitor", initps, callbackps); xxxmonitor.setmaster(true); String val = "hello world"; workspace.addmonitor("key4", xxxmonitor); workspace.store("key4", val); System.out.println("Set Value: "+val); val = (String) workspace.fetch("key4"); System.out.println("Got Value: "+val); catch (Exception e) { e.printstacktrace(); XXX preset() public class XXXMonitor implements SetMonitor { T3ServicesDef services; boolean ismaster; WebLogic Workspace 1-23

1 WebLogic Workspace public void monitorinit(paramset params, boolean ismaster) { this.ismaster = ismaster; public void setservices(t3servicesdef services) { this.services = services; public void preset(setable target, ParamSet callbackdata) throws MonitorException { if (ismaster) { target.newvalue("xxx"); public void postset(setable target, ParamSet callbackdata, Exception e) { removemonitor() workspace.removemonitor(key, monitor); key 1 WebLogic ACL weblogic.workspace weblogic.workspace.namedworkspace WebLogic WebLogic ACL WebLogic ACL weblogic.properties 1-24 WebLogic Workspace

: WebLogic Server Web Administration Console weblogic.properties read write weblogic.workspace ACL ACL ACL weblogic.workspace ACL read write ACL ACL ACL ACL 4 T3UserSales 2 ACL 2 T3User sysmonitor ACL : weblogic.allow.read.weblogic.workspace.t3usersales=karl,michael,s kip,msmithweblogic.allow.write.weblogic.workspace.t3usersales=kar l,michael,skip,msmithweblogic.allow.read.weblogic.workspace=sysmo nitorweblogic.allow.write.weblogic.workspace=sysmonitor WebLogic Workspace 1-25

1 WebLogic Workspace 1-26 WebLogic Workspace