I'm stuck on where to go in my program.
Creating a sort of adapter to send/submit messages from and to legacy system. There are numerous classes but there are a few methods that pack data and unpack it. I'm a little confused on where to go from here.
Code snippets are as follows :
--------------
/**
*method will create a ABC FTPCommand message.
* The ABC message will have source and destination addresses filled out
* along with path to XYZ file in message payload.
* Method will also trigger generation of XYZ file on local file system
* so file can be sent to remote sites.
* @param aAddress
* @return
*/
public Message packFTPMessage(String aAddress)
{
Message aMessage = null;
XYZFileSender aXYZFileSenderFile = new XYZFileSender();
try
{
convertToAddress(aAddress);
this.theoldLegacy.getAddress();
}
catch(Exception e)
{
Logg.Data.ABC, "FileSender error " + e.getMessage());
}
return aMessage;
}
-----------
thanks for any help