Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transcation attribute in BMP

 
Sachin Dimble
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Morning Ranchers!!!

I have BMP of three methods deposit,withdraw,transfer having trans attr as-

deposits--->Supports
withdraw--->Never
transfer---->Supports

I am not maintaining any client transcation. Client will simply make call to desosits & withdraw. But when i try to run client code for above secenario my server gets shut down, throwing huge exceptions. If i change attr of deposite to Never it works fine.....My q is why trans attr are not working according to their specification???

Thanx.
Sachin!!!
 
Greg Charles
Sheriff
Posts: 3012
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your server shuts down? At worst, it should throw an exception back to the client. I think we need more information.

What server is it?
When does it shutdown? When you deploy the bean or when you call the method?
Are you saying tranfer is OK with the "supports" attribute, but deposit is not?
How can an entity bean do a transfer anyway?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!