Showing posts with label Weblogic Coherence. Show all posts
Showing posts with label Weblogic Coherence. Show all posts

Monday, March 12, 2012

Weblogic Fusion Middleware 10.3.5 WLST Script for Creation of the Database Resource and Redeployment of the Database Adapter

Weblogic Fusion Middleware 10.3.5 WLST Script for Creation of the Database Resource and Redeployment of the Database Adapter

On steps to executing the script, please click here
 
import os
connect(userName,passWord,'t3://'+wlsHost+':'+adminServerListenPort)
edit()
startEdit()

soaJDBCSystemResource1 = create('DBAdapterTestDataSource',"JDBCSystemResource")
soaJDBCResource1 = soaJDBCSystemResource1.getJDBCResource()
soaJDBCResource1.setName('DBAdapterDataSource')

soaConnectionPoolParams1 = soaJDBCResource1.getJDBCConnectionPoolParams()
soaConnectionPoolParams1.setTestTableName("SQL SELECT 1 FROM DUAL")

soaConnectionPoolParams1.setInitialCapacity(10)
soaConnectionPoolParams1.setMaxCapacity(100)

soaDataSourceParams1 = soaJDBCResource1.getJDBCDataSourceParams()
soaDataSourceParams1.addJNDIName('jdbc/dbSample')
soaDriverParams1 = soaJDBCResource1.getJDBCDriverParams()
soaDriverParams1.setUrl('jdbc:oracle:thin:@'+db_host_name+':'+db_port+':'+db_sid)
soaDriverParams1.setDriverName('oracle.jdbc.xa.client.OracleXADataSource')
soaDriverParams1.setPassword('my_password')

soaDriverProperties1 = soaDriverParams1.getProperties()
soaProperty1 = soaDriverProperties1.createProperty("user")
soaProperty1.setValue('scott')

varSOAServerTarget = '/Servers/'+serverName
soaServerTarget = getMBean(varSOAServerTarget)

soaJDBCSystemResource1.addTarget(soaServerTarget)

dumpStack()

try : 

save()

activate(block="true")

except:
    print "Error while trying to save and/or activate!!!"
    dumpStack()

print "Creating DB adapter resource  information"
try:
     redeploy('DBAdapter', '@deployment.plan@', upload='true', stageMode='stage') 
    
except:
    print "Error while modifying db adapter connection factory" 
 
 

WLST Script for Creation of JMS Resource and Redeployment of JMS Adapter


This script can be used for creation of JMS Resource and Redeployment of JMS Adapter
On steps to executing the script, please click here. 
# lookup the JMSModule 
    jmsSOASystemResource = lookup("SOAJMSModule","JMSSystemResource")
        
    jmsResource = jmsSOASystemResource.getJMSResource()
    
    cfbean = jmsResource.lookupConnectionFactory('DemoSupplierTopicCF')
    if cfbean is None:
        print "Creating DemoSupplierTopicCF connection factory"
        demoConnectionFactory =
 jmsResource.createConnectionFactory('DemoSupplierTopicCF')
        demoConnectionFactory.setJNDIName('jms/DemoSupplierTopicCF')
        demoConnectionFactory.setSubDeploymentName('SOASubDeployment')

    topicbean = jmsResource.lookupTopic('DemoSupplierTopic')
    if topicbean is None:
        print "Creating DemoSupplierTopic jms topic"
        demoJMSTopic = jmsResource.createTopic("DemoSupplierTopic")
        demoJMSTopic.setJNDIName('jms/DemoSupplierTopic')
        demoJMSTopic.setSubDeploymentName('SOASubDeployment')
        
try:
    save()
    # activate the changes
    activate(block="true")
    print "jms topic and factory for SOA Fusion Order Demo successfully created"
except:
    print "Error while trying to save and/or activate!!!"
    dumpStack()
    
print "Creating jms adapter connection factory information"
try:
     redeploy('JmsAdapter', '@deployment.plan@', upload='true', stageMode='stage') 
    
except:
    print "Error while modifying jms adapter connection factory"

Tuesday, March 6, 2012

Weblogic 10.3.5: Creating a wlfullclient.jar for JDK 1.6 client applications

Creating a wlfullclient.jar for JDK 1.6 client applications

Use the following steps to create a wlfullclient.jar file for a JDK 1.6 client application:
  1. Change directories to the server/lib directory.
  2. cd WL_HOME/server/lib
  3. Use the following command to create wlfullclient.jar in the server/lib directory:
  4. java -jar wljarbuilder.jar
  5. You can now copy and bundle the wlfullclient.jar with client applications.
  6. Add the wlfullclient.jar to the client application’s classpath.
 

 

Friday, June 10, 2011

Weblogic 10.3.5 Coherence

Coherence servers (also known as Coherence data nodes) are stand-alone cache servers, dedicated JVM instances responsible for maintaining and managing cached data.
To create a Coherence server in an existing domain:
  1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit
  2. In the left pane of the Console, expand Environment and select Coherence Servers.
  3. In the Coherence Servers table, click New.
  4. On the Coherence Server Properties page:
    1. Enter the name of the server in the Name field. The server name is not used as part of the URL for applications that are deployed on the server. It is for your identification purposes only. The server name displays in the Administration Console, and if you use WebLogic Server command-line utilities or APIs, you use this name to identify the server.
    2. Select an existing Machine (WebLogic Server host computer name on which this server is meant to run) from the drop-down list. In order to use Node Manager to start this Coherence server, you must assign the server to a machine and you configure the machine for the Node Manager.
    3. Optional. In Cluster, enter the system-level Coherence cluster resource associated with this server.
    4. Optional. In Unicast Listen Address, enter the IP address for the cluster unicast listener. This attribute may be used to override the value of the referenced Coherence cluster.
    5. Optional. In Unicast Listen Port, enter the port for the cluster unicast listener.
    6. Optional. Use the Unicast Port Auto Adjust check box to specify whether the unicast port will be automatically incremented if the port cannot be bound because it is already in use. 


    1. Click Finish. The new server appears in the Summary of Coherence Servers table.
    2. To activate these changes, in the Change Center of the Administration Console, click Activate Changes



      How IdP Groups Are Tied to Databricks Groups (Unity Catalog)

        🔗 How IdP Groups Are Tied to Databricks Groups (Unity Catalog) 🔑 Key Principle (Read This First) Databricks does NOT “map” IdP groups...