- Use firefox plugin for selenium to
- record in firefox
- Export test case as Java JUnit class
- Start Selenium standalone server
- C:\apps\selenium>java -jar selenium-server-standalone-2.28.0.jar
- Import test case into Java project
- Add jars in C:\apps\selenium\selenium-2.28.0\libs to JUnit test classpat
- Run Junit test
This blog contains Java J2EE project code examples, ideas and answers to frequently asked questions on various J2EE related technologies
Friday, February 01, 2013
Testing using Selenium, Eclipse, JUnit
GoF Design Patterns
Creational Patterns
- Abstract Factory
- Builder
- Factory Method
- Prototype
- Singleton
Structural Patterns
- Adapter
- Bridge
- Composite
- Decorator
- Façade
- Flyweight
- Proxy
Behavioral Patterns
- Chain of Responsibility
- Command
- Interpreter
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Template Method
- Visitor
Thursday, January 31, 2013
Axis 2 webservices in WebLogic 10.3.4
Wednesday, February 09, 2011
CPUs, Virtual Processors, Cores
To simply display the number of Physical processors, simply run the command with the -p option as follows:
root@sunserver # psrinfo -p
2 --> where 2 implies that there are 2 physical processors installed on the system.
If you would like to check the number of Virtual Processors on each of these Physical processors then type the command with the “-pv” arguement as follows:
root@ server:/root$ uname -a
SunOS server 5.10 Generic_137111-02 sun4v sparc SUNW,SPARC-Enterprise-T5120
root@server:/root$ psrinfo -pv
The physical processor has 32 virtual processors (0-31)
UltraSPARC-T2 (cpuid 0 clock 1165 MHz)
The above indicates that there was only one physical processor (UltraSPARC-T2) on the T5120 server which has 32 Virtual processors. Each virtual processor is an entity with its own interrupt ID, capable of executing independent threads.
In simple terms, the number of Virtual Processors supported by a physical CPU is
“Number of Core” x “Number of threads”
For instance, the above is on a T5120 server with the UltraSPARC-T2. This CPU has 4 cores and each core can support 8 threads and that gives us 32 Virtual processors.
The number of Virtual processors on a Server is simply the total Virtual processors supported on each of the physical processor.
In the following T5140 server there are 2 Physical UltraSPARC-T2+ processors with 6 cores, each supporting 8 threads which means we get 48 Virtual processors per Physical processor and hence a total of 96 Virtual processors (sum of VPs on individual processors) for the server:
root@ bserver:/root$ uname -a
SunOS bserver 5.10 Generic_137111-02 sun4v sparc SUNW,T5140
root@ bserver:/root$ psrinfo -pv
The physical processor has 48 virtual processors (0-23 32-55)
UltraSPARC-T2+ (cpuid 0 clock 1167 MHz)
The physical processor has 48 virtual processors (64-71 80-119)
UltraSPARC-T2+ (cpuid 64 clock 1167 MHz)
In earlier versions of Solaris, the -p arguement is not supported and hence wouldn’t provide this summarised output on the counts of the physical and Virtual CPUs.
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
What is RowSet?
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
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 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();