[gt-user] Multiple Services sharing same Resource....!
Asif Akram
asif_akram at hotmail.com
Sat Mar 18 15:45:05 CST 2006
Hi,
I have little confusion related to different WSRF Services sharing the
same resource. I have two Services i.e. Service A and Service B; both have
same ResourceHome and thus same Resource class. Both Services are performing
different operations on different resource properties of the same resource.
I can instantiate resource thorugh Service A and Service B which are
definately different instances of resources, but when I try to pass resource
EPR created by Service A to Service B it suddenly gives error Resource Not
Found.
What I have noticed is that Service A and Service B have their own instances
of ResourceHome thus they can't directly work on resources instantiated by
other services. To overcome this problem I have static HashTable in the
ResourceHome and storing resources myself; this solution is working for me
and I can share the resources between different WSRF services no matter
which ever service has instantiated the resource but I am not comfortable
with this solution. I believe there should be better solution or maybe
better built in option through deployment descriptor or jndi-config.xml.
Anyone knows any better to way to tackle this Resource Sharing .....!
Thanks
Asif
More information about the gt-user
mailing list