I followed Creating a RESTful Web Service Using NetBeans IDE. I implemented all the steps from step no 1 to 6 successfully and able to test my REST web service on my machine.
But now I want to deploy my web service for stand alone Glassfish v4 server and want to access from another machine or node from the local network.
I deployed the .War file on stand alone Glassfish v4 from the front-end of Glassfish but it is not accessible from other node of the network. The View Endpoint option is not coming after deployment.
Please guide me what steps should i follow, what is missing or suggest me how to deploy .war on glassfish v4.
Look into the log messages of the stand alone GF.
Check proxy settings and other connection settings
Related
I'm very fresh and beginner in the web services world, I'm trying to learn how to deploy and consume services.
My question: Using any technology (such as Java), when I want to invoke some web service that is deployed in a remote server, do i need to install and configure a localhost server in order to access the web service? or I can access it without install server
Note: I'm asking about consuming a web service not developing a one
Thanks in advance
No. Just as your web browser doesn't require a web server to access other web servers, your code doesn't require a web server to access other web servers.
We have WebSphere 7 installed on server abc which is within my organization's firewall. We are deploying a new WAR file on this WebSphere which will call a web service (let's call it xyz) that's outside firewall and the solution offered is proxy server which forwards any requests sent to it to the Internet using perimeter interface.
How do I configure this in Websphere 7?
So far, I tried adding Generic JVM arguments using -Dhttp.proxy.host and port but the WAR file still calls xyz webservice directly without hopping on the proxy server.
I also tried using apache http server by calling the http server from WAR file and the HTTP server was forwarding the request to Proxy server but it dint work as expected.
PS: We can't open firewall for xyz as xyz is on cloud and has dynamic IPs and transaction end points. While my organization whitelists Web service only on the basis of IP.
Appreciate any of suggestions/ideas you can think of. Thanks.
I had been working on amazon web services from couple of days and it is giving me a hard time. All the want it to deploy my J2ee web application on Amazon web Services. I had used the following approach:
1) In had installed the AWS toolkit on eclipse.
2) I had deployed the sample web application of the amazon web services but it is without database. It's a static web page.
But i want to deploy my j2ee web application on aws with apache tomcat 7 as server and mysql database server. Can any one explain me how to deploy the j2ee web app on the aws? I would be highly thankful to you.
I would suggest you try AWS Elastic Beanstalk
If you use tomcat with your Java EE application, it become easier because it already have some templates for that. Creating and Deploying Elastic Beanstalk Applications in Java Using AWS Toolkit for Eclipse
As for mysql, AWS also has the RDS which can do it perfectly. Just modify your database.config in your Java EE application according to this.
Hope it will help.
I have deployed a restful web service in a godaddy vps.
this VPS can be connected via ipaddress:port(port provided to me).
i.e. 108.XX.XX.XX:43XX
Now, i have installed tomcat 7 in VPS, and i have deployed a RESTful web service in tomcat on port 8080.
i can call the web service from inside the VPS as ipaddress:8080/webServiceName but not able to call it from any other system(other than my VPS).
How can i fix this issue ??
I have checked many places for fixing this issue, but the only thing i find is how to deploy web service in tomcat.
Please Help..!!
This might be an issue with Firewall on your server. Try allowing the required port and it should be able to connect.
If I have some functionality I want to expose via REST in the WSO2 Application Server and it seems that I have two main choices:
Deploy as a JAX-RS Application
Deploy as a Service
When deploying as a service, it appears that I have options for Quality of Service that don't appear to be available for Applications.
Question: If I am creating a REST based functionality from scratch, should I prefer to design as a service rather than as an application, because the service has more flexibility?
In WSO2 Application Server there are two approaches to create RESTfull services.
Create RESTfull service using Axis2, then you should deploy them as "service"
Create JAX-RS spec based service using CXF, then you should deploy them as "JAX-RS" applications.