Forums Register Login

Table name for Container-managed Entity Bean

+Pie Number of slices to send: Send
I'm a beginner for EJB. I'm reading Container-managed Entity Bean documents but I just found out that the deployment descriptor just list the mapping of Container-Managed Fields to DB fields but there is no description for the database table name. How would I specify the db table name in deployment descriptor?
Thanks you all.
+Pie Number of slices to send: Send
I don't know which Version/Vendor you are using but you associate the Table first and then Columns. I am quoting the example from WebLogic Docs:
(jdbc
tableName ejbAccounts
dbIsShared false
poolName demoPool
(attributeMap
; EJBean field Database column name
; -----------------------------------------
accountId id
balance bal
type type
); end attributeMap
+Pie Number of slices to send: Send
I'm using BEA's WebLogic. Your information is very helpful for me. Thanks.

Originally posted by skill123:
I don't know which Version/Vendor you are using but you associate the Table first and then Columns. I am quoting the example from WebLogic Docs:
(jdbc
tableName ejbAccounts
dbIsShared false
poolName demoPool
(attributeMap
; EJBean field Database column name
;


+Pie Number of slices to send: Send
Can you elicit what to do with Jboss for the same issue !

Originally posted by skill123:
I don't know which Version/Vendor you are using but you associate the Table first and then Columns. I am quoting the example from WebLogic Docs:
(jdbc
tableName ejbAccounts
dbIsShared false
poolName demoPool
(attributeMap
; EJBean field Database column name
;


+Pie Number of slices to send: Send
You can make use of the wizard for deploying the beans. In that case you need not create a deployment descriptor xml file yourself and also it is easier with a wizard. Weblogic has a very user friendly wizard next to J2ee Server.

+Pie Number of slices to send: Send

Madhu, Thanks.
You mean that I should the Wizard/tool in WebLogic to create the descriptors for the Entity Beans to deploy it in Jboss.
Also it implies that the table name goes in the descriptor.
Did I understand you correctly ?
Thanks for your help.

+Pie Number of slices to send: Send
As mentioned in the earlier posts here, I was under the impression that you were using weblogic.
But using weblogic to create the xml file and then using this file in Jboss should also work. May be you need to compare both.
You were right table name does appear in the xml descriptor file.
Example :
<table-name>CLASS6</table-name>
+Pie Number of slices to send: Send
The tags are \<\table-name\>\CLASS6\<\/table-name\>\
The xml tags are disappearing. If you clink on the reply icon of earlier mail, the tags are displayed.
Enjoy the full beauty of the english language. Embedded in this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1018 times.
Similar Threads
Container managed Entity Beans
Abstract Persistence Schema in EJB
EJB QL question
I am stuck. Can you help?
[SCBCD 1.3] tables names for CMP entity beans
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:55:36.