Author |
Message
|
elSto |
Posted: Mon Sep 26, 2005 6:26 am Post subject: Topics in LDAP |
|
|
 Newbie
Joined: 26 Sep 2005 Posts: 6
|
Hello,
I've a question.
How can I create the following topics, with JMSadmin in LDAP?
myTopic
myTopic/Test
I get the message "Unable to bind object", if I write def t(myTopic/Test).
Thanks for your help
Stöffel |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Sep 26, 2005 6:28 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Which application server are you using?
Which LDAP are you using?
Does the LDAP server provide more information in it's error logs?
Are you sure you've bound properly to the LDAP? Are you sure you have the necessary permissions in the LDAP to the place you're trying to define new things? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
elSto |
Posted: Tue Sep 27, 2005 11:55 pm Post subject: |
|
|
 Newbie
Joined: 26 Sep 2005 Posts: 6
|
Hello,
the problem is, that i'd like to create a topic in LDAP whitch is called "Sports" and a Subtopic called "Tennis"
I can create the topic "Sports".
I can't create the topic "Tennis"
------------------------------------------------------------------------------------
InitCtx/ou=common/ou=jms/cn=mq_pubsub_prototyp> def t(Sports)
InitCtx/ou=common/ou=jms/cn=mq_pubsub_prototyp> dis ctx
Inhaltsverzeichnis von InitCtx/ou=common/ou=jms/cn=mq_pubsub_prototyp
a cn=defaultTCF com.ibm.mq.jms.MQTopicConnectionFactory
a cn=Sports com.ibm.mq.jms.MQTopic
2 Objekt(e)
0 Kontext(e)
2 Bindung(en), 2 Verwaltet
InitCtx/ou=common/ou=jms/cn=mq_pubsub_prototyp> def t(Sports/Tennis)
Can't bind object !!!
------------------------------------------------------------------------------------
How can I do this?
Stöffel |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Sep 28, 2005 4:20 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Try answering the questions I already asked.
Try using single quotes around 'Sports/Tennis'. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
JohnRodey |
Posted: Wed Sep 28, 2005 5:12 am Post subject: |
|
|
 Centurion
Joined: 13 Apr 2005 Posts: 103
|
It looks like you just can't use a '/' character in a definition. JMSAdmin will allow you to use the '\' character though. Is this of any help to you? |
|
Back to top |
|
 |
elSto |
Posted: Wed Sep 28, 2005 9:15 pm Post subject: |
|
|
 Newbie
Joined: 26 Sep 2005 Posts: 6
|
Hy JohnRodey,
I tested it with \, \\, //, / and "...." '.....'
Thanx Stöffel |
|
Back to top |
|
 |
elSto |
Posted: Wed Sep 28, 2005 10:13 pm Post subject: |
|
|
 Newbie
Joined: 26 Sep 2005 Posts: 6
|
Hy Jefflowrey,
Quote: |
Which application server are you using? |
Application Server ASP 6.0
Quote: |
Which LDAP are you using? |
OpenLDAP 2.2.26
Quote: |
Does the LDAP server provide more information in it's error logs? |
I don't see more information in it's error logs.
Quote: |
Are you sure you've bound properly to the LDAP? Are you sure you have the necessary permissions in the LDAP to the place you're trying to define new things? |
Yes
Thanx for your help |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 29, 2005 3:25 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Maybe you need to change to the context of the top level topic after you created it.
So, vaguely like
1)create topic ('SPORTS')
2)change context to SPORTS
3) create topic('TENNIS') _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
elSto |
Posted: Thu Sep 29, 2005 4:05 am Post subject: |
|
|
 Newbie
Joined: 26 Sep 2005 Posts: 6
|
That's the problem I define a topic SPORTS and I can't change in to SPORTS because it is a MQTopic and not a context.
Do you understand what i'd like to do?
I'd like to make the same structur, like it is in the docu
ftp://ftp.software.ibm.com/software/ts/mqseries/library/books/amqnar07.pdf Chapter 2: Sestem design Topics
Do you know, how I can solve this problem?
Stöffel |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 29, 2005 4:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
elSto wrote: |
Do you understand what i'd like to do? |
Yes.
elSto wrote: |
Do you know, how I can solve this problem? |
No...  _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 29, 2005 4:26 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Okay, the following works just fine with a file system context:
Code: |
5724-H72, 5655-L82, 5724-L26 (c) Copyright IBM Corp. 2002,2005. All Rights Reserved.
Starting Websphere MQ classes for Java(tm) Message Service Administration
Initializing JNDI Context...
INITIAL_CONTEXT_FACTORY: com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL: file://C:/JNDI-Directory
Done.
Welcome to the Admin Tool's command-line interface
InitCtx> define T('Sports')
InitCtx> define T('Sports/Tennis')
InitCtx> dis T(*)
T('Sports')
BROKERPUBQMGR()
FAILIFQUIESCE(YES)
BROKERDURSUBQ(SYSTEM.JMS.D.SUBSCRIBER.QUEUE)
BROKERPUBQ()
BROKERVER(V1)
PERSISTENCE(APP)
CCSID(1208)
TARGCLIENT(JMS)
ENCODING(NATIVE)
BROKERCCDURSUBQ(SYSTEM.JMS.D.CC.SUBSCRIBER.QUEUE)
MULTICAST(ASCF)
PRIORITY(APP)
EXPIRY(APP)
VERSION(6)
InitCtx> dis T(Sports/Tennis)
Binding non-administerable or not found
javax.naming.NameNotFoundException: Sports/Tennis
InitCtx> dis T('Sports/Tennis')
BROKERPUBQMGR()
FAILIFQUIESCE(YES)
BROKERDURSUBQ(SYSTEM.JMS.D.SUBSCRIBER.QUEUE)
BROKERPUBQ()
BROKERVER(V1)
PERSISTENCE(APP)
CCSID(1208)
TARGCLIENT(JMS)
ENCODING(NATIVE)
BROKERCCDURSUBQ(SYSTEM.JMS.D.CC.SUBSCRIBER.QUEUE)
MULTICAST(ASCF)
PRIORITY(APP)
EXPIRY(APP)
VERSION(6)
|
So if the same steps don't work, it's an issue with your LDAP or the way you have configured JMSAdmin to bind to your LDAP.
You might also look at the section "LDAP Naming Considerations" at http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/jms77h3.htm _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
elSto |
Posted: Fri Sep 30, 2005 5:07 am Post subject: |
|
|
 Newbie
Joined: 26 Sep 2005 Posts: 6
|
He jefflowrey,
I solved my problem
The problem was, that u can't work with '/' under LDAP.
I've changed the USE_INITIAL_DIR_CONTEXT in the JMSAdmin.config from TRUE to FALSE.
USE_INITIAL_DIR_CONTEXT=FALSE
And defined my topics like this:
Def T(cn=SPORTS)
Def T(cn=TENNIS,cn=SPORTS)
----------------------------------------------------------------------------
The subscriber subscribes a topic with a filebased JNDI like this
(SPORTS/*) and with LDAP like this (cn=*,cn=SPORTS)
Thanx for your help.
Peez Stöffel |
|
Back to top |
|
 |
|