Questions tagged [apache-mina]

Excerpt from apache site : 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.

303 questions
0
votes
1 answer

What filter should I use to send ArrayList by using apache-MINA

I have server and client applications with apache-mina framework. I need to send a large arraylist (contains 10000 custom objects) from server to client. I first thought to use GSON strings to pass the arraylist, but I think, creating that kind of…
anL
  • 1,073
  • 1
  • 11
  • 31
0
votes
1 answer

What is the best approach to build a system with high amount of data communication?

Hello I have a cache server (written with Java+Lucene Framework) which keeps large amount of data and provides them according to request query. It basically works like this: On the startup, it connects DB and stores all tables to the RAM. It…
anL
  • 1,073
  • 1
  • 11
  • 31
0
votes
1 answer

apache mina filters

Is it allowed to call apache mina filters from custom threads? I have timer which periodically calls NextFilter.messageReceived(...). I currently got out of memory exception and wondering could these calls be cause of memory leak? I am using apache…
michael nesterenko
  • 14,222
  • 25
  • 114
  • 182
0
votes
3 answers

404 Not Found page displayed when accessing a lot of the Apache MINA links

I have to embed a network layer into my Java application in order to enable file transfer from a server to multiple client connections. Having come to the conclusion that Java NIO would be the best option for this, I started looking for some…
VictorB
  • 117
  • 1
  • 5
0
votes
2 answers

Apache Mina Server and client in java.net.Socket

My application send data to Apache Mina Server which listens with the following configuration.. IoAcceptor acceptor = new NioSocketAcceptor(); acceptor.getFilterChain().addLast( "logger", new LoggingFilter() ); …
shahalpk
  • 3,383
  • 7
  • 36
  • 55
0
votes
1 answer

How to get an acknowledgement for the client socket from server?

I have a client socket which sends messages to the server.I want to get an acknowledgement on the client side whenever the server receives the message. Is it possible to get that acknowledgement. I developed the client using apache mina. Thanks in…
Rocky
  • 129
  • 2
  • 12
0
votes
1 answer

How to get input or output stream of a socket using apache mina?

I am using apache mina for client socket application where I want to use input streams and output streams for sending or reading data instead of using IO sessions. How can I write data to a server using streams? If possible please provide a small…
Rocky
  • 129
  • 2
  • 12
0
votes
1 answer

Idle time out exception in Server Client socket

I am working on a server client project where server is a Gateway which resides in the field and where we are developing the client. The client is scheduled to connect the server and get the data. Now my problem is the server has idle timeout for 10…
Rocky
  • 129
  • 2
  • 12
0
votes
2 answers

Netty/mina cooperation. Is it possible to wrap netty's ChannelBuffer to MINA's IOBuffer?

Idea is to integrate apache vysper to existing netty application. Is it possible to ChannelBuffer from client being connected to netty as mina'a ChannelBuffer so it could be deligated to the vysper? Idea is to make custom netty based endpoint for…
Lauri
  • 201
  • 1
  • 6
0
votes
1 answer

Use NIO server with IO client

I have server worked with NIO based on Mina. I try to make TCP/IP client for this server using usual java.net.Socket technique. I can successfully establish connection (i.e. org.apache.mina.core.service.IoHandler.sessionOpened invoked on server side…
Michael Z
  • 3,883
  • 10
  • 43
  • 57
0
votes
2 answers

Implementing a request-reply protocol with Apache Camel Mina Component

I need to implement a consumer to an XML-RPC based service over TCP. Upon establishing a connection to the server, it requires that Authentication credentials be sent by the client An event subscription request be sent by the client, and…
Santi
  • 1
  • 1
0
votes
0 answers

How to handler TCP long connection failover?

I have many servers (cluster) to run same application based TCP long connection(apache mina socket). When one server goes down, how other servers can keep the socket connection, established with the client alive without letting client know of the…
L.J.W
  • 1,575
  • 5
  • 18
  • 24
0
votes
0 answers

Querying Servers with UDP using?

I want to query servers (about 100 can increase) i am currently querying them iteratively in a loop one by one but it takes too much time. I have found 2-3 options on net like MultiThreading , Netty etc. Which one should i choose ? here is the…
user871457
-1
votes
2 answers

unable to resolve Apache HTTP library to send Request and Receive Response

i am trying to upload image using Apache HTTP Library but i will get this kind of error. Caused by: java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/message/BasicHeaderValueFormatter; in class…
user3153487
-1
votes
1 answer

Apache Mina UDP Client: java.net.PortUnreachableException

There seems to be no documentation anywhere about the java.net.PortUnreachableException. I've made a simple Apache Mina UDP Server and ran it. I then used telnet 127.0.0.1 3450 to check whether it was listening, and the connection was not refused,…
ThePixelPony
  • 721
  • 2
  • 8
  • 30
1 2 3
20
21