For instance we have several systems that have
java gui's and use RMI to call
servlets that run and get the data from mainframe DB2 databases. These databases are so
HUGH that there is NO WAY you would want to try anything but a mainframe, but we still want the nice GUI front ends. Slowly we are replacing lots of mainframe screens with Java.
Actually I think the term Legacy relates to more than just mainframe systems. It is any of the older procedural non-internet type applications. Technically an old DOS game is a Legacy application because it is so old that it does not work well with todays technology.