• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tutorial for writing resource adapter  RSS feed

 
Haris Karameh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • 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
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Haris! Your display name is good now.

Did you check in the WebSphere help or redbooks?
 
Ken Loh
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
Thanks guys. I'm going to check resources you mentioned. I is going to take some time.
Haris
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!