Curious CMP Deployment problem...

Greetings:

I am attempting to deploy a CMP bean on the J2EE reference server. Cloudscape is the database I am using.

In all of the documentation and books that I have read, when you add such a bean to an application using the deploytool, in the deployment settings window you can create the appropriate table upon deployment of the bean. All of the examples seem to turn this feature on.

But suppose you have already created a cloudscape database, with some data in it, and all you want to do is hook up CMP bean to a table in that database? I have not seen any deployment example that shows how to do this. Even the deploytool help files do not address this kind of scenerio!

Is it even possible to deploy a CMP bean which connects to an existing database table using the Reference Server? If so, can someone please tell me how to do this? I suspect that doing it has something to do with connecting to an "existing datasource", but it is unclear how to do this.

Factor Three

[1034 byte] By [factor3] at [2007-9-26 10:02:41]
# 1

Hi,

Yes you can deploy CMP beans without creating tables. For j2ee 1.3 , when you are deploying. Click on the entity tab(right top ) then click deployment settings.

Here you can select and deselect the options like do you want to create new table whenever you deploy bean and delete table when you will will undeploy bean.

rajnish_ban1 at 2007-7-1 21:53:46 > top of Java-index,Other Topics,Patterns & OO Design...