الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

سأربط برنامجي بقاعدة بيانات على السيرفر هل يجب عليا استخدام Ejb?

بدأه انس احمد في 11 فبراير 2009 · 6 رد · 846 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

لديا برنامج سطح مكتب أريد ربطه بقاعدة بيانات على السيرفر

هل يجب عليا استخدام enterprise java bean

إن كان الجواب نعم |؟

هل ذكرتم لنا المميزات والتفاصيل

بارك الله فيكم

#2

بدك الصراحة أخي : اتمنى لو أفهم ماهي هذه EJB و ما فائدتها ؟؟

#3

السلام عليكم

ليس عندي علم كثير بها

انقل لك كلام من كتاب java advanced how to program

اقتباس
Every EJB consists of a remote interface, a home interface and an EJB implementation. The

remote interface declares business methods that clients of the EJB may invoke. The home

interface provides create methods for creating new EJB instances, finder methods for

finding EJB instances and remove methods for removing EJB instances. The EJB implementation

defines the business methods declared in the remote interface and the create,

remove and finder methods of the home interface. An EJB container provides the EJB’s

runtime environment and life-cycle management.

وهي موجودة على السيرفر وتستخدم في distrbuted system

وابسط صورها والله اعلم ان تتصورها انها برنامج مشترك على السيرفر يقوم المستخدمين من أماكن متفرقة باستخدماه والتعديل والاضافة عليه

ومن عنده معلومات عنها فليفيدنا وجزاكم الله خيرا

#4

معلومات أكثر عن ejb وأكثر فائدة وهي من موقع صن

اقتباس
What Is an Enterprise Bean?

Written in the Java programming language, an enterprise bean is a server-side component that

encapsulates the business logic of an application. The business logic is the code that fulfills the

purpose of the application. In an inventory control application, for example, the enterprise

beans might implement the business logic in methods called checkInventoryLevel and

orderProduct. By invoking these methods, clients can access the inventory services provided

by the application.

Benefits of Enterprise Beans

For several reasons, enterprise beans simplify the development of large, distributed

applications. First, because the EJB container provides system-level services to enterprise beans,

the bean developer can concentrate on solving business problems. The EJB container, rather

than the bean developer, is responsible for system-level services such as transaction

management and security authorization.

Second, because the beans rather than the clients contain the application’s business logic, the

client developer can focus on the presentation of the client. The client developer does not have

to code the routines that implement business rules or access databases. As a result, the clients

are thinner, a benefit that is particularly important for clients that run on small devices.

Third, because enterprise beans are portable components, the application assembler can build

new applications from existing beans. These applications can run on any compliant Java EE

server provided that they use the standard APIs.

When toUse Enterprise Beans

You should consider using enterprise beans if your application has any of the following

requirements:

■ The application must be scalable. To accommodate a growing number of users, you may

need to distribute an application’s components across multiple machines.Not only can the

enterprise beans of an application run on different machines, but also their location will

remain transparent to the clients.

■ Transactions must ensure data integrity. Enterprise beans support transactions, the

mechanisms that manage the concurrent access of shared objects.

■ The application will have a variety of clients. With only a few lines of code, remote clients

can easily locate enterprise beans. These clients can be thin, various, and numerous.

#5

لا .. بامكانك الاتصال بقاعدة البيانات بدونها

#6

كما قال الاخ عيسى, يمكنك الاتصال بدونها

فقط في ال url الخاصه بال JDBC حدد الجهاز الذي تريد الاتصال به

#7

السلام عليكم

شكرا يا إخوان

لكن هل هذا فيه خطر ؟؟؟؟؟

اعتقد انه خطير من حيث الاختراق أليس كذلك؟؟؟

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…