• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Tutorial for writing resource adapter

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a tutorial with an example which explains how to write resource adapter.My search returned a lot of documents with a lot of talk but not action - not a sigle example of how to. I am trying to use it with IBM Websphere 6.0.
I have to write a custom adapter as I am try to connect to an unusual piece of industrial equipment.
TIA, Haris
 
author & internet detective
Posts: 41113
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Haris K",
Welcome to JavaRanch!

Please take a look at the JavaRanch Naming Policy and adjust your display name to match it. Note that your display name must be a first and a last name (not just a last initial) separated by a space character, and must not be obviously fictitious.

Thanks,
Jeanne
Forum Bartender
 
Haris Karameh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry about my username. I registered 3 years ago but did not post. Now, I updated my display name but somehow my login name is still shown
 
Jeanne Boyarsky
author & internet detective
Posts: 41113
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Haris! Your display name is good now.

Did you check in the WebSphere help or redbooks?
 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Something tells me that your industrial equipment doesn't support a file system, does it ?

What comm protocol does it communicate with your server ?

Originally posted by Haris K:
Is there a tutorial with an example which explains how to write resource adapter.My search returned a lot of documents with a lot of talk but not action - not a sigle example of how to. I am trying to use it with IBM Websphere 6.0.
I have to write a custom adapter as I am try to connect to an unusual piece of industrial equipment.
TIA, Haris

 
Haris Karameh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I checked redbooks but search turned out nothing usable.
My equipment has custom serial protocol and there is a need to connect the application to OPC server at the same time. I have a pretty much good idea how to do it (it would not be problem for me to write a driver in C), but how to make it Resource Adapter for WS which can be used by multiple users simultaneously - I do not know where to start.
Still looking for help
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the link for some source code for Resource Adabtors.
http://j2eeadapters.sourceforge.net/propra.html

I am also writing one for reading xml files and using the code from here as an information.

There are also already available resoure adaptors at this site.
http://java.sun.com/j2ee/connector/products.html
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another link to understand JCA:
http://www-128.ibm.com/developerworks/edu/j-dw-javajca-i.html
 
Ken Loh
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was trying to google for "resource adapter pattern" and almost at the top of the result list comes this. Hopefully it is of some use to you.
 
Haris Karameh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys. I'm going to check resources you mentioned. I is going to take some time.
Haris
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic