Author |
Message
|
jeevan |
Posted: Tue Jan 31, 2006 6:37 am Post subject: name space |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
what is namespace and when do we use it?
thanks |
|
Back to top |
|
 |
jsware |
Posted: Mon Feb 06, 2006 5:42 am Post subject: |
|
|
 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 |
|
 |
jeevan |
Posted: Mon Feb 06, 2006 1:57 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
I am really sorry. I meant namelist in MQ.
thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Feb 06, 2006 2:36 pm Post subject: |
|
|
 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 |
|
 |
jeevan |
Posted: Mon Feb 06, 2006 3:06 pm Post subject: |
|
|
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 |
|
 |
vennela |
Posted: Mon Feb 06, 2006 3:18 pm Post subject: |
|
|
 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 |
|
 |
EddieA |
Posted: Mon Feb 06, 2006 4:02 pm Post subject: |
|
|
 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 |
|
 |
jeevan |
Posted: Wed Feb 08, 2006 10:57 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Thanks for the help.
You guys are wonderful. |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Wed Feb 08, 2006 11:12 am Post subject: |
|
|
 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 |
|
 |
|