update little java program

Closed Posted 5 years ago Paid on delivery
Closed Paid on delivery

My budget is U$ 100 . At the end you will have to deliver the updated [login to view URL] file and the source code updated in bit bucket.

Today I have a java jar named [login to view URL] that opens a jasper report.

I call this java class from my windows exe with a command line like this ( Im runing with jre1.8.0_144 ) :

[login to view URL] [login to view URL] report_file_name dbpassword > [login to view URL]

the 2 arguments, report_file_name and dbpassword are used to open a connection to the database and open the jasperviewer.

This is working perfect.

The problem is that every time I run this command line, I guess a new JVM is open, that cause and overhead to open the report.

instead of that, my idea is to create a tcp/ip server + client solution, where the server is the java program you will develop and the client is my exe.

I will first open the server with the parameter portnumber and also include > [login to view URL] so all outputs will be store in the log file.

below are the functions I need to be implemented in the server:

- the java server has to be always runing, can not be closed after the report is closed.

- the java server will be started with a parameter that is the tcp/ip port number that will be set to be listen

- the java server has to run only one instace of itself on the current windows user. In the case we are running in a rdp enviroment each user could have a different tcp port to connect ( Im not sure if this is necessary, any way the definition of the port number is not in the scope of this project, you will just read the parameter and list to that port )

- the java server need to listen to this port and answer the following 2 commands :

1 ) are_ you_alive , returns "yes". I will send first this command to know if the java server is running, in the case is not running I will just open it.

2) open report_file_name dbpassword Use this 2 parameters the same way are used today to open the jasper report

- even when a report is already opened, the server has to able to open more reports without closing the already opened reports.

- has to run on 32 and 64 bits

- dont need a user interface

I will upload the current source code to bit bucket so you will need an account to pull and push it.

below is the current main function source code :

package abrirrelatorio;

/**

*

* @author Marcos

*/

public class Main {

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

try {

long t0 = [login to view URL]();

String strRelatorio = args[0]; //

String strSenha = args[1] ; // //

String strCaminhoJasper ; //folder of the report

String XMLPath ; //xml file with parameters used in the report

//log

[login to view URL]("Relatorio: " + strRelatorio);

//lib folder

SubDiretorio subdir = new SubDiretorio();

strCaminhoJasper = [login to view URL]() + "\\relatorios\\" + strRelatorio;

//log

[login to view URL]("Caminho relatorio: " + strCaminhoJasper);

XMLPath = strCaminhoJasper + ".xml";

//new reports

VisualizaRelatorio visualizarRel = new VisualizaRelatorio( strSenha);

//change xml into map to be used in the report

XML2MAP parameterMap = new XML2MAP();

//open report

[login to view URL](strCaminhoJasper, [login to view URL](XMLPath));

[login to view URL]( "Tempo de processamento (s) : " + ( [login to view URL]() - t0 ) );

}

catch ( Exception e ) {

@SuppressWarnings("unused")

WarningDialog wd2 = new WarningDialog("Main :" + [login to view URL]());

[login to view URL] ( "Main :" + [login to view URL]());

}

}

}

Java Software Architecture

Project ID: #18027450

About the project

32 proposals Remote project Active 5 years ago

32 freelancers are bidding on average $100 for this job

polarjin2017

Hello? How are you? I have good skills in So I can complete your job in time. Hope to work with you. Thank you.

$155 USD in 3 days
(110 Reviews)
6.9
p4logics

Hello Sir, We are perfect in desktop app development using java,oops,javafx,swing and awt AND expert in web development using J2EE, Servlet,JSP and all advanced framework like Struts, Spring MVC, Spring boot, and Sp More

$100 USD in 3 days
(63 Reviews)
6.8
wizard2015

Hello, I am experienced programmer, I have Bitbucket account, I have read your job description and I think this is something I can do. Please let me know if you are interested in cooperation.

$100 USD in 3 days
(72 Reviews)
6.3
luiswilliam

Hello, I read your project description posted. I am a Java expert and have plenty of experience of it. However, I'd like to discuss more detail with you now. I am free to work now. Kindly send me a chat..,;' Look More

$30 USD in 1 day
(18 Reviews)
6.0
deytps86

Hello Its an interesting project. I am working in Java/J2EE technologies for 17+ years. I worked in Spring Framework/Boot, SpringREST using MediaType XML/JSON and URL Encoded and SpringData/Repository using MySQL, More

$100 USD in 3 days
(38 Reviews)
6.2
kapasiyash

Hello there I am expert in java with 5+ years of experience. I can do this task as per your requirement. Lets discuss more over PM Looking forward for your reply. Thanks

$133 USD in 3 days
(44 Reviews)
6.1
usmanshery

hello i'm software developer with 4 years experience in java programming. please share the link you have mentioned.

$100 USD in 3 days
(111 Reviews)
6.0
indiasofttel

Hi, I have good experience in java development and i reviewed your requirement it's looking good to me and i will develop this project in less than your budget . Please start the chat so i can do the development . More

$87 USD in 3 days
(95 Reviews)
6.5
atulamol

Hello, I have More than Five years (5+ years) of experience in Professional Software Development. Seeking for a challenging position as a Java Developer with the strong working experience in programming, designing More

$100 USD in 3 days
(40 Reviews)
5.2
joerndyherrn

Dear customer, I recently developed a system which has a similar structure like yours. A client runs a command which is sent to the server which then work therefore. This is a good balancing of the produced load. More

$100 USD in 1 day
(7 Reviews)
4.5
ownmyserver

Hello Friend, We have 4+ year experience in design and development of Websites and Mobile Applications. We have relevant experience to your requirement. We can do your project. We have expertise in developing Appoi More

$100 USD in 3 days
(16 Reviews)
4.6
mukesh30march

hi i read all the instruction and please share more detail i have done 3 similar project i will provide 5 star rating work

$88 USD in 3 days
(24 Reviews)
4.6
NaumanTariq94

Hello sir. I have good java expertise and i would like to work on your project. Feel free to contact me. Thanks

$100 USD in 4 days
(8 Reviews)
3.5
yashika1588

I and my Husband work as a team and we have 14 years of combined experience. We are pretty sure that the work will be done faster yet preserving the code and functional quality. We have a very good experience in the s More

$100 USD in 3 days
(2 Reviews)
3.7
mallicckk

Hello. I'm Senior Java Developer with 10 years of experience. And I willl be glad to help you! I can write the simple server, using Spring Boot Framework, for example. It will be REST. I will show you how to easy a More

$100 USD in 3 days
(3 Reviews)
3.2
nouman6928

Hello Sir/Ma'am, I have read your project description and i can build this application for you. Lets have a chat to discuss about this a bit more. Regards

$100 USD in 2 days
(4 Reviews)
2.9
Gog1nA

I am ready to make that project , I am skilled Software java developer and I can make what are you asking for, contact me

$100 USD in 3 days
(3 Reviews)
2.5
miguelo

Podemos facer um pequenho servidor web e uma aplica¢ao que chame o servicio e retorne o pdf. Voce tem os dos mensagens: curl http://ip:porto/voceEVivo retorna ok curl http://ip:porto/ouvrirReporte?nome=NOME_R More

$100 USD in 3 days
(1 Review)
1.8
alpertekinalp

I am a professional software developer with 7+ years of experience and currently working on distributed streaming analytics product.

$100 USD in 3 days
(0 Reviews)
1.4
kaushikakshaya03

I have 2.6 years of IT industry experience and same in JAVA. I have been working for Amdocs R&D department. Also, the problem statement you mention I use to deal with the same kind of stuff everyday and would happy to More

$111 USD in 3 days
(0 Reviews)
0.0