Search This Blog

Saturday, April 18, 2015

Hybrid Enterprise Architecture Framework

Do you know that Hybrid Enterprise Architecture Framework is influenced by ...

a)     TOGAF (The Open Group Architecture Framework)
b)     FEA (Federal Enterprise Architecture)
c)     Gartner Methodology

Friday, April 17, 2015

QoS Matters

Here are some factors that contribute to QoS (Quality of Service).
  • System architecture
  • Data resource layout
  • Utilization profiles
  • Load factors
Any thoughts?

Thursday, April 16, 2015

It is about Integration

Do you agree that integration must consider every part of Enterprise system i.e. hardware, software, processes and architecture.

  • Yes
  •  No

Wednesday, April 15, 2015

Web Service Security

Here are some XML based Security schemes for Web Services... Can you add something more to this?

XML Encryption
XML Signatures
XACML (Extensible Access Control Markup Language)
SAML (Security Assertion Markup Language)



Tuesday, April 14, 2015

Web Service Security - A Question

SSL provides transport as well as message level security for web Services.
  • True
  •  False

Monday, April 13, 2015

Just a Question - Integration

You have created a stateless session bean for distributed logic. You want to access this EJB from Non-Java  client. You want to create a single reusable solution

  •          Create a Non-Java component with required Technology
  •              Expose it as a web service
  •              Other ( if you answer other… specify, what would you like to do…)

Friday, April 10, 2015

AtomicOperations

Atomic operations are singular ( an operation that cannot be stopped in between). Just like a transaction, it happens completely or does not happen at all. The operations that are atomic :
  1. Read and write for reference variables
  2. Read and write for byte, short, int, char, float, and Boolean
  3. Read and write for all variables declared with the volatile qualifier ( this includes all primitive types)
Operations like increment and decrement look like atomic operations, but there is no guarantee that they are atomic. As any increment operation x++ can be a group of three operations
a)      Temporary copy of x will be created
b)      Temporary copy will be incremented
c)       Newly incremented value will be written back to variable x

Variables of datatype double and long are 64-bit and can be accessed by 2 32-bit operations. During concurrent programming, this can compromise the integrity of data. Java.util.concurrent provides atomic APIs to solve this problem. Let us take a look at an example:

package atomicops;

import java.util.concurrent.atomic.AtomicLong;

/**
 *
 * @author Nancy
 */
public class TestAtomicLong {
    public static void main(String[] args) {
        AtomicLong myLong= new AtomicLong(25);
     
        long x = myLong.getAndAdd(20);
        System.out.println("x ="+x);
        x=myLong.get();
        System.out.println("x ="+x);
     
        x = myLong.addAndGet(30);
        System.out.println("x ="+x);
     
        boolean b = myLong.compareAndSet(75,100);
        System.out.println("b ="+b);
        x=myLong.get();
        System.out.println("x ="+x);
     
        x= myLong.incrementAndGet();
        System.out.println("x="+x);
     
         x= myLong.decrementAndGet();
        System.out.println("x="+x);
    }  
}

Output :
x =25
x =45
x =75
b =true
x =100
x=101
x=100

Other Atomic operation classes are : 

©Nancy
11th April, 2015
2:34 am