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

Socket survives JBoss shutdown - how to fix?

I have a NIO-based app (uses mina-core) that starts listening on a socket when it gets contextInitialized() from JBoss and issues IoAcceptor.unbind() in response to contextDestroyed(). The concrete subclass of IoAcceptor is…
user1944491
  • 559
  • 1
  • 8
  • 24
2
votes
1 answer

Is it possible to skip parsing some field in HAPI?

I am using Apache Camel, Mina2 and HAPI to receive HL7 v2 messages. I noticed that its taking lot of time to unmarshal and create Message object. And this time increases when I have larger message. My message has around 120 OBX segment and I am…
anupsth
  • 657
  • 1
  • 6
  • 18
2
votes
2 answers

Apache Mina SSHD 1.0.0 set user directory & mapping

Trying to set a home directory for a user using Apache Mina SSHD embedded in Java. Both solutions are deprecated in 1.0 in- How to Set Root Directory in Apache Mina Sshd Server in Java How to override getVirtualUserDir() in Apache Mina sshd-core…
Alon Amir
  • 4,913
  • 9
  • 47
  • 86
2
votes
1 answer

ssh access to spring boot application

On Spring Boot 1.2.3.RELEASE trying to setup SSH on JDK 1.8, Windows 7. I got the application.properties configured…
samyem
  • 437
  • 5
  • 16
2
votes
0 answers

mina "Discarding output packet because channel is being closed" missing command output

We use Mina sshd client to connect to Linux based server. It looks like when we get the command SSH_MSG_CHANNEL_DATA along with the Received SSH_MSG_CHANNEL_EOF, Mina will not put the data into the output buffer and will log: "ChannelExec -…
2
votes
0 answers

Can't close session

I have the following class: public class TCPHandler extends IoHandlerAdapter{ static AtomicInteger sessions = new AtomicInteger(); @Override public void exceptionCaught(final IoSession session, final Throwable cause) throws Exception { …
Pitel
  • 5,334
  • 7
  • 45
  • 72
2
votes
0 answers

Unclosable session

I've an IoSession, and when I call close() on it, it is still connected. The code: restSession.close(true).awaitUninterruptibly(5000); //Stuck here, timeout is ignored connector.dispose(); //Never happens :( Some other…
Pitel
  • 5,334
  • 7
  • 45
  • 72
2
votes
2 answers

Mina and Devise.secret_key was not set

I'm trying to deploy my app with mina. When it starts to run migrations I got this error: -----> Migrating database rake aborted! Devise.secret_key was not set. Please add the following to your Devise initializer: config.secret_key = 'key…
kirqe
  • 2,431
  • 4
  • 37
  • 63
2
votes
0 answers

Sockets used on ubuntu keep increasing

I deployed an openfire server and a mina server on an ubuntu. I get informations below by command cat /proc/net/sockstat: sockets: used 5842 TCP: inuse 17 orphan 5 tw 16 alloc 5711 mem 1165 UDP: inuse 0 mem 1 UDPLITE: inuse 0 RAW: inuse 0 FRAG:…
Ray Sun
  • 21
  • 1
2
votes
0 answers

android mina ssl can not send data but can receive data

android using mina ssl handshake success, but can not send data, but can receive data! The following are the key code: Server: public static void main(String args[]){ try { SSLContext sslContext = SSLContext.getInstance("tlsv1"); …
henjue
  • 29
  • 2
2
votes
1 answer

How to change Mina NioProcessor thread names

I want to change mina NioProcessor thread names because when I print thread names using log4j, they aren't very meaningful to me (e.g. NioProcessor-36, NioProcessor-42) especially when there are multiple Processors around. Is it possible?
Ricardo Cristian Ramirez
  • 1,194
  • 3
  • 20
  • 42
2
votes
0 answers

Mina - Foreman - Bundle Command Not Found Error

I'm using ruby 2.1.5 mri, and mina (0.3.1). rbenv 0.4.0-129-g7e0e85b, and rbenvsudo plugin. But cannot deployed properly, foreman cannot initalize bundler. What is the problem in here? Here is the mina verbose output; Mina trace output ----->…
Seyhun Akyürek
  • 851
  • 9
  • 17
2
votes
1 answer

MINA 2.0.7 sometimes fail to notify on session closed

I have this code running: logger.trace("Idle command timeout for command " + tag + " ; closing connection"); session.close(true); But this code failed to run: private static class Handler extends IoHandlerAdapter { @Override public void…
djechlin
  • 59,258
  • 35
  • 162
  • 290
2
votes
3 answers

Nothing happens when doing "mina setup"

I'm trying to set up Mina for deploying my Rails app. Unfortunately, when running mina setup or mina deploy, I get to the password prompt, and then nothing happens anymore. I can manually ssh with the given user and password, so this shouldn't be a…
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152
2
votes
0 answers

Mina deploy task failing (simple kill process command)

I have a Mina task which should kill a process if it's running: task :stop_queueing do queue! "pkill -f clockworkd || true" end When I try to execute it, this happens: $ mina stop_queueing Connection to *** closed. ! Command failed. …
Matic Jurglič
  • 831
  • 9
  • 26
1 2
3
10 11