How can i create Entity bean(CMP and BMP) in EJB 2 ...

How can i create Entity bean(CMP and BMP) in EJB 2.0 using RAD 7.0...

any suggestions,docs or links will be handy for future references..Thank in prior...

Liked this question? Tell your friends about it

Answers

Ya i have asked that how can i create a Entity bean (CMP and BMP) in RAD 7.0 with EJB 2.0...Ya  I got the answer..Steps are..

1.Create a new Project(EAR).

2.Start the inbuilt RAD server and start the adminstrative console.

3.In admin console ,Click on Resources->JDBC->JDBC Providers..

in jdbc providers select a proper scope and create a new jdbc provider.

4.In same console only,create a new Datasource with proper scope selected and click on Test Connection..if connection is established..ur steps are rite.NB:-mention the jndi name here as "jdbc/demodsn" .This same name must be mentioned in the ejb's jndi name.

5.In the database explorer create a new connection by giving database name as pubs(e.g) and server->callisto and provide the class.This class location is nothing  but the 3 jar files-->msbase,mssqlserver,msutil.This part is done.

6.Last step is connecting with a database table.For this right click Project where Bean classes are there..It will show EJB to RAD mapping.Click generate map..Then create a new backend folder or exiting folder.Then select meet-in-middle.Then use connection u just created and then select a table.A map will be created and just map the fields and database.

7.Test the aplication by running the Bean.Surely It will work.

This is only for CMP but not BMP..if someone finds the same for BMP plz let me know.

Related Questions

Other people asked questions on similar topics, check out the answers they received:

Asked: Sage accounting software

sage accounting software

Asked Anonymously: Software Compatiblity

www.panasonic.com/contactinfo Is the Panasonic digital camera Model DMC-TZ5 software that loads pictures from camera to computer compatible with Windows 7 Home Premium?

Asked: How can I contact Limewire to reinstall my ...

How can I contact Limewire to reinstall my software? Thanx