CMP Entity Bean ?? - PowerPoint PPT Presentation

1 / 47
About This Presentation
Title:

CMP Entity Bean ??

Description:

CMP Entity Bean Visual Caf 4.0 Enterprise Edition – PowerPoint PPT presentation

Number of Views:87
Avg rating:3.0/5.0
Slides: 48
Provided by: hkkim
Category:
Tags: cmp | bean | entity | server | weblogic

less

Transcript and Presenter's Notes

Title: CMP Entity Bean ??


1
CMP Entity Bean ??
  • Visual Café 4.0 Enterprise Edition ??

2
Visual Café ?? ?? ??
  • Tools ??? Environment Option ? ????.

3
  • Virtual Machines ???? Use VM ? Java2 - JDK 1.2.2
    ? ????.

4
  • UML/EJB ???? Deployment Target ? WebLogic Server
    5.1 ? ????.

5
  • Manage Deployment Target ??? ???.

6
  • Weblogic Server 5.1 Home Directory ? WLS 5.1 Home
    Directory On Remote Host ? ??? weblogic directory
    ? ??? ????.(c\weblogic)

7
  • Host IP ? ??? IP ? ??? ????. Administrator
    Password ? weblogic password ? ????.

8
  • Additional classpath Entries ? c\weblogic\eval\cl
    oudscape\lib\cloudscape.jar ? ????.(? ??? DB ???
    ?? ? ??. ???? ??? jdbc driver ? ??? ?? ?? ?? ?
    ?? ??? ?. c\java\jdbc\classes12.zip)

9
  • Internal VM ???? Classpath Settings ? New ??? ??
    ? c\java\jdbc\classes12.zip ??

10
  • View ??? dbNAVIGATOR ? ????.

11
  • dbNAVIGATOR window ?? ??? ??? ?? Insert Server or
    Connection ? ????.

12
  • oracle.jdbc.driver.OracleDriver ? ???? Vendor
    SubProtocol ? oracle ? Vendor SubName ?
    thin_at_127.0.0.11521hkkim ? ???? ok ??? ???.

13
CMP Entity Bean ??
  • File ??? New Project ? ????.

14
  • Enterprise Bean ? ??????.

15
  • Introduction window ?? Next ?? ????.
  • ??? ?? Dont show this page in the future
    checkbox ? ???? ???? ?? ??.

16
  • Select name window ?? Base name ? ShipEJB ?,
    Package ? com.ebpp.EJB.ship ?, Location ? ??? ??
    ???? Next ??? ????.

17
  • Choose enterprise bean type window ?? Entity -
    container managed persistence checkbox ? ????
    Next ??? ????.

18
  • Add create methods window ?? Next ??? ????.

19
  • Add finder methods window ?? New ??? ???, Method
    Name ? Argument List ? ??? ? Return Collection ?
    ????. (findByPrimaryKey ? ???? ????? ???? ???)

20
  • Add business methods window ?? Next button ?
    click ??.

21
  • Add environment properties window ?? Next button
    ? click ??.

22
  • Map database fields window ?? Select Table ????
    mapping ? Table ????.
  • ???PersistenceBuilder button ? click ??.

23
  • Source ? JDBC ? ??? ? Database ?
    jdbcoraclethin_at_127.0.0.11521hkkim ? Driver ?
    oracle.jdbc.driver.OracleDriver ? ????. User,
    Password ? DB ? ?? ????.

24
  • Connect ??? ???? Status ?? Connection to Oracle
    Oracle8i ... ???? ???? ????.
  • ??? Table ?? table ? ???? ???? ????.

25
  • mapping ? ???? ?? ?? Filter ??? DB user name ?
    ???? Table list ? ??? ???? ????.

26
  • Load button ? click ?? ?? Select Table ? Select
    Field ??? Table ? ????.

27
  • primary key ? ? field ? ??? ? Key checkbox ? ???
    ?? ????.
  • Disconnect ??? ?? ? Close ??? ???.

28
  • Map database fields window ?? mapping ? table ?
    ???? Add All button ? click ?? dbms ? field ??
    ??? ?? ????.

29
  • ??? ?? Type ??? ?? ???? java datatype ? ????.

30
  • primary key ? ??? ?? field ? Name ??? ??? ? Get ?
    Set checkbox ? check ??.
  • Next button ? click ??.

31
  • Review choices ??? ??? ??? ?? ??? ??? Finish ???
    ????.
  • ? Bean Class ? ??? EJB ? ??? ??? Property List ??
    ??? ?? ??.

32
  • Project ? Enterprise Beans ? window ? ??, remote
    ? bean ? ??? ? ?? edit ?? ??.

33
  • Project window ? click ?? File ??? Save All ?
    ????.

34
  • File ??? Close Project ???? client ????? ?? ?????
    ????.(???? ?????)

35
  • project file ? ShipEJB.vep, ShipEJBClient.vep ?
    client program ? ShipEJBClient.java ?
    c\weblogic\classes\(16page ?? Location ?? ?? ?
    ?) ? ??? ?? ????..

36
  • ? EJB program ?? c\weblogic\classes\com\ebpp\EJB\
    ship\(16page ?? package ??? ?) ? ????? ????.

37
CMP Entity Bean ????
  • Enterprise Beans window ? ????.
  • ?? Enterprise Beans window ? ??? View ????
    Enterprise Beans ??? ????.
  • remote program ? ???? right-click ? ? ? pop up
    ???? Configure Enterprise Bean ? ????.

38
  • ????? remote program ? ???? Methods tab ? ????.
  • Methods list box ?? ejbCreate ? ??? ? gtgt ? ???
    Home Methods list box ? ????.
  • Close ??? ???.

39
  • Enterprise Beans window ?? remote ? ??? ?
    right-click ? Verify EJB ? ????.
  • Messages window ? valid EJB ?? ???? ??? ????.
  • ?? not valid ??? Make Changes button ? ????.(??
    ??...)

40
CMP Entity Bean ??
  • Project menu ?? Configure Deployment Descriptor ?
    ????.

41
  • EJB's box ?? deploy ? remote ? ??? ? CMP tab ?
    ???? Database Field ? ???? ?? ????? ????.

42
  • Target Options tab ? ??? ? JNDI Name ? ????.

43
  • Target Options tab ? subtab ? Persistence ? ????
    ???? ?? ????? ????.

44
  • Target Options tab ? subtab ? RDBMS ? ???? Pool
    Name ? hkkimPool ?, Table Name ? SHIP ?, Schema
    Name ? HKKIM ? ????.

45
  • Target Options tab ? subtab ? Finders ? ????,???
    find method ? ??? ? Query ??? ????.(WLQL ??)
  • OK ? ???? Save All ??.

46
  • Project menu ? Deliver Enterprise Bean to EJB
    Server ? ????.

47
  • Messages window ? deploy complete ? ????.
  • c\weblogic\myserver\ ?? ShipEJB.jar ? ??????
    ????.
  • weblogic.properties ? weblogic.ejb.deployC/weblo
    gic/myserver/ShipEJB.jar ? ?????? ????.
Write a Comment
User Comments (0)
About PowerShow.com