Reference Cards (Cheats Sheets) Collection Update.
Reference cards (cheat sheets) collection.
- Actionscript – The permanent link to cards: Actionscript cards.
- Ada – The permanent link to cards: Ada cards.
- Admintools – The permanent link to cards: Admintools cards.
- Agile – The permanent link to cards: Agile cards.
- Ajax – The permanent link to cards: Ajax cards.
- Apache – The permanent link to cards: Apache cards.
- C, Cplusplus, C_ – The permanent link to cards: C, Cplusplus, C_ cards.
- Cheatography – The permanent link to cards: Cheatography cards.
- ControlVersionSystems – The permanent link to cards: ControlVersionSystems cards.
- CSS – The permanent link to cards: CSS cards.
- DesignPatterns – The permanent link to cards: DesignPaterns cards
- DZoneReferenceCards – The permanent link to cards: DZone Reference cards.
- Google – The permanent link to cards: Google cards.
- HTML,SHTML,XHTML – The permanent link to cards: HTML cards.
- Infographics – The permanent link to cards: Infographics cards.
- Java – The permanent link to cards: Java cards.
- JavaScript – The permanent link to cards: JavaScript cards.
- JQuery – The permanent link to cards: JQuery cards.
- Makeuseof – The permanent link to cards: Makeuseof cards.
- Microsoft and DreaminCode – The permanent link to cards: Microsoft cards.
- MySQL – The permanent link to cards: MySQL cards.
- OpenERP – The permanent link to cards: OpenERP cards.
- Oracle – The permanent link to cards: Oracle cards.
- OracleSOA – The permanent link to cards: OracleSOA cards.
- Others – The permanent link to cards: Other cards.
- Perl – The permanent link to cards: Perl cards.
- Php – The permanent link to cards: Php cards.
- Python – The permanent link to cards: Python cards.
- Regular Expressions – The permanent link to cards: Regular Expressions cards.
- RSS – The permanent link to cards: RSS cards.
- Ruby – The permanent link to cards: Ruby cards.
- Stl – The permanent link to cards: Stl cards.
- UML – The permanent link to cards: UML cards.
- Unix and Linux – The permanent link to cards: Unix and Linux cards
- VisiBone Reference Cards – The permanent link to cards: VisiBone cards
- Web Design – The permanent link to cards: Web Design cards.
- WordPress – The permanent link to cards: WordPress cards.
- XML – The permanent link to cards: XML cards.
- XSLT and XPath – The permanent link to cards: XSLT and XPath cards
JEE apps with Maven and WebLogic 12c
The WebLogic Server 12c has very nice support for Maven now.
The doc for this is kinda hidden though, so here is a direct link http://docs.oracle.com/middleware/1212/core/MAVEN To summarize the doc, Oracle did not provide a public Maven repository manager hosting for their server artifacts. However they do now provide a tool for you to create and populate your own. You can setup either your local repository (if you are working mostly on your own in a single computer), or you may deploy them into your own internal Maven repository manager such as Archiva or Nexus.
Here I would show how the local repository is done. First step is use a maven plugin provided by WLS to populate the repository. I am using a MacOSX for this demo and my WLS is installed in $HOME/apps/wls12120. If you are on Windows, you may install it under C:/apps/wls12120.
1 2 3 | $ cd $HOME/apps/wls12120/oracle_common/plugins/maven/com/oracle/maven/oracle-maven-sync/12.1.2/ $ mvn install:install-file -DpomFile=oracle-maven-sync.12.1.2.pom -Dfile=oracle-maven-sync.12.1.2.jar $ mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=$HOME/apps/wls12120 -Doracle-maven-sync.testingOnly=false |
The artifacts are placed under your local $HOME/.m2/repository/com/oracle. Now you may use Maven to build Java EE application with these WebLogic artifact as dependencies. Not only these are available, the push also populated some additional maven plugins that helps development more easy. For example, you can generate a template project using their archetype plugin.
1 2 3 4 5 6 7 8 | $ cd $HOME $ mvn archetype:generate \ -DarchetypeGroupId=com.oracle.weblogic.archetype \ -DarchetypeArtifactId=basic-webapp \ -DarchetypeVersion=12.1.2-0-0 \ -DgroupId=org.mycompany \ -DartifactId=my-basic-webapp-project \ -Dversion=1.0-SNAPSHOT |
Type ‘Y’ to confirm to finish. Notice that pom.xml it generated; it is using the “javax:javaee-web-api:6.0:provided” dependency. This is working because we setup the repository earlier. Now you may build it
1 2 | $ cd my-basic-webapp-project $ mvn package |
After this build you should have the war file under the target directory. You may manually copy and deploy this into your WebLogic server domain. Or you may continue to configure the maven pom to do this all with maven. Here is how I do it. Edit the my-basic-webapp-project/pom.xml file and replace the weblogic-maven-plugin plugin like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <plugin> <groupId>com.oracle.weblogic</groupId> <artifactId>weblogic-maven-plugin</artifactId> <version>12.1.2-0-0</version> <configuration> <middlewareHome>${oracleMiddlewareHome}</middlewareHome> <adminurl>${oracleServerUrl}</adminurl> <user>${oracleUsername}</user> <password>${oraclePassword}</password> <source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source> <targets>${oracleServerName}</targets> <verbose>true</verbose> <name>${project.build.finalName}</name> </configuration> </plugin> |
With this change, you may deploy the webapp into WebLogic server (well, assuming you already started your “mydomain” with “myserver” server running locally. See my previous blog for instructions)
1 2 | $ cd my-basic-webapp-project $ mvn weblogic:deploy -DoracleMiddlewareHome=$HOME/apps/wls12120 -DoracleServerName=myserver -DoracleUsername=admin -DoraclePassword=admin123 |
After the “BUILD SUCCESS” message, you may visit the http://localhost:7001/basicWebapp URL.
Revisit the WLS doc again and you will find that they also provide other project templates (Maven calls these archetypes) for building EJB, MDB, or WebService projects. These should help you get your EE projects started quickly.
WebLogic Server Monitoring and Tuning.
WebLogic Server Monitoring and Perfomance Tuning.
WebLogic Server 11G Admin Essentials.
WebLogic Server 11G Administration Essentials.