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
3
votes
2 answers

Why doesn't s3fs work like a normal file system with Apache MINA SSHD?

So I'm trying to create a Java SFTP server which acts as a front end for Apache S3 buckets. You connect via SFTP and manage S3 files in buckets like they were files on the SFTP server. I've used Apache MINA (v1.2.0) as the SFTP server, which works…
Ross Drew
  • 8,163
  • 2
  • 41
  • 53
3
votes
1 answer

Mina deploy: I have set up SSH, but can't connect to git@github.com

I try to deploy a private repository using mina. I have generated a public SSH key on my server which I then added to my GitHub user. Being logged into my server, I can do a git clone git@github.com:Access4all/a4aa2.git. But from my local machine,…
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152
3
votes
1 answer

Terminate remote ssh command upon disconnect

I'm using Mina SSHD client to run remote commands on OpenSSH server. I'm executing a long running command on the remote server, and would like it to terminate when the client session is closed. when I run this command from my PC terminal: \#ssh -t…
3
votes
2 answers

Deploy subdirectory with mina

Is there a way to deploy a subdirectory of the repo through Mina? I've seen people using custom deploy strategy to achieve this with Capistrano and I would like to be able to do it with Mina.
Phương Nguyễn
  • 8,747
  • 15
  • 62
  • 96
3
votes
1 answer

How to write byte[] to an IoSession

As shown below I can read the byte[] sent from an IoSession without having a protocol decoder. IoBuffer in = (IoBuffer) message; byte[] inBytes = in.array(); int length = inBytes[0]; inBytes = Arrays.copyOfRange(inBytes, 1, length + 1); ByteString…
dinesh707
  • 12,106
  • 22
  • 84
  • 134
3
votes
2 answers

how to run a custom rake task from mina deployment script

i am using mina for deploying my application. I specify the env(staging/production) where i want to deploy the app. mina deploy on=staging --verbose i have saved the app env in deploy.rb as app_env = ENV['on'] || 'staging' i have a rake task that…
Prasad Surase
  • 6,486
  • 6
  • 39
  • 58
3
votes
2 answers

How to execute a rake task using mina?

I want to run a rake task (migrate) contained in my Rakefile in my Sinatra app. I am using Mina to deploy. rake migrate works great if I run it on the server or on my development, but I cannot get Mina to execute the task. My current deploy looks…
Fletcher Moore
  • 13,558
  • 11
  • 40
  • 58
3
votes
1 answer

Apache Camel for TCP based streamer

The need is to have a Camel (Mina/Netty) based TCP server running on a specific port, which allows multiple TCP clients to connect to it. The content to be streamed is available in files and the TCP server has to send each line in the text files to…
M.K
  • 403
  • 5
  • 14
3
votes
1 answer

MINA access message queue

I have an issue where some or all of my NioProcessor threads in MINA are becoming overloaded. This is because I actually am performance-tuning my application; I do want it taking on as much work as possible and am figuring out how to monitor it so…
djechlin
  • 59,258
  • 35
  • 162
  • 290
2
votes
1 answer

Apache Mina: Get the user's username upon receiving a command

Using Apache Mina, I'm trying to allow certain users to run certain custom SSH commands. But I can't figure out how to get the username or any sort of information about the user in a CommandFactory. Right now, my server configuration looks like…
Cydrick Trudel
  • 9,957
  • 8
  • 41
  • 63
2
votes
1 answer

How to redirect an uploaded file in Apache MINA FTP server to a database?

I set up an FTPS server using Apache MINA. By overriding the default ftplet I can detect when a client starts uploading a new file to the server. I want to redirect the transfer to an S3 database, instead of having the file written in disk. The…
Alberto Anguita
  • 103
  • 1
  • 11
2
votes
2 answers

mina deploy undefined method set_default

I have been trying to upgrade our app from Rails 3 to Rails 4.2.4 and have everything working minus being able to deploy. I can run rails server and console correctly, but run into an issue on the deploy. The exact error is: mina…
Matthew
  • 93
  • 7
2
votes
0 answers

Apache camel Mina.. no response in exchange body

Camel route: Below is…
peaceUser
  • 457
  • 5
  • 19
2
votes
3 answers

Apache Mina, How to detect when you're sending messages using an invalid socket to the client side?

I have a server setup using MINA version 2. I don't have much experience with sockets and tcp. The problem is if I make a connection to my server, and then unplug my internet and close the connection, (Server doesn't get notification of the…
2
votes
2 answers

Apache FTP Server - Connection timeout after 20 seconds of inactivity - Failed to retrieve directory listing

I was looking for a way to create an embedded ftp server. I came across an example "writing a java ftp server", which I copied and tested locally and everything seemed fine. So I went on and deployed the example to an AWS EC2 instance and then tried…
Hooli
  • 1,135
  • 3
  • 19
  • 46
1
2
3
10 11