ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Topics in LDAP

Post new topic  Reply to topic
 Topics in LDAP « View previous topic :: View next topic » 
Author Message
elSto
PostPosted: Mon Sep 26, 2005 6:26 am    Post subject: Topics in LDAP Reply with quote

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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Mon Sep 26, 2005 6:28 am    Post subject: Reply with quote

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
View user's profile Send private message
elSto
PostPosted: Tue Sep 27, 2005 11:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Wed Sep 28, 2005 4:20 am    Post subject: Reply with quote

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
View user's profile Send private message
JohnRodey
PostPosted: Wed Sep 28, 2005 5:12 am    Post subject: Reply with quote

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
View user's profile Send private message
elSto
PostPosted: Wed Sep 28, 2005 9:15 pm    Post subject: Reply with quote

Newbie

Joined: 26 Sep 2005
Posts: 6

Hy JohnRodey,
I tested it with \, \\, //, / and "...." '.....'
Thanx Stöffel
Back to top
View user's profile Send private message Visit poster's website
elSto
PostPosted: Wed Sep 28, 2005 10:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Thu Sep 29, 2005 3:25 am    Post subject: Reply with quote

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
View user's profile Send private message
elSto
PostPosted: Thu Sep 29, 2005 4:05 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Thu Sep 29, 2005 4:15 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 29, 2005 4:26 am    Post subject: Reply with quote

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
View user's profile Send private message
elSto
PostPosted: Fri Sep 30, 2005 5:07 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Topics in LDAP
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.