• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

urgent!!

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I am working on j2ee.I want to make a connection to sql database
using a session bean.Could you please tell me a simple program
and simple steps in deployment.
thanks
asheet
 
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Get the 'petStore' example (blueprint from sun). It has help for installation and shows how to use 'only' j2ee and cloudscape.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Asheet,
First of all go to your default.properties file in your config folder under your j2sdkee1.2.1 and put the statement in rem where
you are connecting with the cloudscape , i.e
#jdbc.datasources=jdbc/Cloudscape|jdbc:cloudscape:rmi:CloudscapeDB;create=true
and then instead of this write the following statement
jdbc.datasources=jdbc/sql|jdbc dbc:<write the user dsn name here in which you create a database in which you want your tables to be stored>;create=true
now save this file an start your j2ee server again.
While deploying your example inthe codede refrence name give jdbc/databasename and the jndi name as jdbc/sql and the other jndi name give it what you are giving in your lookup call in the client.
if you are not able to get through it. mail me back again , i'll send you the small coded example as an attachment. send me your personal mail id as sending attachment is not possible here.
Hope it works for you
 
There's a city wid manhunt for this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic