?
Solved

How do I set up the data source for an entity bean using CMP.?

Posted on 2009-04-10
4
Medium Priority
?
220 Views
Last Modified: 2013-12-11
I would like to know how I can bind a database to a entity bean that is using container managed persistence in wen sphere
0
Comment
Question by:gsanghvan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 41

Expert Comment

by:HonorGod
ID: 24122493
I'm sorry, but I don't understand what you mean.
Can you give move information / details?
Thanks
0
 

Author Comment

by:gsanghvan
ID: 24122795
Greetings HonorGod,
  I have a web application that has been deployed to production . It uses some entity beans. One of the entity beans in production environment is not being persisted properly because it is mapped to a development database and also using an incorrect table name that was mispelled by the developers.
My understanding is that it is using some default mapping which was done at development time in the application.
I would like to correct this information (hopefully through the WAS Admin console) so that the entity bean uses the correct schema and table name .
Is there a place in the admin console where I can change the persistence information and also correct the misspelled  table name so that it uses the correct schema and the correct table that is in production.

I know when we migrate a regular web  application(without any entity beans) to production we just change the datasources so that they refer to production schemas and everything works because the code uses a resource reference in the jndi look up.
Hope this helps


0
 
LVL 41

Accepted Solution

by:
HonorGod earned 2000 total points
ID: 24244663
Yikes.  I'm sorry, I completely forgot about this question.  Please forgive me.

If the configuration information about the database is hard coded in the application, then the application needs to be changed.

On the other hand, if the information about the database is in the datasource, then you can:

- login to your admin console
- click on & expand the Resources section (left frame)
- click on & expand the JDBC section
- click on the Datasource link
- click on the Datasource name to be modified
- make the changes
- test the connection
- and save your changes.

Good luck
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month11 days, 3 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question