Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JDBC in DD?

  Asked By: Danielle    Date: Nov 25    Category: Java    Views: 695
  

I have a small doubt in EJB's..

Where does the database(JDBC) info (oracle or sybase or db2)
is stored in each of these cases. Container Managed
and Bean Managed.

CMP:??
BMP:??

Is the JDBC info stored in DD(Deployment Descriptor)?

Can anyone send a sample DD.

Out of the blue:
I had/have a doubt whether computers support fluorescent colors?

24.5 million colors.. and is fluroscent one of these?

If any one has idea can someone give hex values for
fluorescent green
fluorescent pink

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Bonifaco Garcia     Answered On: Nov 25


In bmp  these things such as getConnection(), createStatement(),
executeQuery() and ... are used in ejbLoad().
Instead in cmp  persistent fields for EJBs are included in a DD file which
in WebLogic is ejb-jar.xml
for example:


<cmp-field>
<field-name>name</field-name>
</cmp-field>
<cmp-field>
<field-name>age</field-name>
</cmp-field>
...

Plus some little things in weblogic-ejb-jar.xml
JDBC stuff such as datasource, table and also mapping between the fields
defined in ejb-jar.xml and the actual attributes of the underlying table
goes into weblogic-ejb-jar.xml

...
<ejb-name>MyEJB</ejb-name>
<data-source-name>MyDS</data-source-name>
<table-name>MyCustomers</table-name>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>cust_name</dbms-column>
</field-map>
<field-map>
<cmp-field>age</cmp-field>
<dbms-column>cust_age</dbms-column>
</field-map>

 
Answer #2    Answered By: Estella Mitchell     Answered On: Nov 25


As you may know I am in NY and working to have another dedicated server
in east coast (NY, Boston, Albany ...) so if you guys have a client
(serious ones) let me know. It would be linux (or similar) with database
connectivity. JSP/J2EE/PHP would be supported ...

Also I can do hosting for charity stuff or more importantly for Important
Interesting Persian(Iranian) sites.

 
Didn't find what you were looking for? Find more on JDBC in DD? Or get search suggestion and latest updates.




Tagged: