Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I need to read email using a java application. I have Javamail samples from http://java.net/projects/javamail/downloads/download/javamail-samples.zip But how do i get the email server parameters from lotus notes which is configured on my system which i should use in Javamail program?
Javamail implements the protocols POP3, IMAP and SMTP. On a "normal" Domino- Server the only protocol that is started is SMTP and you can send mails using the fully qualified hostname of your Domino- Server.
But this will only work, if your administrator does not restrict access to SMTP.
Receiving mails will not be possible unless your Domino administrator loads and configures the tasks "POP3" and / or "IMAP".
Most admins wont do that, as these protocols are not necessary for the normal use of a domino server where the communication with the clients goes over protocol NRPC (Port 1352), a proprietary protocol by IBM.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
As we know,we provide http service listenning at 80 port,https service listenning at 443 port. Why don't we provide two services on one port? What is the specific reason? And how does netty server supports both Http and Https protocols with a single port?
You can do this but I think its a bad idea as both ports are well defined for either http or https. That said if you really want to do this you can detect if SSL is used or not based on the first 5 bytes of a message and then inject the SSL handler on the fly.
Netty itself includes OptionalSslHandler which does exactly this for you:
https://github.com/netty/netty/blob/netty-4.1.32.Final/handler/src/main/java/io/netty/handler/ssl/OptionalSslHandler.java
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
My question is how can I forward a port automatically in a server.
If anyone knows the game "Minecraft" the user have an option to create a server so anyone can join.
Now what I didn't get is how the server automatically forward the port.
Currently i do not have any code to show.
Thanks In advance.
What minecraft does is creates a local port that is listening for connections. I think what you are asking though is how does the other user get through your router to your server. The answer to that is it uses UPnP to tell your router what ports to forward from the wider Internet.
If you want to implement something similar, look for UPnP libraries for Java or whatever language you are writing in.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have registered to the free AWS plan, and I wish to run a pure java server code I have written on this machine, so I will be able to take this server's IP and use it to connect with my client.
After some searching in AWS I have found many products and features, but I still don't understand how to perform this simple task.
Create a new EC2 Instance SSH into it, install java and prerequisites.
Ensure -
Your Security Group is opened for port 22 for external internet - 0.0.0.0/0 ( or at least your IP )
Use t2.micro instance size - only that is covered under the free tier
Remember to save / store your keypair safely
Check the below links
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-instance_linux.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-connect-to-instance-linux.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-add-volume-to-instance.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-clean-up-your-instance.html
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a web application deployed on the Jboss 4.2.1 server. I can access the application using following URL.
http://localhost:8080/myApp
But I am not able to run the application using my machines IP address like below.
http://192.168.0.100:8080/myApp
I want other developers on my network to be able to test the application deployed on my machine using my IP address.
What are the changes that I need to do in the JBoss configuration so that I can access Jboss using the IP address instead of the localhost?
You need to an extra flag while running. ./run.sh -b0.0.0.0
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I want to use a mail server where the users send emails to it and then I parse this emails then do some action.
Please suggest me what mail server to be used and where to start.
You can also use JavaMail API to read a POP3/IMAP mailbox on your regular mail server. This makes it easier to use a mailbox in your regular domain. Camel packages these API's at a high level and makes it really easy to integrate with mailboxes, transform the message inside and send the results wherever they are needed.
Now if it are easy things you need to do then you can configure most mailservers to deliver mails to a script. This is REALLY easy but Java is not really suitable to write this script in because the startup cost of the JVM is too high. A simple batch script or perl/ruby/vbscript thingy could be all you need.
Are you saying you want to use Java to send a mail message to a mailbox configured on your mail server or to read from the mailbox and to process the message? So you just want to know of a mail server you can install on your local pc to test with? If that's the case and you are running on a Windows OS you can install hMailServer. If you are using Linux / Unix you can configure Postfix.
Apache James is a mail server written in Java that you could use.