Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to specify JNDI Name in J2EE

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to specify JNDI Name in J2EE". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to specify JNDI Name in J2EE.

Although the J2EE application client and the web client access the same enterprise bean, their refers to the bean code uses different names. The J2EE application client refers to the bean uses SimpleConverter, while the web client uses TheConverter. These references are called in the parameters of lookup. In order for the lookup method to get bean, you must map references to bean's JNDI name in the code. Although mapping adds an indirect operation, it also separates the client from beans, making it easier to assemble J2EE components and applications.

In the client, references of map bean to JNDI name of bean, as shown in the following steps:

In the tree directory, select ConverterApp.

Select the JNDI Names page.

To specify the JNDI name of bean, locate ConverterBean component in the Application table and enter MyConverter. Exe in the JNDI Name column.

To map references, enter MyConverter. MyConverter for the JNDI Name column of each row in the References table.

At this point, I believe you have a deeper understanding of "how to specify JNDI Name in J2EE". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report