Skip to main content

Fettching SbbEID

6 replies [Last post]
baranowb
Offline
Joined: 2006-01-09

I know, its not covered by specs, more like 100% that its bad idea since it implementation dependable. Just want to hear some feedback regarding "in method behaviour".
How shoudl slee container behave when there is request for sbbeid in setSbbContext method?
I was debuging something and found myself in need of having that info in method mentioned above, any thoughts?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
eduardomartins
Offline
Joined: 2005-10-10

Not possible, when setSbbContext is invoked on a SbbObject creation, there is no SbbEntity assigned. What are you trying to do?

baranowb
Offline
Joined: 2006-01-09

I know that its not assigned, thats why I ask. I was trying to put some debug info to know if sbbs are created properly or not. Yes I can do that in message handlers, but still Im curious about setSbbContext.

eduardomartins
Offline
Joined: 2005-10-10

Not completly sure I'm understanding what you are asking, why don't you describe what really are you trying to do adn how, but each operation to use or retreive data related with the sbb entity when it's not assigned (setSbbContext, initial event selectors, etc) throws IllegalStateException

baranowb
Offline
Joined: 2006-01-09

The question is: should it be possible to obtain sbbeid in setSbbContext method?

eduardomartins
Offline
Joined: 2005-10-10

Even if I don't see any way to get that sbbeid from the SbbContext, like I said in the first reply there is no sbbeid assigned to the Sbb object when setSbbContext is invoked. Why do you need that info?

ivelin
Offline
Joined: 2003-07-13

Its probably OK to be able to obtain such information in a container specific way.
Depending how broad is the application of the use case, it may even make sense to request an addition to the spec to allow it. So, what is the use case?