• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

BES 5.2.1 JBuilder 8 Ent cmp ejb mssqlserver

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I didn't find any explicit documentation on deploying a cmp bean from
JBuilder 8 Ent to BES 5.2.1 so here are my steps.
0. Attach your jdbc jar to your partition through Borland management console.
1. Create a new datasource in BES management console.
a. Borland management console -> right click on
default-resources.dar->deployment descriptor editor
b. Right-click 'default-resources.dar on partition ...' -> 'New Jdbc
Datasource'
c. Enter a name: ie. serial://datasources/MyDB
d. Because I'm using SQL Server
Datasource Type: Other(JDBC2)
Class name: com.inet.tds.PDataSource
You need a ConnectionPoolDataSource class from your jdbc driver.
I'm using the i-net jdbc driver
'Driver Properties' tab:
user: <user>
password: <password>
databaseName: <database>
serverName: <server>
'Pool Properties' tab:
dialect: Enumerated: mssqlserver
2. JBuilder: Create an ejb module
3. JBuilder: Add a datasource making sure I name the datasource the same name from
step 1. (ie. MyDB - you don't need to put in the serial://datasources...
part)
4. JBuilder: create a cmp.
5. JBuilder: deploy the cmp
6. JBuilder: create a test ejb client
7. JBuilder: run the test ejb client. and walla!! It works!!
You don't need to redeploy the default-resources.dar. It gets done
automatically.
One gripe I have with the deployment descriptor editor is that the
Datasource type always reverts to JDataStore for a Other(JDBC2) type.
Thanks again to Krishnan Subramanian for all his help in figuring this out.
-Yoo-Jin
[ August 13, 2003: Message edited by: Yoo-Jin Lee ]
[ August 13, 2003: Message edited by: Yoo-Jin Lee ]
reply
    Bookmark Topic Watch Topic
  • New Topic