Questions tagged [mina]

Apache MINA is a network application framework which helps users develop high performance and high scalability network applications easily. It provides an abstract event-driven asynchronous API over various transports such as TCP/IP and UDP/IP via Java NIO.

Apache MINA is, according to its website, a network application framework which helps users develop high performance and high scalability network applications easily. It provides an abstract event-driven asynchronous API over various transports such as TCP/IP and UDP/IP via Java NIO.

Apache MINA is often called a(n):

  • NIO framework library,
  • client server framework library, or
  • networking socket library

Apache MINA comes with many sub projects:

  • Asyncweb: An HTTP server build on top of MINA asynchronous framework
  • FtpServer: An FTP server
  • SSHd: A Java library supporting the SSH protocol
  • Vysper: An XMPP server

References:

157 questions
34
votes
4 answers

Why does select() consume so much CPU time in my program?

I have several Java applications that use MINA, and all of them use 20 MINA threads. One application serves around 10,000 concurrent connections, that are usually idle but receive input sometimes. 20 is likely a reasonable threadcount for that…
djechlin
  • 59,258
  • 35
  • 162
  • 290
8
votes
1 answer

Application takes very long to terminate

We have writen a console application (will be used as service) that starts several worker threads for handling requests coming in via mina. The application leaves the main loop when a stop signal is received on a specific network port. This is the…
user331471
  • 873
  • 1
  • 9
  • 19
7
votes
3 answers

Is Apache MINA dead? (23/10/2013)

At about four days ago, I started studying the Apache MINA framework. I particularly found it very interesting, but soon I noticed that the study material was incomplete. What I looked in the "user guide" site, I saw that it appeared to be outdated,…
Loa
  • 2,117
  • 3
  • 21
  • 45
6
votes
1 answer

Apache MINA SFTP - limit the directory structure that the user sees

Am using Apache MINA SSHD to build my own custom SFTP Server. I want to limit the file system my user sees. I just want them to see the directory structure under /aa/bb/cc I do not want them to be able to see or navigate any other folder. And from…
Swaroop Rath
  • 141
  • 1
  • 4
5
votes
3 answers

How To Handle Incoming Files In Apache Mina SSHD SFTP Server in Java

Currently i am working on a SFTP protocol.I have created SFTP client Using Jsch Library and SFTP Server using Apache Mina Sshd library.I have made connection between them and can successfully send files to SFTP server.Now i am working on creating a…
gihan-maduranga
  • 4,381
  • 5
  • 41
  • 74
5
votes
2 answers

Rails - Mina - not able to load environment variables in database.yml file

Mina is not able to load environment variables which are in database.yml file as mentioned below: deploy.rb: task :deploy => :environment do deploy do # Put things that will set up an empty directory into a fully set-up # instance of your…
Peter Prabu
  • 1,128
  • 10
  • 20
5
votes
3 answers

How do I set up git in deploy.rb in a rails 4 app using mina?

I am trying to use mina to deploy my app to a digital ocean server and have a git repo on bitbucket. I was able to run mina setup' just fine, but when I runmina deploy` I get an error. my deploy.rb require 'mina/bundler' require 'mina/rails' require…
oobie11
  • 723
  • 1
  • 8
  • 20
5
votes
1 answer

Proper deployment of a Rails app with Mina and Foreman

For production purposes I need three processes running. This is my procfile and I use Foreman to start them: web: bundle exec rails s Puma -p $PORT queuing: bundle exec clockwork clock.rb workers: bundle exec rake resque:workers For deployment I'm…
Matic Jurglič
  • 831
  • 9
  • 26
5
votes
1 answer

Trying to implement PublicKey Authentication for SFTP test server using Apache Mina. However Authenticate method is not being called

I am using Apache Mina SSHD to implement a test SFTPServer. I have been able to get things working for simple Password authentication, however I am not able to configure things for PublicKey Authentication. I have a implemented the…
Mark
  • 51
  • 1
  • 2
4
votes
2 answers

UDP transfer is too fast, Apache Mina doesn't handle it

We decided to use UDP to send a lot of data like coordinates between: client [C++] (using poll) server [JAVA] [Apache MINA] My datagrams are only 512 Bytes max to avoid as possible the fragmentation during the transfer. Each datagram has a header…
itMaxence
  • 1,230
  • 16
  • 28
4
votes
0 answers

Apache Mina SSHD SFTP server fails to list some directories on Android

Using Apache Mina SSHD I've implemented an SSH and SFTP server in an Android app I'm working on, and I can log in through SSH fine, ls the root directory, cd to 'mnt/sdcard' and ls - all of this is working fine. I can also get su and do whatever…
math-eww
  • 290
  • 3
  • 13
4
votes
0 answers

Camel, Netty, MINA: Two Way Asynchronous Communications Between Server and Client

From my limited understanding of Camel's MINA2 and Netty Components I see that I can do one way communications and request-reply communications but I want to be able to send messages from the client to the server and from the server to the client…
thpatel
  • 160
  • 1
  • 10
4
votes
3 answers

Apache Mina and JSch can't set home dir

I'm trying to write a unit test using Apache Mina and JSch and I'm hitting a problem that I'm sure has to do with the way I've set up the filesystem on Mina. Here is the Mina setup code: sshd =…
user3403657
  • 137
  • 1
  • 4
  • 14
4
votes
0 answers

Apache Mina + SSL + Android not working

I'm developing an Android app using Apache Mina for network IO. Non-SSL connections (reading, writing) work fine, but as soon as I add an SSL filter things stop working. I also tried pure SSL sockets and they work fine. This is my Mina connection…
mikejohnharry
  • 103
  • 1
  • 6
4
votes
2 answers

Rails / Mina Gem Creating Custom task to do seeding

I'm using the mina gem since 2 weeks and I've searched online to find a nice way to do my seeding in my rails staging. The seed must be a task so it is not called every time a deploy is done. What I already have is the following: desc "Seed data to…
FastSolutions
  • 1,809
  • 1
  • 25
  • 49
1
2 3
10 11