I'm not an EJB guru, but if what you're saying is true, that is a
serious shortcoming of EJBs.
I just can't think of a way to do this since all parsers either take an URI or a stream-based input as the argument. URI is ruled out since you don't want to store the incoming string into a file. Stream-based is ruled out since you say you can't use any IO streams....
Let me ask you this. In the original question you said "). I don't want either to store the string into a file or using IO classess i.e. StringReader." Is it because EJBs don't support IO streams or is it your design decision ??