Find Jobs
Hire Freelancers

Getting ActiveMQ value using JNDI lookup on JBOSS server with out the use Spring Frame Work. Have to use Pure Java EE configuration something like using annotations.

$10-30 USD

Imefungwa
Imechapishwa over 6 years ago

$10-30 USD

Kulipwa wakati wa kufikishwa
I have a Rest API which was developed to run on JBoss server, and have to post the Payload to the ActiveMQ. The Active MQ is Value is JNDI set up and we have to get that object which has a activeMQ end point. By using that we have to post the payload to that Active MQ. I am posting my code here , but in this I hard coded the ActiveMqServers. This is not the right way. we have to look up JNDI get the ActiveMq server. As far as I know Jboss has a feature when we lookup the JNDI value it will give the ActiveMq which is presently available. Please reach someone who has good experience on this. private boolean postGradesToActiveMq(GradesRequestVo requestVo, ResponseVo response) throws Exception { Context initContext = new InitialContext(); //String ActiveMQServers = [login to view URL]("java:/act/CCES/url/ActiveMQURL3").toString(); String Huburl = "[login to view URL]"; String ActiveMQServers = "[login to view URL]://[login to view URL]://[login to view URL]"; List<String> servers = [login to view URL]([login to view URL]("\\?")); for (String server : servers) { try { String url = [login to view URL]() + "/api/message?destination=queue://[login to view URL]"; url += "&transactionID=" + [login to view URL]().toString(); url += "&requestID=" + [login to view URL]().toString(); url += "&hubUrl=" + Huburl; ClientRequest postRequest = new ClientRequest(url); Timestamp timestamp = new Timestamp([login to view URL]()); Instant instant = [login to view URL](); [login to view URL]("timestamp", instant); [login to view URL]("application/json", response); ClientResponse<String> clientResponse = [login to view URL]([login to view URL]); return [login to view URL]() == [login to view URL]() ? true : false; } catch (IOException e) { // PASS. Try the other servers in the list before throwing an exception. // TODO: seperate out other errors from the case when the server is offline. } Thanks
Kitambulisho cha mradi: 15503112

Kuhusu mradi

3 mapendekezo
Mradi wa mbali
Inatumika 6 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
3 wafanyakazi huru wana zabuni kwa wastani $27 USD kwa kazi hii
Picha ya Mtumiaji
I would like to offer myself as a probable candidate for this assignment as I am confident of delivering a quality output. I have excellent expertise in this area. Relevant Skills and Experience I have total 7 years or experience in web development and design using java,j2ee,spring,hibernate,CSS,jquery,angular js, rest/soap web services Proposed Milestones $30 USD - java
$30 USD ndani ya siku 1
4.8 (22 hakiki)
4.2
4.2
Picha ya Mtumiaji
Experimented java developper, i worked in large companies for several years on web technologies. Expérience et Compétences appropriées - Java 8, REST web services, various web applications - RabbitMq and Redis. - Hibernate / Mybatis /SQL (Postgres, Mysql, Oracle) I also worked on JEE platforms with : Glassfish and JBoss/WildFly. Étapes proposées $25 USD - . Services complémentaires offerts $1 USD - Support
$25 USD ndani ya siku 10
5.0 (3 hakiki)
2.8
2.8
Picha ya Mtumiaji
Hi, we will provide the java developer on spring,struts,ofbiz. we charge as per experience. 9 year exp - $20 7 year exp - $15 3 year Exp- $10 1 year Exp- $5 Relevant Skills and Experience java spring application Proposed Milestones $25 USD - java spring application
$25 USD ndani ya siku 1
0.0 (0 hakiki)
0.0
0.0

Kuhusu mteja

Bedera ya UNITED STATES
San Diego, United States
0.0
0
Njia ya malipo imethibitishwa
Mwanachama tangu Jul 25, 2017

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.