デジタル大要
Google
Translate to EnglishÜbersetzen Sie zum Deutsch/GermanTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese
한국어에게 번역하십시오/Korean中文翻译/Chinese Simplified中文翻译/Chinese Traditionalترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/Russian

配置されたEJBを実施することはジャワの顧客を使用していた

企業のジャワの豆一般に企業のジャワの豆として知られているEJBはJ2EEの最新式の特徴の1つである。 EJBはリモートサービス等を提供するトランザクション、保証を扱うために主に使用される。 関係地図を描くフレームワークがのような冬眠する目的のロットがあらゆる企業の適用でとても重い考慮されるEJBを取り替えたのに。 実施していないアプリケ−ションサーバの容器の中のEJBをかなり簡単であり、アプリケ−ションサーバ以外から同じをすることを試みるとき退屈のでプロセス。 今日私はジャワの明白な顧客を使用してリモートマシンで配置されるEJBサービスを実施する方法を説明しようと思っている。

顧客であるためにだれが修飾されるか。

EJBの顧客は要求を達成するか、またはサービスを得るためにEJBにアクセスすることを試みるそれらの適用、部品、システムおよびサービスである。 顧客は装置顧客、アプレットの顧客、ジャワの独立顧客、EJBの顧客、CORBAの顧客、遺産の顧客、JMSの顧客、窓の顧客である場合もあり、他からの顧客は形態の地図をつくる。 ここに私は独立ジャワのclientsâの€の¦だけ述べようと思っている

ジャワの独立顧客はいかに働くか。

どのJavaアプリケーションでもRMI呼出しを使用して遠隔アプリケ−ションサーバで動いているEJBサービスを呼ぶことができる。 内部的にEJBâの€の™ sがIIOP上のRMIを使用するので。

EJBにアクセスする方法か。

遠隔に配置されるEJBを調べるためには、ジャワの独立顧客は部品のicular港で走るJNDIサービスによって調べ呼出しをしなければならない。 JNDIはbindingsâの€のをそれと示すためにâの€のœの目的すべてを握る示サービスである
サーバーに存在している。 それらが適切なハンドルを得ればハンドルそれらのを使用して得られる遠隔参照からの方法を実施し始めてもいい。 私はここに基本原則を説明することいない; ちょうど私は概観にそのâの€の™をsすべて与えた。

EJB-Client.jarを作成する方法か。

これはちょうどejb顧客.jarを作成する方法を言うことである。 何がそこにある必要があるか。

1. EJBのリモートインターフェース
2. EJBは家へ帰る
3. 発生させた切株
4. 遠隔方法を実施するのに使用することができる必要なクラスファイル。
5. 必要な瓶。

顧客の瓶をリモートクライアントに使用できるようにしなさい。 Webアプリケーションのために、/解放の登録簿にejbclient.jarを置きなさい。 非網の顧客のために、顧客のclasspathにejb顧客.jarを含めなさい。 上記の前述の情報すべてはEJB指定によってあり、今後前に私はWebsphereの細目情報と進むだろう。

Websphereのために注意されるべきポイント:

1 . Websphere JNDIの独立顧客はIBM JREとだけ働く。
2 . そしてIBMは独立JREを出荷しない。 (at least their 1.4 JRE)

Note: You will not face the above said problem in JBOSS and Weblogic. You just have to include the necessary jar that ’s all.

Why things are troubling us?

That was related to differences in the information used in the IBM orb and others. Sun changed the spec to ensure such issues went away. All complying implementations should interoperate out of the box now.

Process for Accessing the EJB services from Websphere:

This document provides the guidelines for accessing the Ejb services running in the Websphere Application server from any other external application servers or applications.

JAR Collection

To access the Ejb service some of the jar files have to include to the classpath of the application. This has to be collected from the Websphere lib directory. They are,

1 . bootstrap.jar
2 . ecutils.jar
3 . ffdc.jar
4 . idl.jar
5 . iwsorb.jar
6 . j2ee.jar
7 . lmproxy.jar
8 . naming.jar
9 . namingclient .jar
10 . ras.jar
11 . sas.jar
12 . utils.jar

JRE Collection

The compilation conflict occurs from the versions of the JRE used. As we access the IBM specific classes we need to have IBM jre collection. Create jre library from the java folder in the Websphere. And also it is must to use sun jre along with
that , and then include the j2ee.jar from sun provided J2SDKEE ( this holds the except ions of Ejb) .

1. IBM jre ( this library has to be created from the whole java directory)

2. SUN jre ( this library has to be created from jdk not jre)

3. j2ee.jar ( j2sdkee)

Properties

IBM maintains a property file for establishing connect ions with the iiop. So the application should include that property file. It is named as implfactory.properties

1. Implfactory.properties

Context Parameters

INITIAL_CONTEXT_FACTORY = com.ibm.websphere.naming.WsnInitialContextFactory
PROVIDER_URL = iiop: //hostname:2809

Popularity: 3% [?]

Share or Bookmark: These icons link to social bookmarking sites where readers can share and discover new web pages. Digg Sphinn del.icio.us Facebook Mixx Google


Also Read this

-->

Leave a Comment