Sitemap

Amicuk Programming Answers

Do i need to set Resource Ref's in teh deploy tool for a CMP bean?

-0001-11-30   Views:0

Advertisement

Hi, I have a CMP bean which i have deployed, it doesnt work, in the server log shows the following. [#|2005-03-10T14:13:21.046+1030|WARNING|sun-appserver-pe8.1|javax.enterprise.system.container.ejb.entity.finder|_ThreadID=16;|JDO74004: Bean 'PersonEn

Hi,
I have a CMP bean which i have deployed, it doesnt work, in the server log shows the following.
[#|2005-03-10T14:13:21.046+1030|WARNING|sun-appserver-pe8.1|javax.enterprise.system.container.ejb.entity.finder|_ThreadID=16;|JDO74004: Bean 'PersonEntityBean' method ejbFindByPrimaryKey:
com.sun.jdo.api.persistence.support.JDODataStoreException: JDO76400: Got a JDBC SQLException while executing the SQL statement:
SQL statement<select t0.person_id, t0.name from person t0 where t0.person_id = ?> with input values:java.lang.Integer:1.
Please examine the SQLException for more information.
NestedException: java.sql.SQLException: No database selected
THe database has been set up in the connection pools, i thought this was enough, as there is no coded names in the implementation code, am i wrong?
how do i get my CMP bean to communicate with the database?
do i need to set up any references?
thank you for your time
Gavin.

The replay answer
Advertisement
You set the JNDI name of the JDBC resource in deploytool. To do this, select your EJB JAR, select the General pane, and click Sun-specific Settings. Enter the JNDI name of your JDBC resource, and then set up the mappings & relationships. The J2EE 1.4 Tutorial's Container Managed Persistence Examples chapter has several examples that show how to do this.
-Ian Evans

Go to See the other 3 answers

Do i need to set Resource Ref's in teh deploy tool for a CMP bean?

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a CMP bean which i have deployed, it doesnt work, in the server log shows the following. [#|2005-03-10T14:13:21.046+1030|WARNING|sun-appserver-pe8.1|javax.enterprise.system.container.ejb.entity.finder|_ThreadID=16;|JDO74004: Bean 'PersonEn[More]

Some doubts in using resource-ref,connection pool n Data-source

Category:DefaultRelease time:2015-10-11Views:130

Hi all , I need little bit clarification in the following points. 1) Does the connection pool which is created can be displayed in JNDI Tree??? I am seeing only DataSOurce in the JNDI Tree Only. 2)In case of Bean Managed Persistance, in ejb-jar.xml,[More]

How to map a resource-ref in Jdev11 deployment plan editor

Category:DefaultRelease time:2015-10-11Views:130

Hi all, I have a ADF/BC web application where the BC4J application module does connect to a JNDI data source. The ViewController project does declare the Datasource as needed resource in its web.xml: <resource-ref> <res-ref-name>jdbc/wlogDS<[More]

Message Driven Bean - Resource Ref

Category:DefaultRelease time:2015-10-11Views:130

hi Can anyone guide me with the steps in creating the resource ref in the Message Driven bean. When i run i get the following C:\Sun\Projects\simple>appclient -client MSBApplicationClient.jar JNDI lookup failed: javax.naming.NameNotFoundException: No[More]

Resource Ref's settings of a CMP bean in SAS PE 8.2 - Deploytool

Category:DefaultRelease time:2015-10-11Views:130

Dear all, In the deploytool of SAS8.2, in the [Resource Ref's] tab of a CMP bean do I need to set anything here to enable the CMP bean to connect to the database? I already have a JDBC source registered in the server and it is called jdbc/mydatasourc[More]

Resource-ref binding

Category:DefaultRelease time:2015-10-11Views:130

i'm using the weblogic ejb server. i currently have a datasource configured with a jndi name of myDS. i have some stateless session beans using a resource-ref to access the datasource. i'm not a jndi expert at all, but i think jboss by default binds[More]

Looking up Managed ConnectionFactory by JNDI Resource-Ref

Category:DefaultRelease time:-0001-11-30Views:130

Thank you in advance for your help... I'm writing an Enterprise Java Bean using WebLogic Workshop that needs to access a connection factory defined in a deployed Resource Adapter. I'm trying to access the server managed connection factory through the[More]

Adding resource-ref  in web.xml

Category:DefaultRelease time:-0001-11-30Views:130

dos it make any difference adding      <resource-ref>            <description>Application Datasource </description>            <res-ref-name>jdbc/myDataSource</res-ref-name>            <res-type>javax.sql.DataSource<[More]

What's the actual function of resource-ref in web.xml

Category:DefaultRelease time:-0001-11-30Views:130

I was configuring JNDI datasource in tomcat and found an confusing fact. If I have the JNDI resource configuration in the context configuration of the project, I could get access to the JNDI element with or without the resource-ref configuration in m[More]

What's resource-ref for?

Category:DefaultRelease time:-0001-11-30Views:130

I'm a JNDI newbie, so I hope this isn't too dumb. :-) I have a web app that I'm running in Tomcat 4.1.10 against a MySQL database. The app gets the DB using JNDI as described in the JNDI howto that comes with Tomcat. Everything works fine. Question i[More]

Unable To lookup .... weblogic.jobscheduler  and  web-xml resource ref

Category:DefaultRelease time:-0001-11-30Views:130

Unable To lookup .... weblogic.jobscheduler and web-xml resource ref for timer manager JNDI NameNotFound Exception .... Do, i need to configure something get that working. Didn't find any thing on documentation or hosted examples.The default timerman[More]

Hot
Can multiple users authorize one computer on different windows login accounts?  Several family members in our household have adobe IDs + library cards.  When I connect my NOOK color to transfer an ebook within Adobe Digital Editions, it compares the [More]
REPORT  ZXX_BDC_PRA NO STANDARD PAGE HEADING LINE-COUNT 20                                             LINE-SIZE 150 . Program Name  :ZXX_BDC_PRA                             * Object Id     :                                        * Develper Name : p [More]
i can click on the camera app but when it comes up the shutter stays closed please helpif that does not work try this: this will delete the ipos touch. 1. First, Open up iTunes, plug in your iPod Touch to the CPU*'s USB port. Turn on your CPU's speak [More]
Hi , I am using prebuilt mapping provided by oracle to achive dtata lineage between odi and obiee. I am getting error when i run scenario at Create "Same Column dummy Exp" procedure step. Error Info : ODI-1228: Task Create the "Same Column& [More]
Hi! I am trying to recover 10g XE database for my colleague and experiencing some problems that I cannot resolve. He had mayor overheating problem and disk crash due to the failure of air conditioning. OS: Windows Server 2003 DB Version: 10.2.0.1.0 A [More]
my friend brought an iPhone 5c and after 6 months the problems came out which is the display anomalies ang got death pixel on middle left side, so i just wonder what is the problem?? the phone are never drop on the floor is the main point.Take it bac [More]
Hello, I've have two comboxes that drive a treeview and an information textArea that reports on selections from the boxes and eventually from the treeview. i have an Actionlistener class that sets the text in the information box and it works fine but [More]
My daughter lost her ipod somewhere in the house.  Unfortunately it is offline. My home has WiFi is there a way to some how wake it up so we can find it?No. If it is offline then there is no way to find it on the web. The device must respond in order [More]
Hi,        Can we change the time in the default search help as 00:00:00.. By default its displaying current time..Is there any possibility??.. Thanks SriYes, you can default the field value in AT SELECTION SCREEN OUTPUT.Read other 2 answers [More]
Hi, I'm an Ubuntu user and i'm trying to compile the MyDb.cpp file in the directory /examples_cxx/getting_started. During the installation phase i've used the rigth procedure using the --enable-cxx prefix for the configure after when i try to compile [More]