can a Portlet open a Java socket connection or an RMI connection to a Java Socket/RMI Server?

Viewpoint
Teradata Employee

can a Portlet open a Java socket connection or an RMI connection to a Java Socket/RMI Server?

Aloha,

Q1. We have a specific requirement... Our Portlet has to communicate with a Java Socket Server OR a Java RMI Server... Is this doable, I mean can we open a socket connection or an RMI connection from inside a portlet's java classes?

Q2. Can a portlet access/traverse/read the local file-system structure of the Viewpoint SLES server?

Cheers,
Bilal