Monday, November 22, 2010

SOA



http://www.infoq.com/resource/articles/applied-soa/en/resources/Applied-SOA.pdf

Legacy
Applications are built with internal logic to call each remote application/service they need to use. Kind of point to point integrations. With this approach, there are proprietery APIs, custom integration links and tight coupling of data and implementation

EAI
Connectivity between each application is based on middleware or message bus using EAI vendor's API which is proprietery





Wednesday, November 03, 2010

Example of WS-Security

Public Key Infrastructure

Quartz - Scheduling jobs in java

Mock Objects

What is RowSet?

A ResultSet maintains a connection to a database and because
of that it can’t be serialized and also we cant pass the
Resultset object from one class to other class across the
network.

RowSet is a disconnected, serializable version of a JDBC
ResultSet and also the RowSet extends the ResultSet
interface so it has all the methods of ResultSet. The RowSet
can be serialized because it doesn’t have a connection to
any database and also it can be sent from one class to
another across the network.

Popular default ports

7 Echo request
20/21 File Transfer Protocol (FTP)
23 Telnet
25 Simple Mail Transfer Protocol (SMTP)
53 Domain Name Server
80 HTTP Server
1512 Database
1099 JNDI
1100 RMI

Threadlocal

This class provides thread-local variables. These variables differ from their normal counterparts in that each thread that accesses one (via its get or set method) has its own, independently initialized copy of the variable. ThreadLocal instances are typically private static fields in classes that wish to associate state with a thread (e.g., a user ID or Transaction ID).

This class allows you to put local data on a thread, so that every module running in the thread can access it

public class MyService {

private static ThreadLocal tLocal = new ThreadLocal();

public static void set(List list) {
tLocal.set(list);
}

public static List get() {
return (List) tLocal.get();
}

Client:

MyService.set(list);
.......
list = MyService.get();