Entries from July 2008

Security Audit, NSDG

July 27, 2008

Security Audit is just finished and we are awaiting STQC’s green signal for it. The Major issue identified last time was the sql injection. Which was corrected on time and they did not find any significant security threat. The security audit was required by NIC, before they provide us public IP. Second level hardening is […]

“Pride of Hyderabad” be pride of the Nation too!

July 27, 2008

“Pride of Hyderabad” be pride of the Nation too. Learn the importance of the national flag. There are some rules to handle it and hoisting it. You have no right to humiliate the national flag. See the dirty fainted and torn national flag in front of the “Pride of Hyderabad” a hotel and restaurant near […]

SQL Injection

July 26, 2008

The first time the term SQL Injection I have came to known by our testing team in our current project. At the time of testing, our application was found to be vulnarable for SQL Injection. And we removed this vulnaberability by whitelisting input validation.
SQL Injection
A client can inject sql query to the input data to […]

Control C

July 14, 2008

Why we have common commands for two or more things?
When I have to copy something from the console of the JBoss server I do Ctrl+C, as I have the habit of “Ctr+c” for copying. Errrrrrrrrrr………………… and the server stops.

addthis_url = ‘http%3A%2F%2Franjankumar.com%2F2008%2F07%2F14%2Fcontrol-c%2F’;
addthis_title = ‘Control+C’;
addthis_pub […]

Stateful SessionBean (EJB3) on JBoss AS 5.0.0.CR1

July 13, 2008

As with stateless Session Bean there was no big deal in deploying the stateful Session Bean on JBoss AS 5.0.0.CR1, also.
2) Stateful Session Bean
ShoppingCart.java

1
2
3
4
5
6
7
8
9
10
11
12
package com.example.bean;
 
import java.util.HashMap;
import javax.ejb.Remove;
 
public interface ShoppingCart {
void buy(String product, int quantity);
 
HashMap<String, Integer> getCartContents();
 
@Remove void checkout();
}

ShoppingCartBean.java

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.example.bean;
 
import java.io.Serializable;
import […]