注:1. BW4.3.2以上的版本,channel/queue referral 完全可以用universal channel/quque 代替,用起来也简单得多。
2. 以下的操作步骤上,不同版本的ldap console界面并不一样。
channel/queue referral 本质上是ldap的一个功能,相当于一个远程corba节点的链接,因为corba是网络透明的。以Sunone console为例,步骤
where you want to create the refferal. Right click on the
context and select "New -> Other". In the objectclass
selection list, pick "vtcommon-11" and click "OK".
2) A dialog will appear showing the attributes of the new
entry. Enter the name of the referral (e.g., "myChannel")
as the value of the "Full name" attribute and click "OK".
A new entry with this name should appear in the context.
3) Right-click on this entry and select "Set Referrals".
A dialog will appear. Check the "Enable Referrals" checkbox
and enter the remote URL in the "Enter a new referral"
text field (e.g.,
"ldap://ldap2.vitria.com:389/cn=myChannel,cn=bserv1,cn=Servers,dc=vitria,dc=com")
and click "Add". The URL should appear under the referral
list. Finally, click OK.
4) To test the referral, make sure the target of the referral
exists (e.g., for a channel, create the channel).
Under the "View" menu, select "Follow referrals" if necessary
to get a check mark. Double-click on the referral entry in
the directory and the remote entry should appear (the entry
will have an objectclass of "vtchannel-11" if its a channel).
Alternatively, you can use "vtadmin check channel" on the
referral as long as the remote channel server is running.
要测试可用性,在BW环境下还应该用vtadmin check channel/quque xxxxxx 的方式直接check这个referral,如果referral建立成功,那么其输出与一个普通的channel/quque是一样的。
在BME中要inspect这个referral,应该从菜单"View -> Channel/Queue Inspector..."来侦测这个referral,应该点Browse按钮,展开com数,就可以找到建立的referral。
在BW中要使用这个channel/queue referral,还有一个重要的一点是,启动这个bserv的uid,必须要有访问远程channel/queue的权限。方法是,此uid需要添加在Groups内的BW User中的uniquemember中: