How to Secure a Web Application Through the App Server Container
There are many benefits to allow a container in managing users, groups and authentication policies. You may configure your WAR application to take advantage of...
View ArticleHow to Use SSH Tunneling to Get to Your Restricted Servers
Have you ever been told that in your network serverX can only be reached by a serverY via SSH? Now you have access to serverY from your own PC with normal SSH...
View ArticleHow to Setup Custom SSLSocketFactory's TrustManager per Each URL Connection
We can see from javadoc that javax.net.ssl.HttpsURLConnection provided a static method to override withsetDefaultSSLSocketFory() method. This...
View ArticleHow Servlet and JSP Create Sessions
In Servlet, you may get the Session object by "httpServletRequest.getSession(true)". The "true" flag will create the session if it doesn't already exist, else...
View ArticlePoking Around Your REST Application with a Scriptable Endpoint
I love the fact that JDK comes with a ScriptEngine. It's so flexible when you want to evaluate and troubleshoot your application that's already deployed in an...
View ArticleBook Review: Apache Camel Developer's Cookbook
I got a chance to review the "Apache Camel Developer's Cookbook" by Cranton and Korab. Overall I think this is a great book. System integration problems and...
View ArticleDeploying Applications or Libraries to WebLogic Server Using Command Line
Here is how you can automate deployment for WebLogic server using the command line.First source the env settings from the server:$ source...
View ArticleWebLogic Shared Library Deployment
When deploying a large WAR file application, it would be more easier to manage if we can separate the dependency jars away from the rest of the Web content; or...
View ArticleGetting Django Started on Windows 7 with Python 3 and MySQL 5.6
Django is a Python web framework library and it works on both Python 2 or 3. I will show you how to get python 3 set up in Cygwin environment. If you're on a...
View ArticleHow to Initialize a New MySQL Installation and Create New Database
For a freshly installed MySQL server, you would need to initialize the system tables and data directory like this: cd mysql-<version> ...
View ArticleA Simple MySQL Daily Backup Script
Using the MySQL export script I've showed from the last post (assuming you saved it in a file named "$HOME/database-export.sh"), you may now perform a daily...
View ArticleHow to Export and Import MySQL Databases
You can export the MySQL database with schema table definitions and data separated. Here is a simple bash shell script that will export an database. #...
View ArticleUsing crontab to Startup Service
Did you know that crontab service has the "@reboot" schedule that would start a script during your system startup time? This is handy if you want something to...
View ArticleA Simple Cron Wrapper Script With Logging
When working with crontab service, one thing I often need is to capture the output of the job. Having the job script aware of this output and logging is...
View ArticleHow to Enable MySQL Query Monitoring
Do you need to monitor any SQL statements passing through your MySQL server? You would need to turn on the server logging. Edit your my.cnf file and add...
View ArticleBe Careful with Java Path.endsWith(String) Usage
If you need to compare the java.io.file.Path object, be aware that Path.endsWith(String) will ONLY match another sub-element of Path object...
View ArticleHow to Setup Remote Debug with WebLogic Server and Eclipse
Here is how I enable remote debugging with WebLogic Server (11g) and Eclipse IDE. (Actually the java option is for any JVM, just the instruction here is WLS...
View ArticleHow to Reset WebLogic admin Server Password
If you forgot your admin user password for WebLogic, you can reset it this way. Ensure you are in the domain directory first! source...
View ArticleCreating Your Own Loop Structure in Java 8 Lambda
Java doesn't have an easy construct of repeat something N number of times. We can make a for loop of course, but many times we don't even care about the...
View ArticleHow to process stream and read text file in Java 8
I have converted one of my old utility class using latest Java8. I use this often to print content of manifest file to check any mysterious jar file for...
View Article