Solved

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

Posted on 2009-04-10
4
212 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now