默认情况下,Sun Message Queue 代理允许自动创建队列目的地(请参见 config.properties,其中 imq.autocreate.queue 的默认值为 true)。
如果没有自动创建队列目的地,则必须使用在代理上创建目的地(其中 myTestQueue 为目的地)中所示的命令在代理上创建目的地对象。
name (Queue name): #> cd /opt/sun/mq/bin #>./imqcmd create dst -t q -n mytestQueue Username: <admin> Password: <admin> Creating a destination with the following attributes: Destination Name mytestQueue Destination Type Queue On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 7676 Successfully created the destination. |
您可以将管理对象存储到目录或文件:
在目录中:使用目录是一种集中存储连接工厂和目的地对象的方法。
使用目录时,这些管理对象将存储为目录条目。
如果 Identity Manager PasswordSync Servlet 和 Identity Manager 服务器不在同一台计算机上,则它们都必须能够访问 .bindings 文件。您可以在每台计算机上将受管理对象的创建过程重复两次,或者将.bindings 文件复制到每台计算机上的正确位置。
在文件中:如果 Identity Manager PasswordSync Servlet 和 Identity Manager 服务器在同一台服务器上运行(或者没有可用目录),则可以将管理对象存储到文件中。
使用文件时,这两个管理对象将存储在单个文件(在 Windows 和 UNIX 上,文件名均为 .bindings)中,该文件位于为 java.naming.provider.url 指定的目录(例如,在 Windows 上为 file:///c:/temp,在 Unix 上为 file:///tmp )下。