connect(’system’,’weblogic’, ‘t3://localhost:7001′)
# Creating a JMS Server
edit()
startEdit()
cd(‘/’)
print ‘Creating JMS Server.’
cmo.createJMSServer(‘JMSServer0′)
cd(‘/JMSServers/JMSServer0′)
cmo.addTarget(getMBean(‘/Servers/AdminServer’))
activate()
# Creating a Module
startEdit()
cd(‘/’)
cmo.createJMSSystemResource(‘JMSSystemResource0′)
cd(‘/JMSSystemResources/JMSSystemResource0′)
cmo.addTarget(getMBean(‘/Servers/AdminServer’))
cmo.createSubDeployment(’subdeployment0′)
activate()
# Creating Queue
startEdit()
print ‘Creating Queue & Topic ‘
cd(‘/’)
cd(‘/JMSSystemResources/JMSSystemResource0/JMSResource/JMSSystemResource0′)
cmo.createQueue(‘Queue0′)
cd(‘/JMSSystemResources/JMSSystemResource0/JMSResource/JMSSystemResource0/Queues/
Queue0′)
set(‘JNDIName’,’jms/Queue0′)
set(‘SubDeploymentName’,’subdeployment0′)
cd(‘/JMSSystemResources/JMSSystemResource0/SubDeployments/subdeployment0′)
cmo.addTarget(getMBean(‘/JMSServers/JMSServer0′))
activate()
# Creating Topic
startEdit()
cd(‘/’)
cd(‘/JMSSystemResources/JMSSystemResource0/JMSResource/JMSSystemResource0′)
cmo.createTopic(‘Topic0′)
cd(‘/JMSSystemResources/JMSSystemResource0/JMSResource/JMSSystemResource0/Topics/
Topic0′)
set(‘JNDIName’,’jms/Topic0′)
set(‘SubDeploymentName’,’subdeployment0′)
cd(‘/JMSSystemResources/JMSSystemResource0/SubDeployments/subdeployment0′)
set(‘Targets’,jarray.array([ObjectName(‘com.bea:Name=JMSServer0,Type=JMSServer’)],
ObjectName))
activate()
Initializing WebLogic Scripting Tool (WLST) …
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Problem invoking WLST – Traceback (innermost last):
(no code object) at line 0
File “/home/sangamesh/Desktop/jmsser.py”, line 8
cd(‘/’)
^
SyntaxError: Lexical error at line 8, column 4. Encountered: “\u2018” (8216), after : “”
i am getting the above error while creating jms server .. please help me on this..
thanks in advance
regards
googal
there seems to be some issue with your script.. can u mail it to me at [email protected]. I can check and revert.