Technology Spotlight Sharing knowledge and experience…

Payday loans
6Aug/120

Java concurrency/multithreading using ExecutorService

Today i was reading about ExecutorService and found very interesting so posting this after long time. ExecutorService provide thread pool feature to execute asynchronous short task. There are many ways to execute tasks asynchronously using ExecutorService interface. Below are some of the ExecutorService classes that i used in my example:

ExecutorService execService = Executors.newCachedThreadPool();

Above methods creates a thread pool that creates new threads as needed but it will reuse existing thread to improve the performance. If no thread is available then it will create new thread and the threads that are not being used for 60 seconds will be terminated and removed from cache.

ExecutorService execService = Executors.newFixedThreadPool(5);

Above methods creates a thread pool that reuses a fixed number of threads. n number of threads will be active at the runtime and if additional tasks are submitted when all threads are active then the new task will wait in the queue until a thread is available.

ExecutorService execService = Executors.newSingleThreadExecutor();

Above methods creates an Executor that uses a single worker thread operating off an unbounded queue. In this approach Tasks are guaranteed to execute sequentially and no more than a one task will be active at any given time.

24May/110

Hudson Build Automation and Continuous integrations tools

Hudson is nice continuous integration tools for automated testing and deployment...they have plugins for almost everything and they all are ready use...Hudson is open source so no monetary investment, modest to low time investment to set up and maintain, Good integration of various Build-Runners, where missing Plug-In System and finally Good UI.

See the detail on http://hudson-ci.org/

Filed under: Miscellaneous No Comments

mikser mix robi 381.61sl cena

  • zelmer pelikan 333
  • odkurzacz zelmer solaris twix 5500 3 hq

    voyager twix 01z014 worki

  • odkurzacz zelmer solaris twix 5500.0 hq
  • szatkownica diana
  • zelmer multi robi. typ 885
  • odkurzacz zelmer clarris twix 2750.0 sp cena or shapefile or situational or mistaken or boul or conjoined or sunl or passage or parelli or activo or taupo or metales

  • lockout dvdrip torrent tpb
  • odkurzacz zelmer solaris twix 5500.3 hq
  • zelazko gusto zelmer
  • robot kuchenny zelmer 878 expressive line
  • solaris twix 5500.0 ht cena
    zelmer aquos 829.st opinie
    odkurzacz voyager twix 01z014 st opinie
    drager parat 4500 industrial escape hood
    mix robi 381.61sl
  • 01z014st voyager twix
  • robot talent 881.2 grafit

    zelmer 877 expressive prymus

    czy polska firma

    Lucas smirked as his eyes flicked down to the paltry means of protection and back to Michael. Lucas Elsa, enough I already told you, there is no need.
    odkurzacz solaris twix 5500 0ht

    zelmer clarris twix 2750.0 st opinie

  • zelmer navigator quality 28z022 cena

  • mikser zelmer robi 281.64 miksery
  • manual utilizare masina paine zelmer
  • interesting facts fanny mendelssohn hensel
  • http www zelmer pl

    odkurzacz zelmer clarris twix 2750.0 sp
    17Nov/091

    Axis2 username/password Authentication

    I was calling the username/password authentication enabled web service from axis2 client. To pass the username and password to request header I was looking for solution and found many ways to pass username and password to header like rampart, OMElement using java code:

    Below is some code snippet that shows how to pass username and password to service call:

    15Feb/090

    JAAS Authentication for Web-Application with Jboss and enable SingleSignOn

    A few days ago I was proposed to develop a POC for JAAS Authentication for Web-Application with jobs. After searching for the required configuration to implement a JAAS based security on JBoss, I couldn’t find anything useful.

    It took a while for me to find all the required setting and run my project under JAAS technology on the Jboss application server, so I decided to share my knowledge and document it, hope to be useful for somebody.

    This document will help you to configure Jaas Authentication for Web-Application on Jboss Application Server as well as will help you in enabling SingleSignOn.

    Below are the steps to configure jaas Authentication for Web-application on jboss:

    Step-1: Define a new application policy in login-config.xml (C:\Software\jboss-4.2.3.GA\server\default\conf\login-config.xml)

    To define an application policy, you need to modify login-config.xml to add the application policy: Below is the example policy.

    zelmer clarris 2700.0 sp opinie

  • robot kuchenny zelmer talent 881.2 expressive
  • zelmer 5500.0 ht solaris twix

    paleta masina paine zelmer

    zelmer voyager twix 01z014 sk ceneo
    zelmer alexis 493.6- wymiary
    5500.0 ht solaris twix
  • zelmer solaris twix 5500.3 ht
  • 01z010 galaxy ii recenzie
  • odkurzacz zelmer voyager twix 01z014 st opinie
  • robot kuchenny mikser zelmer

    odkurzacz clarris 2700 st
  • Despite the fact that it upset Megan to have the animal nearby, he figured she d get over the ring incident soon enough. He did not prove much of an escort, if I do say so, my lady.
  • zelmer mix robi 381.7 grafit

    odkurzacz zelmer solaris twix 5500.3 ht fiolet

    mikser kuchenny zelmer ceny
  • filtr hepa mycie
  • odkurzacz zelmer clarris twix 2750.0
    zelmer alexis 493.6- wymiary
  • zelmer solaris twix 5500.0 hq opinie
  • zelmer vacuum cleaner bags
  • zelmer 01z010 galaxy ii recenzia

  • odkurzacz solaris twix

  • mix robi 381 61 sl
  • She flushed, It s no one s fault, because I m fine really.

    odkurzacz zelmer aquos cena

    odkurzacz zelmer 01z014sk voyager twix
  • odkurzacz zelmer clarris twix 2750.0 sp czarno-niebieski
  • szatkownica do maszynki zelmer diana
    He never thought that she would see him in this state so soon. She swiftly hooked her arm through his before he changed his mind and gave him a triumphant smile, Thank you.

  •  solaris twix 5500.0 ht
  • worki do zelmer voyager twix
  • mikser zelmer mix robi 381.7 expressive
    filtr wylotowy hepa
    <application-policy name = "web-console">

    <authentication>

    <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"

    flag = "required">

    <module-option name="usersProperties">props/web-console-users.properties</module-option>

    <module-option name="rolesProperties">props/web-console-roles.properties</module-option>

  • odkurzacz 5500.0ht malachit
  • odkurzacz solaris twix instrukcja
  • krajalnica zelmer alexis 493.6 metalik
  • zelmer solaris twix 5500.3 ht fioletowy
  • mikser robi 381.61 opinie
    zelmer expressive 477.a opinie

    Oh Jesus, he grabbed her arm, Did I do that?

    zelmer mix robi 381.7 expressive

    odkurzacz solaris twix 5500.0 hq opinie
  • He handed her a glass of liquid, Drink this, it ll help flush the drugs from your system.
  • odkurzacz solaris twix 5500 0ht

  • solaris twix 5500.3 hq
  • zelmer clarris twix 2750.0 st
  • Buddy? she asked as she made her way to the parlor. She d just finished pinning the last delinquent curl when the knock came at the door.
    odkurzacz voyager twix 01z014 st turboszcz
    mikser mix robi 381.61sl opinie
    frytkownica zelmer 04z010 opinie

    odkurzacz wodny aquos 829.5 sk

    zelmer solaris twix 5500.0 ht opinie

  • sutton's house hornchurch
  • odkurzacz zelmer voyager twix 01z014 st bezworkowy

    zelmer solaris twix 5500.0 ht instrukcja

    odkurzacz solaris twix 5500.3 hq pilot

  • zelmer voyager twix 01z014 sk worki
  • zelmer mix robi 381.61 skapiec

  • zelmer voyager twix 01z014 st opinie
  • zelazko gusto zelmer

    frytkownica opinie

  • masina de paine pareri
  • hepa 13 zelmer syrius
  • </login-module>

    </authentication>

    </application-policy>

    29Dec/084

    Single Sign On (SSO) using JBoss and SAML

    In this article I am going explain SSO and how to setup SSO in JBoss.

    Single Sign On (SSO) is a specialized form of user authentication that enables a user to be authenticated once, and gain access to resources on multiple systems/web applications during that session.

    The JBoss SSO framework is combination of three components:

    1. Federation Server

    2. Token Marshalling Framework

    3. Identity Connector Framework

    Following are the steps to setup JBoss SSO:

    Step-1: Installation

    Download JBoss from here : Download

    Unzip/Untar the distribution on your machine e.g.: C:/jboss

    ekspres do kawy przelewowy zelmer

  • zelmer 01z014st voyager twix

  • zelmer 829.0st aquos opinie

  • robot kuchenny talent 881.2 ceneo
  • zelmer solaris twix 5500.0 ht ceneo

  • mikser zelmer robi 381.61 opinie
  • blau varadero nightlife
  • odkurzacz solaris twix 5500.0 hq
  • huisje terschelling last minute
  • odkurzacz zelmer solaris twix 5500.0 ht niebieski

    cantar de baie zelmer 34z010

    odkurzacz zelmer solaris twix

  • zelmer mix robi 381.7 grafit
  • masina de paine zelmer manual

    odkurzacz zelmer 01z014st voyager twix

    odkurzacz solaris twix 5500.3 hq

    walrus yoga pose

    situasi pengangkutan awam di malaysia
  • zelmer solaris twix 5500.0 ht instrukcja
  • odkurzacz zelmer solaris twix 5500.3 hq opinie

    mikser zelmer mix robi 381.7 symbio

    mix robi 381.61sl ceneo

    mikser zelmer mix robi 381.61 cena

    zelmer 01z010 galaxy ii recenzia
  • zelmer solaris twix 5500.0 ht moc ssania
  • mikser zelmer mix robi 381.61sl

    zelmer s.a. polska

     galaxy 01z010 filtry

    odkurzacz zelmer clarris twix 2750.0 sp opinie
    Download JBoss Federated SSO from here : Download

    Unzip/Untar the distribution on your machine egg C:/Jboss Federated SSO

    Copy the jboss-sso.sar and jboss-federation-server.ear file from the C:/Jboss Federated SSO /components/jboss_federation_server*/bin directory to the deploy directory of your JBoss Application Server

    11Oct/080

    Spotlight on Next Big Thing: Cloud Computing

    I have been following cloud computing for quite some time. I read about it from various sources to gain some insight into it from the common man’s point of view. Many computer savvy are still unaware of what it actually is, and how it could change the way we interact with computer and internet. Finally Cloud computing is a computing paradigm in which tasks are assigned to a combination of connections, software and services accessed over a network. The network of servers and connections is collectively known as "the cloud". Or we can say cloud computer is internet-based computing device.

     

  • odkurzacz solaris twix 5500 opinie
  • mikser zelmer robi 381.61 srebrny

    paleta masina facut paine zelmer

    krajalnica zelmer alexis 493.6 sl opinie
  • zelmer 477 a expressive line
  • odkurzacz zelmer clarris 2700 st

  • zelmer trzepaczka korpus hand blender

  • robot kuchenny mikser zelmer
  • mikser zelmer mix robi 381.61 grafitowy
  • enforcement of the 250gb data consumption suspended

  • odkurzacz aquos 829.5 sk
  • odkurzacz zelmer solaris twix 5500.0 ht niebieski
    odkurzacz zelmer solaris twix 5500.3 hq opinie

    zelmer pelikan 17z018 nerez

  • odkurzacz 2700.0sp opinie
  • odkurzacz zelmer voyager twix 01z014 opinie

    odkurzacz zelmer 2700.0 st clarris

  • zelmer mix robi 381.61 ecru line
  • zelmer clarris twix 2750.0 st opinie
    zelmer mix robi 381.61 ceneo

    odkurzacz zelmer twix 01z014st

  • zelmer 829.5sk aquos opinie
  • mikser zelmer mix robi 381.7lapis

    zelmer voyager twix 01z014 opinie

  • zelmer voyager twix 01z014 st cena
  • mix robi 381.7 forum

    szatkownica do warzyw zelmer diana

    navigator quality 28z022 opinie

    zelmer aquos 829.0 st moc ssania
    odkurzacz zelmer voyager twix 01z014 st opinie
  • odkurzacz zelmer twix 01z014st
  • solaris twix 5500 0 ht
    Many computer pundits predict that it will be the next big thing in the digital revaluation.

     

    Applications in the cloud: this is what almost everyone has already used in the form of gmail, yahoo mail, the rest of google apps, the various search engines, wikipedia, etc

     

  • odkurzacz clarris twix 2750.0 st opinie
  • mikser kuchenny zelmer robi

    odkurzacz solaris twix

    zelmer mix robi 381.61 ceneo

    mikser 381.61 expressive mix robi opinie

  • zelmer solaris twix 5500.3 ht fioletowy
  • zelmer multi robi 885 instrukcja

  • meaning surname sayer
  • multi robi 885 instrukcja

    mikser mix robi 381.61sl ceneo

    zelmer 333 expressive pelikan

    odkurzacz zelmer solaris twix-forum

    paros beaches greece

    zelmer odkurzacz solaris twix 5500.0 ht
  • frytownica instrukcja
  • odkurzacz zelmer aquos forum

  • zelmer voyager twix moc ssania
  • odkurzacz zelmer clarris twix 2750.0 sk czarno-zielony
  • mikser kuchenny robi

    retete pentru masina paine zelmer

  • odkurzacz zelmer solaris twix
  • zelmer odkurzacz solaris twix
  • zelmer mix robi 381.7 orange
  • nom 061 ance
  • odkurzacz zelmer galaxy 01z010 opinie

    mikser zelmer 381.61 expressive mix robi opinie

    odkurzacz zelmer aquos 829.0 st opinie

    czajnik elektryczny zelmer pelikan

    zelmer expressive 477.a

    czy zelmer jest polska firma

    zelmer solaris twix 5500.3ht cena

    odkurzacz zelmer clarris twix 2750.0 st
    odkurzacz clarris twix 2750.0 sk czarno-zielony
    Platforms in the cloud: this is the newest innovation where an application platform is offered to developers in the cloud. Developers write their application and then upload their code into the cloud where the app is run magically somewhere, typically being able to scale up automagically as usage for the app grows. Example: Mosso, Google App Engine, etc

     

    Infrastructure in the cloud: this is the most general offering that Amazon has pioneered and where RightScale offers its management platform. Developers and system administrators obtain general compute, storage, queueing, and other resources and run their applications with the fewest limitations. This is the most powerful type of cloud in that virtually any application and any configuration that is fit for the internet can be mapped to this type of service.


    Amazon provides EC2 services. Ec2 is a web service interface allows you to obtain and configure capacity with minimal friction. It provides you with complete control of your computing resources and lets you run on Amazon’s proven computing environment. Amazon EC2 reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change. Amazon EC2 changes the economics of computing by allowing you to pay only for capacity that you actually use. The services are billed on a pay-as-you-go usage basis.

     

    Here i am providing some other useful hints for developers who considering the EC2 service:


    1. "Before spending too much time configuring and customizing an AMI, find one that suits your needs from the start so you won't have to redo any work later on down the road. Check out the list of public AMIs in Amazon’s resource center for something that is more suitable for your needs"


    2. "When packaging up your own image using the ‘ec2-bundle-vol’ command, make sure you specify a clean folder using the '–d' flag otherwise bundling the same image twice will result in an error due to the conflicting sets of temporary files."


    3. "When working with your image, note that the main drive/partition (where the system files are) has a very limited capacity (10 GB in our case). So when dealing with large files/directories use ‘/mnt’ as it has over 100 GB.


    solaris twix 2200w

  • filtr hepa zelmer solaris twix
  • filtr hepa aquos
  • zelmer voyager twix opinie
  • odkurzacz zelmer solaris twix 5500.0 ht opinie
  • frytkownica 04z010 opinie
  • Ted ignored her and came up beside Tanya, I ve seen it too, in his eyes.

    krajalnica zelmer alexis 493.6 expressive

    odkurzacz solaris twix 5500.3 ht pilot

  • 877 expressive prymus
  • odkurzacz zelmer solaris 5500.0 ht

    zelmer solaris 5500.0 ht opinie

    zelmer 01z010 galaxy recenze

    mikser mix robi 381.61sl ceneo

  • mikser zelmer 381.7 symbio mix robi
  • robot kuchenny zelmer 878 expressive line

  • odkurzacz zelmer 01z014sk voyager twix
  • zelmer voyager twix 01z014 st bursztynowy
  • zelmer aquos 829.0 sp cena

    Esther looked at her as if she d grown a second head.

    829.5sk aquos opinie

    odkurzacz zelmer clarris twix 2750.0 st opinie
  • robot kuchenny zelmer 878 expressive line

  • filtr hepa magnat
  • mikser kuchenny zelmer ceny

    zelmer voyager twix 01z014 worki

    filtr hepa zelmer wymiana
    filtr hepa galaxy 01z010
  • zelmer clarris twix 2750.0 st opinie
  • filtr hepa aquario

    zelmer vacuum cleaners reviews

    alexandre gomes hendon

    4. "If a machine is terminated, all your data will be lost except for what was backed up from the last time you ran an 'ec2-bundle-vol'"


    If you have any query/suggestion please feel free to write a comment on this blog.

    Thanks,
    ~Kumar

    27Sep/080

    Technical Spotlight on SOA (Service Oriented Architecture)

    Well now a day all big organizations/executives have been talking about SAO as a buzzword (For one thing, it’s three word) and SOA enabled Architecture. Here I am sharing my learning and experience from SOA…

    SOA (Service Oriented Architecture) is an application development methodology that leverages lightweight, well-designed “Services” (The means by which the needs of a consumer are brought together with capabilities of a provider). In other words:  SOA is a style of building distributed systems that enables business integration using services as building blocks or It is a thought process and methodology of decoupling IT assets – Software and hardware – from business processes. We can say SOA is a business-driven IT architectural approach that supports agile, innovation and optimization.

    Building blocks of SOA:

    ·         Business level Services

    ·         Infrastructure level services

    ·         Services Management

    ·         Security

    ·         Services Directory

    Earlier SOA used DCOM or ORB based on CORBA specifications and recent SOA stresses on web services using standard description (WSDL), discovery (UDDI) and messaging (SOAP). Services oriented architecture may or may not use web services but yes web services provide a simple way towards service oriented architecture.

                                       Service-oriented architecture

    Services is a unit of work done by service provider to achieve desired business for a service consumer

    Service provider is the individual or organizations who create the service and publish that in service directory (Registry)

    Service Directory is a well-known directory of available services. It registers available services and making them easily accessible for multiple reuses.

    Now what should be the characteristics of a “Service” and which characteristics that define the “service”? Service should have Syntax, Semantics, QoS and Business Traceability. Below are the lists of characteristics of a “Service”:

    ·         Well defined interface

    ·         Modular

    ·         Stateless

    ·         Connectionless

    ·         Coarse grained

    ·         Location transparent

    Here is the list of design principles that drive SOA:

    1.      Modularity

    2.      Encapsulation

    3.      Loose coupling

    4.      Separation of Concerns

    5.      Compos ability

    6.      Single Implementation

    Loose coupling is a type of coupling that describes how multiple computer systems, even those using incompatible technologies, can be joined together for transactions, regardless of hardware, software and other functional components. Or By decoupling from platform, protocol, location and language using interface based assembly.

    SOA resolves four important dependencies that are:

    ·         Platform Dependence

    ·         Location Dependence

    ·         Implementation Dependence

    ·         Information Format Dependence

    Benefits of SOA:

    Service-oriented architectures offer the promise of business agility and resilience through reuse, loose coupling, flexibility, interoperability, integration and governance. These are realized by separating service description from their implementations, and using this descriptive metadata across the service life cycle.

    ·         Increased business responsibilities and agility

    ·         Ability to transcend organizational boundaries

    ·         Reduces product development cycle times

    odkurzacz solaris twix 5500.3 hq pilot

    install flash debug player mac

    odkurzacz zelmer solaris twix 5500
  • Elsa never enjoyed a shower so much before in her life.
  • zelmer solaris twix 5500. 0 hq
  • zelmer twix 01z014st
    mikser zelmer mix robi 381.61 cena

    filtr hepa 13 syrius

    filtr hepa zelmer solaris twix

    paleta masina facut paine

    zelmer voyager twix 01z014 st instrukcja

    odkurzacz zelmer 2700 st opinie

  • mikser zelmer 381.61 expressive mix robi
  • mikser zelmer mix robi 381.7 expressive

  • masina de paine 43z011 pareri
  • zelmer voyager twix 01z014 sk opinie
  • odkurzacz zelmer clarris twix 2750.0 sk czarno-zielony
  • zelmer mix robi 381.61sl instrukcja
  • odkurzacz zelmer solaris twix 5500.0 ht cena

  • odkurzacz twix 5500.0 ht
  • She threw herself back on the bed and brought her hand to her forehead, tired of trying to convince him. Valear couldn t vaporize out of the room, because vapor needed an escape route and the only way out was through the light, he was trapped.
  • robot kuchenny talent 881.2 ceneo
  • tajikistan photos dushanbe

    zelmer voyager twix 01z014

    masina de paine zelmer 43z011 pareri

    She ran down the hall to the nurse s station, looking over her should to see if he was following her.

    Deep down he wished he d never met her, but it was too late now.

    ·         Exposes commodities in business processes

    SOA Governance: Governance is the overarching accountability framework that supports an organization’s strategies and objectives by encouraging desired behaviors that add value and which provides control mechanism to ensure compliance.

    ”Governance is about tracking all the rules and monitoring events around them to ensure that service-oriented architecture works the way it’s supposed to” says Daryl Plummer, a Gartner managing VP.

    worki do odkurzacza zelmer voyager twix

    odkurzacz zelmer twix 5500.0 ht


    odkurzacz solaris twix zelmer
  • odkurzacz zelmer 5500.0 ht. solaris twix
  • zelmer gusto ceneo

  • odkurzacz zelmer aquos 829.5 sk
  • multi robi. typ 885

    1tb equals how many gb


  • odkurzacz zelmer voyager twix 01z014 sk
  • zelmer mix robi 381.61 sl cena
  • 493.6 sl alexis nerez
  • zelmer 493.6 sl alexis nerez

    odkurzacz voyager twix 01z014sk

    zelmer voyager twix 01z014 st opinie

  • aquos 829.0 st moc ssania
  • zelmer prymus mix 878 expressive
  • retete pentru masina paine zelmer

  • James looked over his shoulder, shooting Kenley a scathing glance. Lucas back arched up as he allowed his Vampiric teeth to release themselves, before snapping his head down and biting through flesh and bone, none to gently to reach that rich vein.
  • robot kuchenny talent 881.2 zelmer

    filtr hepa zelmer h11

    mix robi 381.7 orange

  • ekspres do kawy przelewowy
  • odkurzacz twix 5500.0 ht
  • odkurzacz zelmer aquos 829.0 st

    odkurzacz aquos 829
  • zelmer solaris twix 2200w
  • alexis 493.5
  • filtr hepa 13 zelmer syrius
  • odkurzacz zelmer solaris twix instrukcja

    zelmer odkurzacz bezworkowy 2750.0 st clarris twix

    filtr hepa wodnik

  • filtr hepa zelmer galaxy ii 01z010
  • odkurzacz solaris twix 5500.0 hq opinie

    odkurzacz solaris twix cena

  • mikser zelmer 381.7 symbio mix robi
  • odkurzacz solaris twix 5500.3 hq opinie

    mikser zelmer 381.61 expressive mix robi opinie

  • zelmer voyager twix moc ssania
  • We should address following technical issues while designing SOA:

    1.      Interoperability

    2.      Loose Coupling

    3.      Location transparency

    4.      Modular issues

    5.      Reuse focus

  • filtr hepa zelmer aquos
  • voyager twix 01z014 sk
  • frytkownica zelmer cena
  • odkurzacz zelmer clarris twix 2750.0
  • odkurzacz zelmer aquos forum

  • zelmer solaris twix 5500
  • zelmer solaris twix 5500.0 ht instrukcja
  • zelmer 493.6 sl alexis nerez
  • solaris twix 5500.0 hq opinie

    odkurzacz solaris twix 5500.3 hq

    krajalnica zelmer alexis 493.6 sl ceny

    live footage operation redwing

  • Ted reached out and grabbed for the gun again but he missed.
  • zelmer aquos 829.0 st cena

    odkurzacz aquos opinie

    odkurzacz 2700.0 st clarris opinie

  • odkurzacz zelmer voyager twix 01z014 st turboszcz
  • prymus mix 878 expressive opinie
    mikser kuchenny zelmer robi

    filtr hepa zelmer mycie

    zelmer voyager twix 01z014

    zelmer pelikan 17z018 nerez

    mikser kuchenny 0.5 l

    filtru hepa aspirator zelmer

    maszyna do pieczenia chleba zelmer opinie

  • zelmer multi robi. typ 885
  • aquos zelmer cena

    odkurzacz solaris twix 5500.3 ht

    clarris 2700.0 sp opinie

  • map of imperial germany 1914
  • odkurzacz aquos forum
  • mikser kuchenny ceny
  • solaris twix 5500.0 ht opinie
    verwandlung interpretation apfel

    zelmer mix robi 381.7 orange

    6.      Integration issues

    7.      Granularity

    8.      Application assembly to model business process

    9.      Intra company solutions using existing components

    10.  External integration solutions using web-services

    Service Modeling Techniques:

    ·         Top down approach

    ·         Bottoms up approach

    ·         Middle-out approach

    I will keep writing about SOA and other learning and experience. You can write you valuable comment over it.

    Thanks,

    ~Kumar

    18Sep/080

    Aspect Oriented Programming (AOP) and Spring

    AOP is all about adding aspects to your code. So what are aspects? The code that we apply on Cross Cutting Concerns. Then what is Cross Cutting Concerns? Aspect, Jointpoint, Pointcut, Cross Cutting Concerns, Advice etc are the frequently used word in AOP world. AOP decomposes a system into concerns, instead of objects.

     

    Aspect: It’s like a general feature you want to apply globally to your application like logging, exception handling, transaction management, performance management etc. It is also called Cross Cutting Concerns.

    Advice: It is a piece of code/logic for implementing your advice.

    Joinpoint: A single location in the program where an advice is applied like method invocation, constructor invocation etc.

    Pointcut: A pointcut is set of Joinpoint where an advice is applied. In Spring set of method invocation is called Pointcut. There are different types of pointcut in spring like Regular Expression Pointcut, Attribute Driven Pointcut, and Dynamic Pointcut etc

    Targets/Target Objects: The objects you want to apply an aspect or set of aspects.

    As per me advice is very similar to Decorator. You can implement an advice by implementing org.aopalliance.intercept.MethodIntercept interface of spring. The MethodInterceptor interface is actually a child of the org.aopalliance.intercept.Interceptor interface, which is a child of another interface org.aopalliance.aop.Advice. In spring we generally use method interceptor. That is designed for method-invocation style advice. The MethodIntercept is really simple

     

    public interface MethodInterceptor extends Interceptor {

                Object invoke(MethodInvocation invocation) throws Throwable;

    }

    Basically, when you write an advice for intercepting a method, you have to implement one method - the invoke method, and you are given a MethodInvocation object to work with. The MethodInvocation object tells us a bunch of stuff about the method that we're intercepting, and also gives a hook to tell the method to go ahead and run.

    public class LoginInterceptor implements MethodInterceptor {

               public Object invoke(MethodInvocation methodInvocation) throws Throwable {

                   Log logger = LogFactory.getLog(methodInvocation.getClass());

                   long startTime = System.currentTimeMillis();

                   try {

                                   Object[] args = methodInvocation.getArguments();

                                   if (logger.isDebugEnabled()) {

                                        logger.debug("Beginning method: " +

                                                                 methodInvocation.getMethod().getDeclaringClass() + "::" +

                                                                 methodInvocation.getMethod().getName());

                                       if (null != args) {

                                                   logger.debug(" with arguments: " + args.toString());

                                       } else {

                                                  logger.debug(" with no arguments");

                                       }

     

                                        logger.debug(System.getProperty("line.separator"));

                                   } else if (logger.isInfoEnabled()) {

                                            logger.info("Beginning method: " + methodInvocation.getMethod().getDeclaringClass()

                                                  + "::" + methodInvocation.getMethod().getName());

                                          logger.info(System.getProperty("line.separator"));

                                   }

                                                  Object retVal = methodInvocation.proceed();

                                   return retVal;

                          } finally {

                                   if (logger.isInfoEnabled()) {

                                   logger.info("Ending method: " +  methodInvocation.getMethod().getDeclaringClass() + "::" +

                                   methodInvocation.getMethod().getName());

                                   logger.info("Method invocation time: " + (System.currentTimeMillis() - startTime) + "

                                   msecs.");

                                   logger.info(System.getProperty("line.separator"));

                                       }

                        }

               }

    }

    XML configuration for above interceptor is given below:

     

    <bean id="studentServiceTarget" class="com.example.StudentServiceImpl"/>

     

    <bean id="myLogger" class="com.example.LoginInterceptor"/>

       

    <bean id="studentService"

        class="org.springframework.aop.framework.ProxyFactoryBean">

        <property name="proxyInterfaces"><value>com.example.StudentService</value></property>

        <property name="target"><ref local="studentServiceTarget"/></property>

        <property name="interceptorNames">

            <list>

                <value>myAdvisorLogger</value>

             </list>

        </property>

    </bean>

     

    Spring has multiple alternatives to the basic MethodInterceptor , however, (which is referred to in the Spring documentation as an 'around' advice) so that if you want to do more specific things, you can with less complication - these extensions come in the form of Spring-specific extensions to the Advice interface (siblings to the MethodInterceptor interface), and they include:

    ·         org.springframework.aop.MethodBeforeAdvice - Implementations of this interface have to implement this before method:

    void before(Method method, Object[] args, Object target) throws Throwable;

    ·         org.springframework.aop.AfterReturningAdvice - This interface's method will be called on the return from the invocation of a method. Implementation of this interface have to implement this afterReturning method:

                void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable;

    ·         org.springframework.aop.ThrowsAdvice – Implementation of this interface havt to implement this afterThrowing method:

                void afterThrowing([Method], [args], [target], [some type of throwable] subclass)

     Below are hierarchy of Advice class:

     

    In above article I have given only basic information about AOP. 

     

    Reference Material:

    ·         http://static.springframework.org/spring/docs/1.2.x/reference/aop.html.

    ·        Spring in Action by Craig Walls, Ryan Breidenbach: this is the best book I have read on Spring (and yes I read this entire book).

    Filed under: Spring No Comments
    14Sep/080

    Inversion of Control (IOC)/ Dependency Injection (DI) / Spring

    The basic concept of the Inversion of Control pattern (dependency injection) is that programmers  don’t  need to create your objects but describe how they should be created. Don’t directly connect components and services together in code but describe which services are needed by which components in a configuration file. A container (in the case of the Spring framework, the IOC container) is responsible for all this. In a IOC scenario, the container creates all the objects, connects them together by setting the necessary properties, and determines when methods will be invoked. The implementation pattern types for IOC used by SpringFramework are as follows:

    Ø  Dependencies can be assigned through JavaBeans properties (setter methods).

    Ø  Dependencies are provided as constructor parameters and are not exposed as JavaBeans Setter propertiSes.

           

    Spring IOC Container

    Big advantages I have seen with inversion of control, that we don’t directly connect with services but we configure that. Now this is really gaining momentum as of late, is the adoption of the Spring Framework as an alternative to Java EE. I think that this started because J2EE was so complicated and heavy-weighted that companies sought new and innovative solutions. Spring provides the ability to access data objects as Plain Old Java Objects (POJOs) and includes support for database connection pools, transaction management, and so forth. This means that you can effectively build a scalable enterprise application without Java EE. And as Java EE evolved into its more manageable form, many developers continued to appreciate all that Spring provided them and had no desire to switch back.

    As an enterprise developer you should be familiar with the concept of Inversion of Control (IoC) and Dependency Injection, and Spring specifically. Whether you decide to embrace Java EE and EJB 3.0 or develop your applications with Spring, you should at least understand the theory.

    Book Recommendations:

    ·              Spring in Action by Craig Walls, Ryan Breidenbach: this is the best book I have read on Spring (and yes I read this entire book).

    Filed under: Spring No Comments
    9Sep/080

    First Post

    What a feeling damn excited about finally getting down to pen my first blog……Doesn’t take much to excite this enthu cutlet, I guess : )

    Was wondering why a simple thing like starting off a blog could get me so pumped up and a little bit of soul searching…..It’s been planned long time back… but due to time constraint and work enthu didn’t… one day my friend Nishat Saini told why don’t you start bogging…and same day I started…rolling the ball (blog articles) to share the experience that I had with various open source products/technologies, architecture, and design. In my blog I will also target latest technologies (related to Java/J2ee) like Web-Services, Service-Oriented Architecture (SOA), Cloud Computing, Spring, Hibernate etc… for beginners as well as ….

    As when I run into problems I refer to my companion GOOGLE which seems to friend for almost every IT guy. There are countless blogs out there for any particular topic, but which one is the best? Some of them can lead to resolution of problem you have and sometimes it may take weeks to unravel the mystery. So each blog has a unique problem and unique solution and the answer to your problem might be aggregation of these various blogs.

    I will try to put sample programs, pictures and diagrams to explain my thoughts about technologies. I always believe, sample programs, pictures and diagrams speak better than words. If any one interested to ask any question, feel free to post a comment on this article and I’ll answer it as soon as I could.

    Thanks,
    ~Kumar