Send message from java not client
I have a java app running on my server and I'd like to send
messages to subscribed clients. All the messaging examples I find
have the messages originating from a flex producer. I want java to
be the producer.
I used this example to get it done.
http://western-skies.blogspot.com/2006/07/flex-sending-messages-from-server-side.html
Similar Messages
-
IMessage sending messages from email not phone number/not working
I have an iPhone 5s and my sister has an iPhone 5c. She told me that my phone was sending her imessages from my email. When I go to change it to my phone number only it has it as a grayed out (will not let me select it). I turned iMessages off and then turned it back on and it still wouldn't so I tried it one more time now I get a "waiting for activation..." under my iMessage switched on. I tried turning it off, hard resetting and then turning it back on but when I go to sign in it says "server couldnt not be reached. try again" and it says that each time i try to sign in.
I guess my questions are: 1) do the imessage servers go down? 2) how do i 'activate" my imessages so it doesnt say 'waiting for activation"? 3) how do i make my imessages come from my phone number and not my email?Associate your mobile number with your Apple ID, if you haven't already done so.
Sign out of iMessage on the Mac:
Messages ▹ Preferences ▹ Accounts ▹ Sign out
and on the iPhone:
Settings ▹ Messages ▹ Send & Receive ▹ Apple ID ▹ Sign out
Then, on the phone, tap
Use Your Apple ID for iMessage
Sign back into iMessage on both devices and test. If there's no change, you may have to wait for a change in network conditions.
Credit for this solution to ASC member SmittyLove and to Glenn Fleishman of tidbits.com. -
Can't send messages from outlook pop client 550 5.7.1 relay error
my outlook users (pop3) are not able to send using the messaging server they receive a 550 5.7.1 no relaying error.
they are located on a lan, the mail server is ouside of the lan (on its own lan) - is there a setting to change, to allow relaying from certain places, or a better solution?
thanks,
s7Authentication is the "safe" way to address this, but, you can rather easily find the ip address where the connection comes from.....
Add "log_connection=1" to option.dat, recompile, and restart dispatcher, and the ip address gets logged...
If your router/firewall does "store and forward", it may be that your second network is seen as coming from the router. If that's the case, and the same ip is also seen as the source for all your external mails, then reconfiguration of your router would be the best route.
We find that routers/firewalls that try to "filter" smtp traffic usually are a "bad idea". These companies know how to do very good firewalls, but are often pretty limited in writing SMTP packages. We see lots of strange errors caused by such. -
Java program to send email from lotus notes
Hello,
Please anyone suggest me how to send email from lotus notes using java.
Thanks.I don't understand the question. Are you asking:
1. How do I send e-mail from Lotus notes manually? Press the Send button.
2. How do I send e-mail from Java? Look into the Java Mail API. Doesn't require Lotus Notes (or any other e-mail client, for that matter).
3. How do I send e-mail to a Lotus Notes address? Just send e-mail to the address (see # 2 above). Nothing special required just because the recipient uses Lotus Notes. FYI: I use Lotus Notes (though I hate it) because it's our company's standard & have written Java apps that send e-mails to Notes. The only time I've had to be aware the recipient was a Notes client was when I was sending HTML formatted messages; then I had to pay attention to the limitations of Notes' brain dead HTML parser. -
Send short message from Java application on mobile phone to server; http
Hello!
My question is: can I send short message from Java application on mobile phone to server - with the use of SMS (WMA) or http connection?
I found this topic http://forums.sun.com/thread.jspa?threadID=5405431 about: "how to send data from midlet to servlet using doPost method".
There is also such topic http://forums.sun.com/thread.jspa?threadID=5408046&tstart=0 about: "CLDC and MIDP - sending SMS to server -> Wireless Messaging API (WMA)".
Please, kindly help me.
Code from the topic mentioned above, edited by me so that it can be read easily:
//http://forums.sun.com/thread.jspa?threadID=5405431
//CLDC and MIDP - Re: how to send data from midlet to servlet using doPost method
I want to know how to pass the values .
for examples : this is what i wrote for doGet
String url = setting.getUrl().toString()"/testProServlet/servlet/UpdateCompanyProfile?userId="+loggedInUserId"&svComp="saveCompHex;
userId and svComp has the data which is very long so i wanted to use doPost.
Now i dont know how to do it.
This is what i have done in doGet (midlet)
public void saveCompanyProfile(String saveComp,int flag,String blankFieldNm)
System.out.println("flag===" flag);
if (flag==1)
displayAlert("Company Profile Edit",blankFieldNm+" field cannot be blank.",AlertType.ERROR, edCmpRecForm, true);
else
String saveCompHex = helper.encodeHexString(saveComp);
// String saveCompHex =saveComp;
HttpConnection httpConn = null;
serverSettings setting = new serverSettings();
System.out.println("saveCompHex===" saveCompHex);
String url = setting.getUrl().toString()"/testProServlet/servlet/UpdateCompanyProfile?userId="loggedInUserId"&svComp="saveCompHex;
System.out.println("url of save company profile:: "+url);
InputStream is = null;
OutputStream os = null;
try {
// Open an HTTP Connection object
httpConn = (HttpConnection) Connector.open(url);
System.out.println("urlMidlet1 save edited company data===::" url.length());
// Setup HTTP Request
httpConn.setRequestMethod(HttpConnection.POST);
httpConn.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
System.out.println("urlMidlet2===" url);
int respCode = httpConn.getResponseCode();
System.out.println("respCode edit company profile=====" respCode);
if (respCode == httpConn.HTTP_OK)
StringBuffer sb = new StringBuffer();
os = httpConn.openOutputStream();
is = httpConn.openDataInputStream();
int chr;
while ((chr = is.read()) != -1)
sb.append((char) chr);
String sResultSvCompanyProfile= sb.toString();
System.out.println("+++++++++++++Company sResult+++++++++++++==="sResultSvCompanyProfile);
if (resultViewCompanyProfile.trim().equals(""))
System.out.println("++++++++++++++If++++++++++++++SaveCompanyProfile===");
displayAlert("Login Incorrect","Username and Password incorrect", AlertType.ERROR, mainForm, true);
else
System.out.println("++++++++++++++Else++++++++++++++SaveCompanyProfile===");
//companyProfile();
displayAlert1("Information","Company Profile edited successfully", AlertType.INFO, profileMenuScreen, true);
else
System.out.println("Error in opening HTTP Connection. Error#" respCode);
//the line below divided into two lines because it was too long
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
catch(IOException e)
e.getMessage();
finally {
if(is!= null)
try
is.close();
catch (IOException e)
// TODO Auto-generated catch block
e.printStackTrace();
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
if(os != null)
try
os.close();
catch (IOException e)
// TODO Auto-generated catch block
e.printStackTrace();
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
if(httpConn != null)
try
httpConn.close();
catch (IOException e)
// TODO Auto-generated catch block
e.printStackTrace();
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
} //end finally
} //end else (?)
} //end savecompanyhi,
SMS API(WMA) is an optional package. It is not a MIDP1.0 or MIDP2.0 api's.
There are phones which has WMA api with MIDP1.0 support .... Nokia 3650
Seimens has some phone with their own api's to send sms.Check out seimens site for more info
BTW, What do you mean buy sending SMS to Server????
If you want to send message to server you can do it with Http.
HTH
phani -
How to send message from Message Driven Bean to JMS client?
In my project I have JMS client, two QueueConnectionFactory and Message Driven Bean. Client send message to MDB through the first QueueConnectionFactory , in one's turn MDB send message to client through the second Queue Connection Factory . I already config my Sun AppServer for sending message in one way, and sending message from MDB to the second QueueConnectionFactory. But on my Client there is an error : �JNDI lookup failed: javax.naming.NameNotFoundException: No object bound to name java:comp/env/jms/MyQueue2� (jms/MyQueue2 � this is the name of my Queue). So it couldn't get this message.
P.S.
Thank you for help!!!What is the name of the second queue?is the connection factory on the local?Yes the connection factory is on the local. The name of my first queue is jms/MYQueue and the name of another one is jms/MyQueue2.
-
when i text people they are getting my messages from email not number. I tried unselecting email but then my messages will not send. I tried resetting network and restarting everything but my number is still gray under sent and recieve. How can I get it to be black so I can select it?
Try signing out of iMessage and back in.
See also this article:
iOS: Troubleshooting Messages - Apple Support -
Why is my iphone sending messages from my email and not my number?
My phone will send messages from my email rather than my number. I have gone to the settings to switch it to send just from my number. When i do that, it does not send. What do i do to fix this problem!?
Hello therealdeal333,
Thank you for participating in the Apple Support Communities.
It sounds like you're only able to send iMessages using your Apple ID (email address) on your iPhone. If you're not able to send iMessages using your phone number, first try signing out of iMessage and FaceTime on your iPhone:
Go to Settings > Messages > Send & Receive, tap your Apple ID, then tap Sign Out.
Go to Settings > FaceTime, tap your Apple ID, then tap Sign Out.
If you send iMessages from other devices (such as a Mac or iPad), sign out of those as well.
Then sign back in on your iPhone:
On your iPhone first, sign back in to iMessage and Facetime.
Sign back in to iMessage and Facetime on your other devices (if necessary.)
You can find the steps I quoted above, as well as more troubleshooting help, at this link:
If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support
Best Regards,
Jeremy -
Suddenly cannot send messages from ipad. Can send from iPhone and they show up on messages but when sending from ipad a they say not delivered
Using FaceTime http://support.apple.com/kb/ht4319
Troubleshooting FaceTime http://support.apple.com/kb/TS3367
The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
http://tinyurl.com/a7odey8
Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/TS4268
iOS: FaceTime is 'Unable to verify email because it is in use'
http://support.apple.com/kb/TS3510
Using FaceTime and iMessage behind a firewall
http://support.apple.com/kb/HT4245
iOS: About Messages
http://support.apple.com/kb/HT3529
Set up iMessage
http://www.apple.com/ca/ios/messages/
iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
http://support.apple.com/kb/HT5538
How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
Set Up Alert Sounds
http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
Extra FaceTime IDs
http://tinyurl.com/k683gr4
Troubleshooting Messages
http://support.apple.com/kb/TS2755
Troubleshooting iMessage Issues: Some Useful Tips You Should Try
http://www.igeeksblog.com/troubleshooting-imessage-issues/
Setting Up Multiple iOS Devices for iMessage and Facetime
http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
FaceTime and iMessage not accepting Apple ID password
http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
Fix Can’t Sign Into FaceTime or iMessage iOS 7
http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
FaceTime, Game Center, Messages: Troubleshooting sign in issues
http://support.apple.com/kb/TS3970
Unable to use FaceTime and iMessage with my apple ID
https://discussions.apple.com/thread/4649373?tstart=90
iOS 7 allows you to block phone numbers or e-mail addresses from contacting you via the Phone, FaceTime, or Messages
http://howto.cnet.com/8301-11310_39-57602643-285/you-can-block-people-from-conta cting-you-on-ios-7/
How to Block Someone on FaceTime
http://www.ehow.com/how_10033185_block-someone-facetime.html
My Facetime Doesn't Ring
https://discussions.apple.com/message/19087457#19087457
How to watch FaceTime calls on the big screen with Apple TV
http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
Send an iMessage as a Text Message Instead with a Quick Tap & Hold
http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
How to Send SMS from iPad
http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
How to Receive SMS Messages on an iPad
http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
You can check the status of the FaceTime/iMessage servers at this link.
http://www.apple.com/support/systemstatus/
Cheers, Tom -
Hello,
I'm trying to send an ADT message from Java using the JMS API.
However, when compiling the java program it complains on the
following statement :
adt_msg.setAdtPayload(empmsg) ;
because it is expecting empmsg to implement the deprecated
CustomDatum interface instead of the ORAData interface.
I suspect the problem is linked with the version of the
AQAPI.jar file I'm using. I tried already the file that comes
with the Linux version and the one with the W2000 version but
both give the same problem.
Any suggestions ????
tx,
Roger.Hi,
The AQ JMS api in 9.0.1 still expects CustomDatum payloads. When
you generate the java class using Jpublisher, use the following
flag:
-compatible=customdatum
In 9.0.2 and iASv2, the AQ JMS api will support the OraData
interface as well. I think if you can get the 9.0.1.2 patch,
that also might work
Bhagat -
Will turning iMessage of not send messages from iPhones through carrier
IIf iMessage is off then will it not send messages from iPhones through carrier
I have iMessage off on my iPhone and it sends and receives texts from everyone, including iPhone users, via the cellular carrier (i.e., SMS & MMS).
-
How do I get my iPhone 4s to send messages from my phone number, NOT email.
My iPhone 4s is sending messages from my email, not phone number (and I want it to
send from my phone number). I looked all over the internet and nothing I tried worked.
Please help it would be much appreciated.iOS: Using Messages
-
My iphone is sending message from my email and not my number. how do i change this?
My IPhone is sending messages from my email and not my number. how do i change this?
Thankyouis something which imessage does to safe you money so when you send an sms while having a internet connection it send it across the Internet because thats free vs. a sms which cost pr send sms
-
Why when I send messages from my iPhone to other IPhones, they come up green and not blue? I have all the settings on for I message b ut my number comes up grey and not black? Please someone help!
Hi evan191,
Thanks for using Apple Support Communities. This article has some steps you can try if your messages aren't sending as iMessages:
iOS: Troubleshooting Messages
http://support.apple.com/kb/ts2755
If you still can't send or receive iMessages
Ensure that iMessage is turned on in Settings > Messages.
To send and receive iMessages, your device must have a valid cellular or Wi-Fi data connection.
iPhone: Troubleshooting Cellular data
iOS: Troubleshooting Wi-Fi networks and connections
iMessage registration validates your Apple ID for use with iMessage. If you are unable to activate iMessage, follow this article.
If an iMessage cannot be sent, it will be resent using SMS or MMS, depending on the content. You can turn this behavior on or off in Settings > Messages > Send As SMS. Carrier messaging rates may apply.
Verify that the Apple ID or phone number is listed in Settings > Messages > Send & Receive.
Cheers,
- Ari -
can somebody tell me what to do with my iMessage in Ipad 2? before i can send message tru iMessage from my contacts who is having the same applications, for the existing one, i can send message but if i want to send message from a new contact, its not working....
Please Rephrase your query.
Maybe you are looking for
-
Issue with configuration of another sunray server on same network
Hello, I'm wondering whether it's possible to have another sun ray environment in the same network next to another. I'm trying to setup a test environment to do some testing, but after installing the server the only server displayed in the test sunra
-
Hi, I am using TAXINN procedure for calculating my taxes. While maintaining excise default I have only kept JCV1 as CVD condition and rest of the field left blank. Now, I am doing Import procurement with zero (V0) Tax code. Following are the procedur
-
Tables for Budget allocated and spent for a WBS element
Dear experts, I am new to PS domain, kindly tell me the table names where I can find the Budget allocated to a WBS element and Open budget for a WBS element. Thanks & Regards, Murthy.
-
"Primary Only" toggle not working
I'm running the Aperture Trial on my new Macbook Pro with Leopard pre-installed. Seeing the Aperture trial version in my apps folder, I decided to give it a spin on some of my RAW images that I've been using Bridge to organize. But I'm getting pretty
-
after installing the 2008-005 security update, it looks that debugger is not working. I tried several restart without success. all i get an entry on the system.log: +Aug 1 06:45:19 kitesurfing com.apple.launchd[108] (UIKitApplication:mauro[0x97cb][54