In windows the classic way to get the ip address of your machine is to use the DOS prompt and type
The best thing to do is to use a DAO (Data Accesss Object) pattern with your BMP beans.
Basically, you write a base DAO object that does all the CRUD. Create, Delete, Lookup, Store / Update. Typically, you can use a factory that returns the BASE DAO, driven by an EJB env property for the class name of the DAO impl class.
ipconfig.
Try :-
ipconfig /all
and you'll get a whole lot more info.
App Server Vendor Independence
The best thing to do is to use a DAO (Data Accesss Object) pattern with your BMP beans.
Basically, you write a base DAO object that does all the CRUD. Create, Delete, Lookup, Store / Update. Typically, you can use a factory that returns the BASE DAO, driven by an EJB env property for the class name of the DAO impl class.
For example, say you have an OrderBMP. The order bean would use
Factory.getOrderDAO(ejbcontext.getProperty("OrderDAO.className")
to get the proper DAO for the installation.
Normally, DAOs are singleton.
The BaseOrderDAO implements all the methods it can in a platform independant way, it might be abstract.
Then you implement an Oracle9iOrderDAO, a TeraDBOrderDAO etc satisfying all those things you need.
When you deliver to the customer, all that is needed is a single line change in the env entries for the bean in the deployment descriptor.

0 Comments:
Post a Comment
<< Home