there is a little amount of actually useful examples for SMBJ on the internet and didn't find one for establishing a connection with an smb file share using Java & the smbj module. Can someone provide me with an example?
thanks :)
You can find examples from Github:
https://github.com/hierynomus/smbj#examples
Related
I need to import a JDBC driver into my project, but it uses a handful of classes Android doesn't provide by default, such as javax.naming.* . I've tried to import those as an external library, but they in turn reference multiple other libraries (com.sun.naming.*,com.sun.jndi and so on) as well, rendering this approach impossible to succeed.
Question: what is the best way to approach this problem?
Thank you.
There is no best way for solving your problem. Unfortunately, JDBC is not used with Android, so the best way is not use it. There are many other database solutions to work with.
IMHO, I certainly would not recommend it. Why? Because JDBC is designed for high-bandwidth, low-latency, highly-reliable network connections. For example, desktop to database server, Web application server to database server and so on. Mobile devices offer little of these, and none of them consistently.
Hope it helps.
After going through so many google sites, reading so many QA in stackoverflow, really getting confused how to implement SP using SAML 2 with Java.
I understand the theory concept but not getting a clue how to implement it exactly.
Currently, my client already shared IDP metadata file with me and asking for SP metadata file. This is my first struggling point.
How to generate metadata files actually? Is there a tool to generate it?
How to implement SAMLRequest generation, SAMLResponse parsing using Java libraries.
People recommending so many publicly available sites which supports IDP, SP functionalities but could not be able to choose the right one to proceed. I need some specific example of Service Provider implementation in Java with SAML 2.
Really appreciate if somebody help me in this context. Please correct me if my questions are not clear so that i will try to edit it.
If you need to build a SP in Java I would recommend using Spring SAML module or the OpenSAML library, but these may give you more work. If you end up using OpenSAML I have a book, A Guide to OpenSAML, introducing the SAML and the OpenSAML library.
I also have a blogg with many examples.
I would however recommend that you first look into using a ready product for SAML like Shibboleth which is a free and open source solution for SAML. This will save you from needing to learn the specifics of the SAML protocol and also it will be much safer as different security considerations have already been made by the developers.
#Stefan has some good suggestions.
What you need is a SAML protocol client side stack. Refer : SAML : SAML connectivity / toolkit and the links inside the article.
In terms of your questions, different stack do this in different ways. Some of the commercial stacks that I have used have excellent documentation and sample code to do all this.
the OpenSMPP homepage does not contain the documentation of OpenSMPP itself, only the protocol references. Could somebody give me some advice where on Earth can I find documentation and code examples on how to use the OpenSMPP API itself, especially regarding what classes can be used for receiving asynchronously?
Thank you!
If you want to get the API (Javadoc)
- this will be resolved by your IDE if you include the library in your project follwing the instructions here http://opensmpp.org/downloads.html
- if you want to download the API manually start to have a look here https://oss.sonatype.org/content/groups/public/org/opensmpp/
For examples you could have a look in the unit tests, clone (or download) the project https://github.com/OpenSmpp/opensmpp.git and have a look for sources in the 'client/', 'sim/' or '*/test/' folders.
For testing purpose this tutorial might be also of interest: http://mobiforge.com/design-development/sending-sms-with-smpp-kannel-and-java
I would like to use the mms-computing.co.uk.device.twain.jar library in a Java project that should talk to image acquisition devices.
I noticed that the site of mms-computing is unavailable; I could download the jar from another site but I can't find any examples or documentation about the methods exposed by that library and how to use them.
Can someone help me providing a link where the documentation is still accessible, if any?
you can see this link
http://thorntonzone.com/manuals/Compression/Fax,%20IBM%20MMR/MMSC/mmsc/uk/co/mmscomputing/device/twain/pdfapplet/index.html
This have many examples but few documentation.
I hope it will be useful to you.
I'm looking at using javamail to download email/gmail using imap in a swing application.
According to the FAQ on javamail http://www.oracle.com/technetwork/java/faq-135477.html#localprovs I'm going to need a "local store provider", does anyone have any recommendations or advice on ones to avoid / choose?
I had presumed that I would just store the messages in a database - is that a bad idea?
I'm really looking for the simpest solution I can find - but actually works!
Both JavaMailDir and Plexus mentioned in the other answers should work. However, I will add that after working with both (for reading messages from an actual inbox, not just as a local store) JavaMailDir seems to have some issues running on Windows. Particularly with the fact that the ".INBOX" folder begins with a dot.
JavaMaildir seems to be simple enough as you want from the examples
The full list of providers is on the Sun website.
Two providers I know:
Mstor: mbox provider
plexus: maildir provider, not much doc available