Greetings,
I'm new into
Java and Weblogic and my company tasked me to port Notification Services that were written in Delphi into Java and Weblogi Server.
I wrote Java Application using Java Task Timer on the main class and below is example of my main class:
How do i deploy this on a weblogic server...?Please advice I dont have clue where to start. I read about WSDL and EJBs but I stucked because I created just a simple swing with a Main class.
import java.util.Timer;
import java.util.TimerTask;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import org.hibernate.*;
import org.hibernate.cfg.Configuration;
import org.hibernate.classic.Session;
import org.apache.log4j.*;
public class MainProject
{
static Logger log = Logger.getLogger(
MainProject.class.getName());
public static void main(
String[] args ) throws Exception
{
int StartTime= 10000; //Start Time
int delayBetweenExec = 6000; //Delay Time
Timer timer = new Timer();
timer.schedule(new TimerTask()
{
@Override
public void run()
{
MailMail.SendUnsentEscaltion();
}
},StartTime, delayBetweenExec);
}
}