Question

Can you receive an inputstream from an external service using connect-ejb?

Can you receive an inputstream from an external service using connect-ejb?

***Updated by moderator: Lochan to add Categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

November 9, 2015 - 6:13pm

I don't think Pega put any constraint on the ejb types, but Java RMI requires the types to be serializable. So short answer, you cannot directly receive InputStream as it is not serializable. You can write a wrapper class implementing Serializable interface and return the wrapper class: similar to what is done here: Java RMI: Serialization - O'Reilly Media. Then run connect-ejb as normal.