TopLink Essentials (default GlassFish provider) doesn't support either option, but other providers might do. Keep in mind that this will be their own extention to the spec requirements.
For a portable application, your only solution is to dynamically create the IN clause inside your method body depending on the size of the collection or an array.
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=232358