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.
Related
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 8 years ago.
Improve this question
I am relatively new to Java and have developed a Java server application that receives small pieces of mass data in a proprietary protocol via TCP from many clients on the internet, sends it to a Postgres database (JDBC) and communicates with other modules using sockets, too.
So far I am using Java NIO for socket I/O and slf4j/logback for logging, apart from that only standard Java stuff.
Now I need to implement the administration stuff that every professional server application needs, e.g. switching logging on and off with fine granularity, make the server reread its configuration, shut the server down cleanly, reset client connections, get usage statistics, etc.
So I'll need to implement some administration interface using Sockets and design some communications protocol, etc. or something like that.
This is such a common task in creation of server apps that I thing someone must have had the idea before to create libraries for this.
Are there any common frameworks for such tasks either in the Java Standard Libraries or from other sources that you can recommend?
The library must be able to run on Linux and Mac OS X and must be Open Source, license preferrably BSD-style or similar.
Bye, Matthias
Maybe you can use JMX and JConsole to do it. Expose your server components as MBeans and grant write access.
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 7 years ago.
Improve this question
we are developing an simulator application where user can create simulation and run the logic. now in second phase of our project we required hardware triggering using web based application . i required some information on how i am going to interact with PLC machine using my java code we are using modbus serial communication but can be changed if you have some other better solution. as par my research we have seen OPC server but i didn't get anything from that. i want some one can help me to understand what will be flow. how to proceed with this. do i have to write driver for communicating with my application and PLC.
What need to be done complete approach this task. if you have any link please share
thank you
I don't know if this is helpful for you, but we have a java library (LGPL 3.0) which talks natively via TCP/IP with S7 devices.
have a look at http://openscada.org
we also have a OPC interface which is written in plain JAVA, no Windows required.
I use this.
http://www.modbusdriver.com/shop/index.php?cPath=0_42
It is cheap, and the examples and support are good. Their support is out of Australia, though, so you will either be answered at 6:00 at night or while you're asleep.
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 5 years ago.
Improve this question
I'm looking for a library that wraps the javamail API on the receiving side, in the same manner that Commons Email handles the sending of emails.
In my perfect world the library works in the following manner:
Subscribe to a mail server
Notify me when an email arrives
Handle attachments for me (why should I care about base64 encoding?)
Disconnect from the mail server
Anybody know of a mail library/API that does the above?
You may look at Jodd Email: https://jodd.org/email/ (see: 'Receiving emails'). Besides for sending emails, it also wraps javamail API for receiving emails. So you can do:
Connect to a pop3 (plan and ssl) mail server
Receive emails manually
Process all received emails using simple API; including multiple messages, attachments, contentIds etc.
Disconnect from mail server
As you see, you have to receive emails manually, so it will not notify your code out-of-box (your point #2). This is done on purpose, as there are many ways how your code can be notified and how received email can be monitored. Most of this is really easy to implement or depends on the rest of your application architecture/used libraries.
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 am working on custom monitoring system to my server.
the application is developed using python and Django.
The server is running java web applications and I need to monitor the JVM under which the application server is running, so I start the applications with enable the JMX.
Now I need to connect my python application to the JVM JMX agent.
Is there any way to get that?
I have read about the HtmlAdapterServer, that enable managing JMX MBeans from specific url but I do not know how can I use it?
Thanks in advance and best regards
How about using Jython ? http://www.jython.org/
There is a reference implementation of a WebServices based JMXServer you can deploy on your server. Based on the docs, it is possible to use VB Scripting to invoke JMX operations, so I would assume you could use Python too.
Update:
Jolokia provides an HTTP/REST API to access JMX MBeanServers. This should be easily invoked by a python client.
Jpype is another option. Start jvm and code java to retrieve glassfish monitoring data. http://jpype.sourceforge.net/
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 7 years ago.
Improve this question
Please recommend me some java client library for sftp and ftp that support directory monitoring.
Thank you.
There is no FTP command for monitoring a directory. Your application will need to connect, request the directory listing and cache it. Then, periodically, connect, fetch a new listing, and compare it to the cached listing.
Note that FTP servers generally will not let you sit there with an idle connection. So, the proper behavior is to disconnect between checks of the listing.
There is an open source library rdp4j which allows to poll for any remote directory.
All that you have to do is to implement adapter for reading from FTP or SFTP server.
edtFTPj/PRO is a commercial Java client library that supports SFTP, FTP and FTPS (and SCP).
As another answer notes, you will need to periodically compare the latest listing with the previous one (disconnecting in between attempts).
The most complete is probably Jakarta Commons Net: http://commons.apache.org/net/