[J2EE Base EJB Programming] JNDI - How do you pronounce this awesome word?[1/2]

      You have already seen the example using JNDI API in the previous example. Prior to get down to JNDI, let's see what the naming services are.
      Everyday, you use naming service; for example, Libraries have equipped with a naming service. Look at the flame here. Red Sun! You go to the library to borrow a book. Because you don't know where the book is, you go to the front or use Library web services to search the book. By getting the isbn of the book, you can find the book.

      In the world of programs, like the real world, there are many naming services; DNS, RMI Registry, COS Naming and so on.

The usage of these naming services is different. Because any programmer in Java World knows he is not smart enough to rememeber all these usage of naming services, they agreed to make a standard of the usage; JNDI(Java Naming and Directory Interface).
      Actually, You have already used JNDI in the previous example; a "Hello World" program in RMI-IIOP version and a "Hello World" program in RMI-IIOP version using Property class. As you can see at the source codes, InitailContext interface and Context class are JNDI API in javax.naming. In addition, like a following diagram, you can create an instance of InitialContext class by passing an evironmental parameter using a Properties class.

      Before jumping to the SessionBean, let's study how to run Weblogic in eclipse.

  1. JNDI overview, Part I - An introduction to naming services by Toad Sundsted, JavaWorld.com


by 해적 | 2007/07/10 20:58 | LessonNotes | 트랙백(1) | 핑백(3) | 덧글(0)

트랙백 주소 : http://bombbomb.egloos.com/tb/1328204
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Tracked from at 2014/03/11 00:34

제목 : http://helenmccrory.org/

Linked at Treasure iLand :.. at 2007/07/10 20:59

... &lt;Content&gt; RMI RMI-IIOP SessionBean EntityBean SessionBean + EntityBean JMS MessageDrivenBean Transaction &lt; ... more

Linked at Treasure iLand :.. at 2007/07/11 15:54

... zzz &lt;PREV&gt; ... more

Linked at Treasure iLand :.. at 2007/07/25 21:38

... ou want to use the Destination you have made, you have to reference it by its JNDI name. Now, all the configration is done. Do you want to see the example that ... more

:         :


비공개 덧글

◀ 이전 페이지          다음 페이지 ▶