I've a stateless session bean implementing a web-service.
The following code works only in jboss 4.0.1sp1 and correctly return an
InputStream of 17MB but returns an exception in jboss4.0.2final: "No cache"
Message msg = MessageContext.getCurrentContext().getRequestMessage();
Iterator attachs = msg.getAttachments();
while (attachs != null && attachs.hasNext())
{
AttachmentPart ap = (AttachmentPart) attachs.next();
int sz = ap.getSize();
DataHandler dh = api.getDataHandler();
InputStream is = dh.getInputStream();
}
NOTE:
- the code works for small attachments in both versions but only in
jboss4.0.1sp1 if the attachment is bigger (17MB)
- the size is corectly returned (17MB) in both versions.
- I've had noticed that in the server/deply/tmp directory
What happens? Is there a bug in the final release?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877623#3877623
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877623
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user