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...


Share Send to a friend Watch Report
 
 

Posted 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.

Posted 2008-05-13T04:34:36Z

Sign in to participate

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).

Explore Related Questions

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


Q:

Accounting Software Required: London Taxi Company

HI We are a taxi company Hummingbird Cars in London. We provide Airport Transfer service from all london airports. We are new ...
Submitted by Satin   1 month ago.
  • viewed 175 times
Last answer posted 3 days ago by Intelegencia


Q:

Growth opportunities in software testing

sir,i have doneBE in electronics and comm with an agg percectage of 77%, now i m planning of doing software testing coaching, i ...
Submitted by shubhashish   2 years ago.
  • viewed 1618 times
Last answer posted 2 hours ago by gibergson


Q:

My question is about newest software.rs232 The ...

My question is about newest software.rs232 The software downloaded was a zipped file. how do I unzip?
Submitted by razaq adebayo   6 months ago.
  • viewed 369 times
Last answer posted 6 months ago by Philly
Asked about "newest software.rs232"



» More...

Explore Related Posts in Forums

who is responsible for software defects ? software testers or Developers

Who is responsible for software defects ? software testers or Developers work !! If there are software with errors the tester is the responsible. If the tester is a BAD TESTER software for the Space Shuttle. In it, they describe the importance of rigourous development process

Software, Software, Software!!!

Was common with Stickybear Software in the day)--a "Stickybear Software" poster! I may have but was slightly disappointed to find no Apple II software at all...) I'm probably not going to get any more to buy actual software at these places. I remember browsing Babbages in the 1990s, looking

Selling Software on eBay (Copied Software).

software being sold on ebay on CD R's is this actually legal? how could i report this cause im sure He wont have his ebay account for long.No, it's not legal (unless the software is under license down.Quote: : No, it's not legal (unless the software is under license where you are free to distribute
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
ADVERTISEMENT
AOL Autos Q&A is powered by Yedda an AOL Company
Copyright © 2006-2010, Yedda Inc. and respective copyright owners