*
The moose likes BEA/Weblogic and the fly likes JMS system Resource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "JMS system Resource" Watch "JMS system Resource" New topic
Author

JMS system Resource

sumit mathur
Ranch Hand

Joined: Sep 01, 2009
Posts: 34
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

Joined: Sep 01, 2009
Posts: 34
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

Joined: Sep 01, 2009
Posts: 34

Deepak

DO you have any idea regarding this ???
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

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 ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
sumit mathur
Ranch Hand

Joined: Sep 01, 2009
Posts: 34
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

Joined: Feb 24, 2006
Posts: 6661
    
    5

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

Joined: Sep 01, 2009
Posts: 34
Deepak

What is clustered address. Is it same as multicast address???
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

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

Joined: Sep 01, 2009
Posts: 34
so how will i test this???
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Lookup the JMS resource using the clustered address. If you are able to access the resource then there is nothing to worry about.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS system Resource
 
Similar Threads
OC4J JMS Clustering problem
Start Admin server
Weblogic 10.3.2 queue connection factory and queue creation
Start of Admin server remotely
JMS Q in clustered environment