Win a copy of Spring Boot in Practice this week in the Spring forum!

Gan nit

Greenhorn
+ Follow
since Feb 02, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gan nit

I need to determine the image size in pixels. I tried to load the image using getDefaultToolkit().getImage and determine the size using getWidth() of the Image class. However, the method always returns -1.

Any ideas on how I can determine the image size. If you have any sample code please post.

Thanks
15 years ago
Hi,
According to tHe EJB spec:

"Accessing resource managers and enterprise beans is disallowed in the session bean methods for which the Container does not have a meaningful transaction context or client security context."

How come Resource Manager access and Enterprise bean access are allowed in the ejbCreate, ejbRemove, ejbActivate and ejbPassivate methods on a STATEFUL session bean. THe spec also says:

"The getRollbackOnly and setRollbackOnly methods of the SessionContext interface should be used only in the session bean methods that execute in the context of a transaction. SInce the ejbCreate, ejbRemove, ejbActivate and ejbPassivate methods of a STATEFUL session bean execute in an unspecified transaction context the getRollbackOnly and setRollbackOnly methods should not be called from these methods."

If the ejbCreate, ejbRemove, ejbActivate and ejbPassivate methods of a STATEFUL session bean execute in an unspecified transaction context, how can they be allowed to access the Resource Manager and other Enterprise beans?

Please clarify.


Thanks very much,
I have the same problem too. When I try to activate the product a message "Download file is corrupt" is displayed.
The support responded to my email asking me to send the installation key and license number.
But I have not got a response to the mail I sent with the information they asked for.

I hope somebody helps me here as I have test coming up next week.