Misra’s blog

SEAM

Posted by mtwinkle on July 10, 2007

The two core concepts in Seam are the notion of a context and the notion of a component. Components are stateful objects, usually EJBs, and an instance of a component is associated with a context, and given a name in that context.

A conversation is a unit of work from the point of view of the user. It might span several interactions with the user, several requests, and several database transactions. But to the user, a conversation solves a single problem. For example, “book hotel”, “approve contract”, “create order” are all conversations.

A conversation holds state associated with “what the user is doing now, in this window”. A single user may have multiple conversations in progress at any point in time, usually in multiple windows. The conversation context allows us to ensure that state from the different conversations does not collide and cause bugs.

The business process context holds state associated with the long running business process. This state is managed and made persistent by the BPM engine

Application context is mainly useful for holding static information such as configuration data, reference data or metamodels. For example, Seam stores its own configuration and metamodel in the application context.

we obtain components from a context via injection, and put component instances into a context via outjection.

Almost all seam components need a name. We assign a name to a component using the @Name annotation:

3 Responses to “SEAM”

  1. maori said

    Only a smiling visitant here to share the really like (:, btw wonderful style and style . 744578

  2. Soon after study some with the content material within your internet site now, we genuinely such as your technique of blogging. I bookmarked it to my bookmark internet internet site list and will also be checking back soon. Pls look at my web-site likewise and make me aware what you believe. 200344

  3. resource said

    Attractive portion of content. I merely stumbled upon your weblog and in accession capital to assert that I get in fact loved account your weblog posts. Anyway I will probably be subscribing to your augment and even I success you get admission to constantly rapidly. 92072

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: