Archive for October, 2009

 

Quick Eclipse Shortcuts ..

Oct 28, 2009 in Eclipse, Uncategorized

From http://www.ibm.com/developerworks/opensource/library/os-eclipse-master3/index.html

  • — Open Type – Ctrl+Shift+T
  • — Pick part of a string – select section, press Ctrl+1
  • — Quick Outline – Ctrl+O
  • — Enable ‘Breadcrumbs Bar’ – Alt+Shift+B
  • — Code formatting – highlight, Ctrl+Shift+F
  • — Watch the ‘Overview Ruler’ for errors or warnings

From the “Workbench User Guide” ..

History Navigate > Backward (Alt+Left Arrow)

Various Functions > Ctrl+3

Editor List > Ctrl+E

Global Find/Replace > Ctrl+H

Customize, View Keys / Shortcuts > Menu / General / Keys

Find a string incrementally > Edit / Incremental Find Next (Ctlr+J)
> or Find Previous (Ctrl+Shift+J)

Go to last edit location > Navigate / Go to last edit location (Ctrl+Q)

Manipulating lines > Insert new line above (Ctrl+Shift+Enter) or below (Ctrl+Enter)
> Convert to lowercase (Ctrl+Shift+Y) or uppercase (Ctrl+Shift+X)

Quick Diff (what changed while editing) > General / Editors / Text Editors / Quick Diff (Ctrl+Shift+Q)

Next / previous navigation > next = Ctrl+. , previous = Ctrl+, (plus comma)

Word completion > Alt+/. (Ctrl+. on the Mac)

J2EE 1.4 EJBs Notes..

Oct 22, 2009 in Uncategorized

  • — Type of Enterprise Beans Session, Entity and Message (-Driven)
  • — A session bean represents a single client inside the Application Server .
  • –>> 2 types of session beans: stateless and stateful .
  • –>> A stateless session bean (SLSB) does not maintain a conversational state for the client.
  • –>> In a stateful session bean (SFSB), the instance variables represent the state of a unique client-bean session.
  • — An entity bean represents a business object in a persistent storage mechanism.
  • –>> Entity beans are persistent, allow shared access, have primary keys, and can participate in relationships with other entity beans.
  • –>> Two types of persistence for entity beans: bean-managed persistence (BMP) and container-managed persistence (CMP).
  • –>> Part of an entity bean’s deployment descriptor, the abstract schema defines the
    bean’s persistent fields and relationships.
  • –>> Persistence factors:
    –>>– persistent fields
    –>>– Relationship Fields: 1-to-1, many-to-many, etc..), bidirectional or unidirectional
  • — Message-Driven beans – JMS
  • — JCM = J2EE Core Model.
  • — Interfaces: EJBHome, EJBObject, SessionBean,

JBoss 4 EJBs – http://docs.jboss.org/jbossas/guides/j2eeguide/r2/en/html/ch5.chapter.html

Remote:
extends EJBObject
extends EJBHome

Local:
extends EJBLocalObject
extends EJBLocalHome

implements javax.ejb.SessionBean

implements EntityBean