Stephen O'Connor

Greenhorn
+ Follow
since Oct 19, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Stephen O'Connor

hi all,

I have done some investigating and I have come up with this use SMPP protocol (to send my sms alert from my trayicon) as my mobile phone users will different mobile carriers

Carriers such as eircom, Vodafone, 3g ect.

I have downloaded installed SMPPSim to test my sms alert.

I have being reading about SMPP and what I have learned so far is that jsmpp is easiest way to send a sms to SMPPSim.
The problem I have is trying to get the jsmpp api to work using eclipse I have tried the web for any relevant information but I have not found anything up-to-date, there was a sms forum but this has closed down.

I want to send a sms alert from my trayicon to SMPPSim then to a mobile phone.

My first question does anyone know is it possible to use JSMPP with eclipse? the problem I am having is with the simplysubmitexample is failed to connect and bind to localhost port 2775.

If the answer to this question is no, can some please point me in the right direction I would like to send a basic alert using the SMPP protocol form my swt trayicon to SMPPSim.

I have searched this forum and a few other forums for jsmpp, there is no jsmpp section in this forum to post my question so that’s why I post it here.

thanks.
9 years ago
ok ok, I got Quartz Scheduler working heres a link to tutorials that I found very helpful if anyone else is intrested http://www.roseindia.net/quartz/download-quartz-scheduler.shtml these tutorials show how to set up quartz with eclipse.

my notifier is a swt window that pops-up at the scheduled times EASY

now for the send sms alert to my user this I am finding

I have downloaded smppapi and built it in eclipse I have tryed this tutorial http://onjava.com/pub/a/onjava/2004/06/09/sms.html?page=2 but cannot get the smsdemo to work in eclipse and I have smppsim up and running but do not know how to send an sms to it.

so where do I start?
1. create a sms sending application?
2. create a connection to a sms center?
3. bind?
4. send sms?

any help please with these questions would be great or anymore very helpful advice would be greatly appricated.

thanks.







9 years ago
Tim,

thanks for the reply its a great help, no wonder I was havin so much trouble with those darn jad files..

Ok, so yes I have an excellent web application that has loads of cool features and I do want to send sms from my webapp but I want to send alerts to my users when the webapp is closed.

I created a swt trayicon that notifies the user when the parent webapp is closed..

What I now want to do is take a look at this Quartz Scheduler and see how I can run it with my java trayicon, hmmm is that right (I hope its as simple as that)?

As for the sms gateway at this moment all I want to do is send a sms to an emulator so I have downloaded SMPPsim. SMPPsim is this what you mean by a web-based SMS gateway service?

Thanks a mill, glad to read you don't charge EXTRA or should that be ANYTHING for multiple threads ?


9 years ago
Hi all,

I have a couple of questions that I hope someone can take the time to answer...

first very briefly I will explain what I am trying to do, I have a swt trayicon that is launched by jnlp/jws it notifies the user at certain time intervals with a basic alert message. I want the users mobile phone to recieve a sms message at the same time as the trayicon alert message.

What I have done so far is installed j2ME.
Created a MIDlet suite with a JAD and JAR file.
Tested it in j2me OTA with the built in emulator it works fine sends an alert messge to the emulator phone with the current time.

Now for the questions

1. How do I launch the JAD file? I have tryed to launch from apache tomcat but alas I cannot make it work.
2. How do I open the emulator from the browser do I need another emulator besides the J2ME built in emulator such as MicroEmulator??
3. how to launch the JAD file at same time as the JNLP file?
4. Can I jar the my trayicon files with the MIDlet file or is the MIDlet send sms to be jared seperatly?
5. Is this easier to do in EclipseME?
6. Is there a limit to how many questions I can ask in one topic ?

thanks
9 years ago
hi,

need some help please with swt trayicon.

I have a swt trayicon, that displays tooltip messages but what I want is to display an alert message to the user of the trayicon at specific times, for instance a message is displayed to the user "you have worked 6 hours" this message is to be displayed after 6 hours of the trayicon invoked to the "systray".

I dont want to stop there though, I also want an sms sent to the users moblie phone telling the user 6 hours has pasted.

my first question is possible with swt trayicon?

second question does anyone know of an example where trayicon alerts user with a trayicon message and trayicon sends a sms to the users mobile phone?

as usual any help would be much appricated.

Thanks.
9 years ago
hey,

WHOOPEE!! got swt working with jnlp, using these instructions

http://www.eclipse.org/swt/jws/

and I used the HelloWorld1 basic code from

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet135.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD

RESULT a blank swt window thats launched from my browser.

Now, I wonder how easy is it attach some code to this Helloworld1 application for it to minimise into "systray" or is this a waste of time?

any advice would be greatly appreciated.
9 years ago
hi everybody,

I am trying to create a basic trayicon that launches from my webapp. I going to use swt, jws and jnlp. I hope that this is right?

I have started with this basic tutorial http://www.ibm.com/developerworks/opensource/tutorials/os-eclipse-jws/os-eclipse-jws-pdf.pdf

everything works fine until I get to the final stage of "export the wrapper feature" after exporting I go to my features folder (as instructed in the tutorial) the features folder has the jar files but not the simple jnlp files. I have following the instructions exactly and exported the wrapper several times but still I get the same result.

my question is has anybody tried this tutorial and is it a good one to start learning about jws/jnlp and of course has anybody any idea what I am doing wrong with the export???.

this is what I am using
windows xp
eclipse 3.3
xammp localhost
9 years ago
Paul,

Thanks a million for taking the time to answer my questions. No wonder I was having so much trouble trying to get that applet to work. I see what you mean by the same process, makes sense alright.

Maybe not horrendously difficult, just difficult for me anyway... what do you mean by getting the configuration right?

Have you any suggestions on where to start? so far I took a look at wiki and the sun tutorials do you know of any good site to learn about JWS with good examples?





9 years ago
hello Paul,

thanks for yr response and yr advice. so an applet is not a process but a JFrame is? I got some code that runs a JFrame from command prompt, the code is a basic JFrame that minimizes to "systray".

Can I display a frame or dialog using an applet and the frame contains a button that when the user clicks the button the frame is minimised to the "sysTray"? its just I have been tring to learn about applets and now I have to learn java web atart. I hope it wasn't a total waste of time..

will take a look at javaws its always fun to learn something new.






9 years ago
hello everybody,

I am new to all of this Java stuff and would like some help with an applet that I am trying to minimize to the systray. If this is possible?

why I am using an applet? I need a small app to launch from my database system that has a php front end, basically I have a php mysql database program that records an employees work time. What I need is, after closing the parent system a small app that launchs and runs in the system tray. This app/applet is launched from the php page displays a message then is minimized to the system tray.

so far I have an applet with a JFrame and Jpanel I have a windowlistener that will display a joptionPane but will NOT invoke my TrayIcon class below is the code that I am using.

Any help would be much appreciated.

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;



public class WritsGui extends JApplet

{
public void init()
{
// create a frame with a JLabel


final JFrame frame = new JFrame();

frame.addWindowListener( new WindowAdapter() {
// This window listener responds when the user
// clicks the window's close box by giving the
// user a chance to change his mind.
public void windowClosing(WindowEvent evt) {

JOptionPane.showConfirmDialog(null, "or no",
"choose yes",JOptionPane.YES_NO_OPTION);



}
});



frame.setTitle("Writs");
frame.setSize(600, 400);
frame.add(new JLabels());



frame.setVisible(!frame.isVisible());


}

}


class JLabels extends JPanel
{


public JLabels() {


// create button

JButton btn1 = new JButton("Button1");



setLayout(new BorderLayout( ));


ImageIcon labelIcon = new ImageIcon( "Logo.png" );
JLabel centerLabel = new JLabel( labelIcon );
JLabel southLabel = new JLabel( labelIcon );
add( southLabel, BorderLayout.NORTH );


// add button to panel
add(btn1, BorderLayout.SOUTH);

// create button action

ActionListener listener = new trayTest();


btn1.addActionListener(listener);


add(new JLabel ("<html>The Applied Physics Laboratory is a division " +
"of the Johns Hopkins University." +
"<P>" +
"Major JHU divisions include:" +
"<UL>" +
" <LI>The Applied Physics Laboratory" +
" <LI>The Krieger School of Arts and Sciences" +
" <LI>The Whiting School of Engineering" +
" <LI>The School of Medicine" +
" <LI>The School of Public Health" +
" <LI>The School of Nursing" +
" <LI>The Peabody Institute" +
" <LI>The Nitze School of Advanced International Studies" +
"</UL>"),BorderLayout.CENTER);

}

}


class trayTest implements ActionListener
{
public void actionPerformed(ActionEvent event)
{

if (SystemTray.isSupported()) {
SystemTray tray = SystemTray.getSystemTray();
Image image = Toolkit.getDefaultToolkit().getImage("today.jpg");
PopupMenu popup = new PopupMenu();
MenuItem item = new MenuItem("A MenuItem");
popup.add(item);
TrayIcon trayIcon = new TrayIcon(image, "The Tip Text", popup);
try {
tray.add(trayIcon);
} catch (AWTException e) {
System.err.println("Can't add to tray");
}
} else {
System.err.println("Tray unavailable");
}
}
};







9 years ago