print AdminConfig.attributes('Application')
List Enterprise Applications
print AdminConfig.list('ApplicationDeployment') - EAR level
List Contents in Enterprise Applications
print AdminConfig.list('WebModuleDeployment') - WAR level
Print the first application name
app=AdminControl.queryNames('type=Application,*').split('\n')[0]
obj=AdminControl.completeObjectName(app) - Getting the object
The following commands are available for the AdminConfig object:
* attributes
* checkin
* convertToCluster
* create
* createClusterMember
* createDocument
* createUsingTemplate
* defaults
* deleteDocument
* existsDocument
* extract
* getCrossDocumentValidationEnabled
* getid
* getObjectName
* getSaveMode
* getValidationLevel
* getValidationSeverityResult
* hasChanges
* help
* installResourceAdapter
* list
* listTemplates
* modify
* parents
* queryChanges
* remove
* required
* reset
* save
* setCrossDocumentValidationEnabled
* setSaveMode
* setValidationLevel
* show
* showall
* showAttribute
* types
* uninstallResourceAdapter
* validate
The following commands are available for the AdminApp object:
* deleteUserAndGroupEntries
* edit
* editInteractive
* export
* exportDDL
* getDeployStatus
* help
* install
* installInteractive
* isAppReady
* list
* listModules
* options
* publishWSDL
* searchJNDIReferences
* taskInfo
* uninstall
* update
* updateAccessIDs
* updateInteractive
* view
The following commands are available for the AdminControl object:
* completeObjectName
* getAttribute
* getAttribute_jmx
* getAttributes
* getAttributes_jmx
* getCell
* getConfigId
* getDefaultDomain
* getDomainName
* getHost
* getMBeanCount
* getMBeanInfo_jmx
* getNode
* #rxml_admincontrol__cmd14
* getPort
* getPropertiesForDataSource (Deprecated)
* getType
* help
* invoke
* invoke_jmx
* isRegistered
* isRegistered_jmx
* makeObjectName
* #rxml_admincontrol__cmd24
* queryNames
* queryNames_jmx
* reconnect
* setAttribute
* setAttribute_jmx
* setAttributes
* setAttributes_jmx
* startServer
* stopServer
* testConnection
* trace
The following AdminTask commands are available but do not belong to a group:
* createServerType
* createTCPEndPoint
* getTCPEndPoint
* help
* listSSLRepertoires
* listTCPEndPoints
* listTCPThreadPools
* updateAppOnCluster
Rants and ravings of a semi-autistic developer who has a hard time remembering idiotic nonsense details. Why remember it, when you know where to find it.
Friday, August 17, 2012
find all the dependencies
usr@host:~/BUILD/foo-bar-root $ find . -name 'pom.xml' -print -exec perl -ne 'BEGIN {my @k;} if (// ... /<\/plugin>/) { push @k, $_; } else { @k=undef;}; if (@k and grep {/<\/plugin>/} @k and grep {/pmd/} @k ) {print join("",@k);@k=undef} ' {} \; -print
Adding XmlRootElement
<plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.7.4</version> <executions> <execution> <id>generate-domain1</id> <goals> <goal>generate</goal> </goals> <configuration> <strict>true</strict> <schemaDirectory>src/main/schema</schemaDirectory> <schemaIncludes> <value>*.xsd</value> </schemaIncludes> <bindingIncludes> <include>bindings.xjb</include> </bindingIncludes> <verbose>true</verbose> <extension>true</extension> <args> <arg>-Xannotate</arg> </args> <generateDirectory>${project.build.directory}/generated-sources/xjc</generateDirectory> <plugins> <plugin> <groupId>org.jvnet.jaxb2_commons</groupId> <artifactId>jaxb2-basics</artifactId> <version>0.6.0</version> </plugin> <plugin> <groupId>org.jvnet.jaxb2_commons</groupId> <artifactId>jaxb2-basics-annotate</artifactId> <version>0.6.0</version> </plugin> </plugins> </configuration> </execution> </executions> </plugin>
XJC XmlRootElement and SOAPAction, WebServiceTemplate spring-ws
If you want to create client stubs by means of spring-ws and you do not have the notation of the @Endpoint and @Payload definitions it is sometimes problematic getting the right SOAPAction and XmlRootElement defined.
The first try you can generate with the xjc:simple binding
Generating the @XmlRootElement("something")
The first try you can generate with the xjc:simple binding
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" version="2.0" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:annox="http://annox.dev.java.net" jaxb:extensionBindingPrefixes="xjc annox"> <jaxb:globalBindings> <xjc:simple /> </jaxb:globalBindings> <!-- FILE: PickupAudit.xsd --> <jaxb:bindings schemaLocation="PickupAudit.xsd" node="/xs:schema"> <jaxb:bindings node="xs:complexType[@name='PickupAudit']"> <annox:annotate> <annox:annotate annox:class="javax.xml.bind.annotation.XmlRootElement" name="PickupAudit" /> </annox:annotate> </jaxb:bindings> <jaxb:bindings node="xs:complexType[@name='PickupAuditType']"> <annox:annotate> <annox:annotate annox:class="javax.xml.bind.annotation.XmlRootElement" name="PickupAudit" /> </annox:annotate> </jaxb:bindings> </jaxb:bindings> </jaxb:bindings>
Generating the @XmlRootElement("something")
<plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.7.4</version> <executions> <execution> <id>generate-domain1</id> <goals> <goal>generate</goal> </goals> <configuration> <strict>true</strict> <schemaDirectory>src/main/schema</schemaDirectory> <schemaIncludes> <value>*.xsd</value> </schemaIncludes> <bindingIncludes> <include>bindings.xjb</include> </bindingIncludes> <verbose>true</verbose> <extension>true</extension> <args> <arg>-Xannotate</arg> </args> <generateDirectory>${project.build.directory}/generated-sources/xjc</generateDirectory> <plugins> <plugin> <groupId>org.jvnet.jaxb2_commons</groupId> <artifactId>jaxb2-basics</artifactId> <version>0.6.0</version> </plugin> <plugin> <groupId>org.jvnet.jaxb2_commons</groupId> <artifactId>jaxb2-basics-annotate</artifactId> <version>0.6.0</version> </plugin> </plugins> </configuration> </execution> </executions> </plugin>
Wednesday, August 15, 2012
Zip up my logfiles between 10 and 15 days old from a remote host...
Sledgehammering the logs archiving for perticular days and using zip... Tar always gives me a headache because of the -c vs -u option... why can't it just create the tar... anyway with zip its smoother and "smaller"!!
$ cat list | xargs -i% -t ssh % 'find ./logs/ -mtime +10 -mtime -15 -exec zip -@ /tmp/my.zip "{}" \; -print 'Where list contains
me@host1 me@host2 me@host3
Subscribe to:
Posts (Atom)