Solved

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

Posted on 2009-04-10
4
215 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
  • 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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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 …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.

838 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