Sunday, August 19, 2012

create database , user and grant priviliges on MySQL?

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| portaldb           |
| test               |
+--------------------+
4 rows in set (0.01 sec)

mysql> create database schooldb;
Query OK, 1 row affected (0.01 sec)

mysql> create user suser@'localhost' identified by 'suser123';
Query OK, 0 rows affected (0.06 sec)

mysql> grant all on scholldb.* to suser@'localhost';
Query OK, 0 rows affected (0.02 sec)


Monday, August 13, 2012

what are the web service runtime environments available in IBM WAS Server?

Web services runtime environments

Three runtime environments are available in which Web services can run. Each environment supports different servers and standards.
The following runtime environments are supported for Web service generation: The IBM WebSphere JAX-WS runtime environment is the strategic Web services runtime supported by IBM. The IBM WebSphere JAX-RPC runtime is a legacy environment which is still supported, however new applications should use JAX-WS whenever possible. The Apache Axis 1.4 runtime is an open source runtime supported by the tools, however it is not recommended for use in a production environment.
 
 
IBM WebSphere JAX-RPC
WebSphere Application Server v5.0, v5.1, v6.0, v6.1.
Apache Axis 1.3
Apache Tomcat v4.0,.v4.1,.v5.0, v5.5. WebSphere Application Server v5.0, v5.1, v6.0, v6.1.

The following runtime/server configurations are supported:
IBM WebSphere JAX-WS
WebSphere Application Server v6.1.1.3 or later with the Feature Pack for Web Services installed, or WebSphere Application Server v7.0 or v8.0.
IBM WebSphere JAX-RPC
WebSphere Application Server v6.0, v6.1, v7.0, v8.0.
Apache Axis 1.4
Supported on all servers supporting servlet API 2.3 or higher. This includes but is not limited to: Apache Tomcat v4.x,.v5.x, v6.0. WebSphere Application Server v6.0, v6.1, v7.0.

Thursday, July 26, 2012

How DWR sends engin.js & Util.js to clent browser?

1. When We are using DWR framework  we include engine.js , Util.js and our application specific js files in JSPs like this

Ex:

<%-- DWR script : added in center tile as these scripts are generated at run time--%>
       
       
       
<%-- DWR script --%>


2. if you look at our WEB-INF folder or WAR file we dont see engine.js or utils.js

3. These files are inside dwr.jar file which we calls DWR frawework. DWRServlet serves these JS files from JAR when request comes from browser

4. when browser requested engins.js ,  request goes into DWR Servlet


Web.xml



   
        dwr-invoker
        /dwr/*
   

   





Browser Request:

https://www.mysite.com/MYWEBAPP/dwr/engine.js




5. We can look at src code of DWR Frawework




package org.directwebremoting.servlet;

/**
 * A Handler that supports requests for engine.js
 * @author Joe Walker [joe at getahead dot ltd dot uk]
 */
public class EngineHandler extends BaseEngineHandler
{
    // File is served without additions so all code is in superclass
}










**
 * A Handler that supports requests for engine.js
 * @author Joe Walker [joe at getahead dot ltd dot uk]
 */
public class BaseEngineHandler extends FileJavaScriptHandler
{
    /**
     * Setup the default values
     */
    public BaseEngineHandler()
    {
        super(DwrConstants.PACKAGE_PATH + "/engine.js", DwrConstants.PACKAGE_PATH + "/copyright.txt");
    }
...
}




6. Obviously calculator.js is generated at run time by DWR Servlet and serves to browser


So Don't worry about engine.js / util.js in your web application folder

Sunday, July 22, 2012

Zodic signs - Rashulu

BIRTHSTAR - SIGN TABLE
Group of birth stars
Sign / Raasi
Aswani, Bharani & krithika 1st charan
ARIES / MESHA
Krithika 2,3,4 charans, Rohini & Mrugasira 1,2 charanas
Mrugasira 3,4 charanas, Arudra & Punarvasu 1,2,3 charanas
Punarvasu 4th charana, Pushyami & Aslesha
Magha, Purva phalguni& Uttara 1st charana
Uttara 2,3,4 charana, Hastha & Chittra 1,2 charana
Chittra 3,4 charana, Swathi & Vishaka 1,2,3 charanas
Vishaka 4 charana, Anuradha & Jyesta
Moola , Purvashada & Uttarasada 1 st charana
Uttarashada 2,3,4 charana ,Sravanam& Dhanitshta 1,2 charana
Dhanitshta 3,4 charana, Satabhisham& Purvabhadra 1,2,3 charana
Purvabhadra 4th charana, Uttarabhadra & Revathi
BIRTHDAY - SIGN TABLE
Birth Date & month
SIGN or RASI
MARCH 21 to APRIL 20
APRIL 21 to MAY 21
MAY 22 to JUNE 21
JUNE 22 to JULY 23
JULY 24 to AUGUST 23
AUGUST 24 to SEPTEMBER 23
SEPTEMBER 24 to OCTOBER 23
OCTOBER 24 to NOVEMBER 23
NOVEMBER 24 to DECEMBER 22
DECEMBER 23 to JANUARY 22
JANUARY 23 to FEBRUARY 20
FEBRUARY 21 to MARCH 20
PISCES / MEENA

Saturday, June 30, 2012

Ant Print Environment variables

Print environment variables C:\Liferay-Portal-Standalone\software\printenvs>ant Buildfile: C:\Liferay-Portal-Standalone\software\printenvs\build.xml print: [echo] env CLASSPATH IS = .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip [echo] env COMPUTERNAME IS = SURESH-PC [echo] env HOSTNAME IS = ${env.HOSTNAME} [echo] env name IS = ${env.name} [echo] user name IS = suresh BUILD SUCCESSFUL Total time: 0 seconds C:\Liferay-Portal-Standalone\software\printenvs>