• 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

Swing client, RMI, OC4J, Oracle dB

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you in advance...
i'm a newbie with RMI and OC4J. i'm trying to build an application that has a Swing client, talk(RMI?) to the OC4J(app server), connection(jdbc) to Oracle dB. i believe this is the architecture that needs to be implemented. this also follows the MVC pattern. i got this from reading all sorts of articles, websites, white papers...but have no understanding of how everything works together!
the question: are there any sample applications/programs that exist, so i can use it as a reference? i've done some sun and oracle tutorial, but it was just "hello world" example.
i've done the traditional Swing client connecting(jdbc) to Oracle dB. this architecture will not work with the application i'm trying to build.
thank you again...
sin sai
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Perhaps there is no sample application that uses RMI and JDBC with Swing Client. You will have to plumb the components together.
Let me give it a shot - you will have entities on the server that use JDBC to talk to the database. Once you have the serverside component tested,
simply RMI-enable these classes by using rmic compiler and generating the stub and skeleton. The Sun RMI tutorial provides good information on how to do this. After this you will have to just write a Swing client to access the services provided by the server components using RMI.
Again, I personally haven't seen an example MVC implementation using Swing. Take a look at the Observable interface to get some idea.
Good luck and have fun
reply
    Bookmark Topic Watch Topic
  • New Topic