• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS system Resource

 
sumit mathur
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am creating a Admin server and managed server using offline WLST script .This include creating creating the JMS system resource,JMS server and Queue and connection Factory.

This is how create JmsSystemResource

create(ANP-JMS-1-8001, 'JMSSystemResource')
Then i create the JMS server ,queue and connection factory .

After this i assign these resources to there respective targets

Resource Target

1)JMS server -----> Managed server
2)Queue ------> JMS server
3)ConnectionFac ------> JMS server

And i am trying to assign JmsSystemResource to Managed server using the following command

assign('JMSSystemResource','ANP-JMS-1-8001'Target','ANP-1-8001)

Here ANP-1-8001 is my Managed server name. And my manged server is part of Cluster with name MyCluster

After creating the domain

In config.xml , JmsSystem resource is targeted to cluster instead of Managed server.
Thoug in my py script i am assigning the JmsSystemResource to Managed server .

Any Clue ???

sumit


 
sumit mathur
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And I observed one more thing ,that if i have not assigned my managed server to cluster then , in config.xml shows JMSSystem resource is targeted to Managed server.

I am using weblogic 9.2MP3

All my subdeployments are correctly targeted to Managed servers.
 
sumit mathur
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Deepak

DO you have any idea regarding this ???
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just saw your post.

Is your JMS resource supposed to be distributed across all managed servers ? Any request to the cluster should target the request to your JMS resource automatically based on where it exists. This should not be a problem we should worry about. A clusteraware stub will take care of this detail. Is there any specific reason you want a clustered environment but want only one JMS server targeted to one managed server instead of the cluster ?
 
sumit mathur
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your JMS resource supposed to be distributed across all managed servers ? Any request to the cluster should target the request to your JMS resource automatically based on where it exists


No
Each managed server instance will have there own resources (Queues , connection factory ,JDBC etc).These resource targeted to JMS server and each JMS server is targeted to Managed server.


Is there any specific reason you want a clustered environment but want only one JMS server targeted to one managed server instead of the cluster ?

Yes

We have 4 Managed server instances with one Managed server + admin on Machine 1 and rest 3 are on 3 different Machine.All 4 Managed server are in Cluster and each Managed server have there own JMS server and jms resources.

My issue is the target of JMS module. In spite of assigning JMS module(JMSSystem resurce) to managed server ,it get assigned to Cluster.

Here is config.xml portion

<jms-server>
<name>JMS-8001</name>
<target>Server1</target>
</jms-server>

<jms-system-resource>
<name>JMS-System-8001</name>
<target>myCluster</target>
<sub-deployment>
<name>ConnectionFactory-8001</name>
<target>JMS-8001</target>
</sub-deployment>
<sub-deployment>
<name>CMQueue-8001</name>
<target>JMS-8001</target>
</sub-deployment>
<sub-deployment>
<name>OSSQueue-8001</name>
<target>JMS-8001</target>
</sub-deployment>
</jms-system-resource>

If you see
<jms-system-resource>
<name>JMS-System-8001</name>
<target>myCluster</target>


Here target is Cluster rather than Managed server1

Though my command is

assign('JMSSystemResource','JMS-System-8001'Target','Managed server1')


 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mmm... perhaps this resource is indeed assigned to both servers but you are looking at the clustered address ? Can you reach the resources based on the clustered address ?

 
sumit mathur
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak

What is clustered address. Is it same as multicast address???
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The clustered address is usually the address that any client can hit, without having to bother about where the request will end. A clusteraware stub is one that is able to interact with a client and route the request to an underlying server node.
 
sumit mathur
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so how will i test this???
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lookup the JMS resource using the clustered address. If you are able to access the resource then there is nothing to worry about.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic