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

Closed
Posted over 6 years ago

$10-30 USD

Paid on delivery
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
Project ID: 15503112

About the project

3 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
3 freelancers are bidding on average $27 USD for this job
User Avatar
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 in 1 day
4.8 (22 reviews)
4.2
4.2
User Avatar
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 in 10 days
5.0 (3 reviews)
2.8
2.8
User Avatar
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 in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
San Diego, United States
0.0
0
Payment method verified
Member since Jul 25, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.