Solved

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

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Working knowledge on Innopac Library System 2 180
Weblogic Logs 4 145
HP Virtual Connect firmware upgrade ? 5 117
plusOut java challenge 40 174
-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
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 …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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