I have swing based web application. Currently, the Swing clients communicates to EJB which is running in remote server through third party 'HTTP Tunneling' tool (JProxy). This is commercial tool.
my question is:
Is there any other open source / free 'HTTP Tunneling' tools equivalent to JProxy using which the Swing clients can communicate to EJB.
What are the ways a Swing client can communicate to EJB other than RMI protocal.
I suppose you could create a Web Service to communicate to your backend
http://en.wikipedia.org/wiki/Web_service
http://java.sun.com/webservices/
Related
I'm trying to use the OSB 11g to stream large data to .NET WCF.
I use .NET client and server to check this feature.
I created a proxy which make a service callout to the WCF on the .NET server
but when tracing the streaming i find that the OSB buffers all the stream coming from the client into memory and then send it to the .NET WCF.
I guess i configured the proxy correctly with content streaming feature.
by the way i'm running the OSB over linux Red Hat 5.5.
Can any one please share is expirience working with WCF??
Can someone share his Streaming definition in the Proxy/Business services?
Which is best tcp socket server to testing html5websocket? I developing a html5socket based client that will interact with tcp. So I want first a testing server. I am good in PHP but not in sockets programming. So I used PHPwebsocket downloaded from google code. I tried it using its own client and server for testing but it suddenly disconnects and not work as intended so is there any other socket server to test HTML5 websocket client? Which one is better, I can use a python based, or java based tcp server or if in PHP then that can be more convenient. And please tell me what else I need to test HTML5 websocket. I am newbie in sockets. So my concepts are not so clear.
thanks for any advise.
If you want to self host then:
pywebsocket - Python
jwebsocket - Java
jetty with WebSockets - Java
You could connect to the Pusher hosted WebSocket API to see if you can connect. More information on the endpoints and Pusher protocol here:
http://pusher.com/docs/pusher_protocol
You would need to sign up for a free Pusher sandbox account to do this though.
You say you want to "interact with tcp". Do you have specific protocols in mind? If using JMS, XMPP, or AMQP, the Kaazing WebSocket Gateway provides these industry standard APIs and protocols in the browser out-of-the-box. For example, using JMS, you can build pretty complex messaging applications without a single line of server-side code. Everything can run in the client (typically in JavaScript in the browser).
Here are some examples showcasing the power of extending rich business protocols all the way to the browser.
Also, the Kaazing gateway comes with free development license; fully functional server for up to 50 concurrent connections, no functionality or time restrictions.
I have a basic hosting package that gives me access to create a MySQL database. I can of course host silverlight applications on any site. But how can I work with a database from within Silverlight? I cannot run any service on my hosting provider, they only allow php or perl scripts.
You can use the C# webclient to make HTTP calls to a PHP page hosted on the server. The PHP page can proxy queries/results between the silverlight client and the mysql database.
remember, just because it's not a SOAP/WCF "service" does not mean that it's not a web service. Look into PHP based REST solutions for some nice alternatives that can easily be invoked via silverlight:
http://www.bing.com/search?q=PHP+REST
Edit: As #Spencer Ruport correctly points out in the comments, you of course have to be wary of the fact that the web service will be exposed to the public, and anyone can easily sniff the http traffic between your silverlight application and the server. This enable them to call your service directly so be sure to think about authentication and what it means in the context of your app/data
You can use the WebClient class in silverlight to communicate to a php service. Here is the first google result I found: link
I do a mobile application which the user can use it get the required place’s number. The user must select the appropriate city and category to get the place’s information. All the information stored in the database.
What I want to know that ..
1) What is the benefit from the web service?
2) How to connect the web service and MySQl database?
3) How to connect the web service and mobile application to get the information from the database?
1) Benefits. You didn't mentioned other options, but if you are talking about some custom server-side implementation, the benefits are numerous:
It's easy to connect to web service from J2ME.
Multiple connection sessions at one time.
You can use web service from different applications and different technologies.
No issues with authentication and authorization.
You just call method from ws and in response you get easy-to-parse XML.
2) Web service - MySQL:
You have to create a Tomcat or IIS web service.
From web service code connect to MySQL, call a query and return the result.
For Tomcat and Java web service:
Getting started with Web Services Using Apache Axis
Developing and Deploying Java Web Services with MySQL on Apache Tomcat and Axis on Windows
JDBC for MySQL
For IIS and C#/.NET web service:
CodeProject:Your first C# Web Service by Chris Maunder
How to connect to MySQL 5.0. via C# .NET and the MySQL Connector/Net
3) J2ME - web service (with JAX-RPC)
1. generate stub from web service WDDL using J2ME Wireless Toolkit
2. add stub to your project, import stub namespace, set connection properties and call stub methods
How to build and run a J2ME Web service application?
Web Services APIs for J2ME, Part 1: Remote service invocation API
Can anyone recommend a framework or basic technology to use to host a web service on a basic hosted web server?
I have data in a mySQL database that will be accessed by the web service.
You can create them very easily in C#