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 » General IBM MQ Support » name space

Post new topic  Reply to topic
 name space « View previous topic :: View next topic » 
Author Message
jeevan
PostPosted: Tue Jan 31, 2006 6:37 am    Post subject: name space Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

what is namespace and when do we use it?

thanks
Back to top
View user's profile Send private message
jsware
PostPosted: Mon Feb 06, 2006 5:42 am    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

In what context are you refering to a namespace.

In C++ it means one thing.
In XML it means another thing.
In Message Broker it means something else.
In Java it means something else.

I would liken them to "schemas" in a database, though namespaces can be more hierarchical in other contexts.

They are all related to limiting the "globalness" of names by providing separate "spaces" for them.

Thus in my namespace I can have a name called "title" and you can have the same name "title" in your namespace. They can then be fully qualitifed by using the namespace and the name "my:title" and "your:title".

A filename example might be that you have a file called "myfile.dat" and I also have a file called "myfile.dat". They can be both stored on the same disk by putting them in their own namespace - aka a different directory. This is how Java stores its classes. The package namespace "com.ibm.mqm" gets stored in a directory structure "com/ibm/mqm" which is then jar'd up into an mqm.jar file.
Depending upon the context, the fully qualified name is referenced differently.

HTH
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
jeevan
PostPosted: Mon Feb 06, 2006 1:57 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

I am really sorry. I meant namelist in MQ.

thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 06, 2006 2:36 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Well namelists are often use in clustering especially with overlapping clusters. I believe you can as well use them in distribution lists.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jeevan
PostPosted: Mon Feb 06, 2006 3:06 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

I understand that we can use with cluster. While going through literature, it is not very much clear of its usage. Can you please give an example the use of distribution /other uses. For example, if I have to put the message into more than one queues of more than one queue managers, is that where it is used?

I would appreciate clarification.

thanks
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Feb 06, 2006 3:18 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
I understand that we can use with cluster.

If you did, you wouldn't have asked.
Anyway:
Let's say you want a queue to be defined in 2 clusters clus1 and clus2.
How do you do that.
If you had to define it in one cluster, you would say something like
Code:
define ql(CQ1) CLUSTER(clus1)
     2 : define ql(CQ1) CLUSTER(clus1)
AMQ8006: WebSphere MQ queue created.

But if you want to share this queue in another cluster, say CLUS2, you cannot do it.

But, now, you can define a namelist.
NC1ANDC2

Have CLUS1 and CLUS2 members of this namelist.

Now define the queue as something like
Code:
define ql(CQ1) CLUSNL(NC1ANDC2)


Hope this helps.

The same concept works for making a QMGR repository for more than one cluster.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
EddieA
PostPosted: Mon Feb 06, 2006 4:02 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
Can you please give an example the use of distribution /other uses

A NameList isjust a list of "strings". How you use them is up to your application.

To take your question of a distribution list. You would create a Namelist that contained all the Queues that the message was to be sent to. You would read the Namelist, and use the contents to drive where you send the messages to. If you need to change the list, just re-load the Namelist.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
jeevan
PostPosted: Wed Feb 08, 2006 10:57 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Thanks for the help.

You guys are wonderful.
Back to top
View user's profile Send private message
HubertKleinmanns
PostPosted: Wed Feb 08, 2006 11:12 am    Post subject: Reply with quote

Shaman

Joined: 24 Feb 2004
Posts: 732
Location: Germany

EddieA wrote:
A NameList isjust a list of "strings".


Name lists have to be valid MQ names. For example the contents (names) cannot exceed a length of 48 character and they only can contain letters, numbers and the special characters:

/ (slash)
. (dot)
% (percent sign)
_ (underscore)
_________________
Regards
Hubert
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 » General IBM MQ Support » name space
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.