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...
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.
Got an answer for rahulcool77? Would you like to comment on the posted answers, or vote for the one which you think is the best?
Sign up for a free account, or sign in (if you're already a member).
Other people asked questions on similar topics, check out the answers they received:
Other people asked questions on various topics, and are still waiting for answer. Would be great if you can take a sec and answer them