Non-HTTP(non-web) socket connection
how do i setup non-HTTP(non-web) socket connection on my nokia 5235? please help...wanna whatsapp so badly
Menu » Settings » Connectivity » Settings » Network destination » Internet
Is that set correctly? Which network operator do you use? Because some operator in different countries with different settings, do not forget to mention your country, as well.
Similar Messages
-
I need to support concurrent access from multiple clients using a non-HTTP protocol
over socket connection. One way is to write my socket server and create a new
thread for each request. But WLS forbids user-created threads from calling into
WLS components such as EJB. So I would like to write a non-HTTP servlet so that
the WLS servlet container will create a new thread calling into the servlet and
have the servlet calling EJBs on this WLS created thread. But is there a way to
plug a subclass of GenericServelt into WLS?
Thanks,
T Tse
I don't think there is a way to use non-HTTP servlet's, but still you can use WLS
execute queue and execute threads, for example:
ServerSocket serverSocket = new ServerSocket(...);
for(;;) {
new MyThread(new RequestHandler(serverSocket.accept())).start();
class RequestHandler implements Runnable {
Socket socket;
public RequestHandler(Socket socket) {
this.socket = socket;
public void run() {
// to see if this is executing on a WebLogic execute thread
new Exception().printStackTrace();
try {
socket.close();
} catch(Throwable whatever) {}
class MyThread implements Schedulable, Triggerable {
boolean done = false;
Runnable runnable = null;
Object sync = new Object();
ScheduledTriggerDef std;
public void join() throws InterruptedException {
synchronized(sync) {
if(!done) {
sync.wait();
public void run() {
if(runnable != null) {
runnable.run();
public MyThread() {
public MyThread(Runnable runnable) {
this.runnable = runnable;
public boolean start() {
boolean ok = false;
try {
T3ServicesDef t3 = (T3ServicesDef)(new InitialContext()).lookup("weblogic.common.T3Services");
std = t3.time().getScheduledTrigger(this, this);
std.schedule();
ok = true;
} catch(NamingException ne) {
System.out.println(ne.getMessage());
} catch(TimeTriggerException tte) {
System.out.println(tte.getMessage());
return ok;
public void trigger(Schedulable sched) {
try {
run();
} catch(Throwable t) {
System.out.println(t);
synchronized(sync) {
done = true;
sync.notify();
public long schedule(long time) {
return done ? 0 : 1;
ttse <[email protected]> wrote:
> I need to support concurrent access from multiple clients using a non-HTTP protocol
> over socket connection. One way is to write my socket server and create a new
> thread for each request. But WLS forbids user-created threads from calling into
> WLS components such as EJB. So I would like to write a non-HTTP servlet so that
> the WLS servlet container will create a new thread calling into the servlet and
> have the servlet calling EJBs on this WLS created thread. But is there a way to
> plug a subclass of GenericServelt into WLS?
> Thanks,
> T Tse
Dimitri
-
Reading from a non-HTTP socket in WL; same idea as WL.system.listenPort
Hi Fellow EJBers,
I have a system which must listen on a TCP port that is not the normal
WebLogic port nor the standard HTTP port for client connection
requests. Unfortunately, the protocol is low-level TCP/IP sockets and
as it's coming from a legacy system I cannot change. What I'd like to
do is create a startup class in the EJB server that listens to the
correct port and then hands off the socket ID to a bean for further
processing. Then when the response is ready I can use a simple socket
write() method.
I am hoping that this will allow me to use WebLogic's built-in threading
support in this class. I was hoping to find some way to imitate the
WebLogic properties file entry
weblogic.system.listenPort=7001
but I didn't see any references to it in the documentation. Can I use a
servlet or startup class to do this? I don't want to use events if I
can help it to maintain compatibility. Alternatively, I'm thinking
about using a separate Java process running in a different JVM which
would manage the threading issues. This is less desirable because it
complicates sending responses back and I don't know if I can pass the
socket reference into EJB.
Note that right now I'm only worrying about the listening portion, I
must also send requests out to different machines but here I control the
initiation.
Thanks for any and all help,
Terry ([email protected])Rob,
Could you please explain why you should not create worker threads in the server.
I created a GenericServlet and installed it in the ServerClasses so it does not
ever get more than one instance - it listens on a server socket (in a thread) and
accepts connections and allows replies to the
connected socket. I use it for debugging where you connect to the port with Telnet and
each developer that wants to output a debug string from a JSP back to their Telnet can
do so. It works fine.
I don't want to screw the server up so please enlighten me.
Joe
Rob Woollen wrote:
If you have a legacy system that is sending data over TCP/IP sockets, you have
to have a socket for it somewhere. It's certainly not an ideal situation since
WebLogic already provides these basic services for you, just not for an arbitrary
protocol.
You definitely should not create worker threads in the server. Use WebLogic
events or JMS instead.
-- Rob
Rob Woollen
Software Engineer
BEA WebLogic
[email protected]
Russell Castagnaro wrote:
Rob,
Is it OK to start your own threads that listen on a particular port? I've been
informed over and over again that this is a recipe for disaster. If it is
acceptable to start up a port listener thread at some times, when is it
acceptable and when isn't it? (I know not to do it with Servlets or EJB's)
Thanks in advanced..
Russell
Rob Woollen wrote:
Hi.
Terence Davis wrote:
Hi Fellow EJBers,
I have a system which must listen on a TCP port that is not the normal
WebLogic port nor the standard HTTP port for client connection
requests. Unfortunately, the protocol is low-level TCP/IP sockets and
as it's coming from a legacy system I cannot change. What I'd like to
do is create a startup class in the EJB server that listens to the
correct port and then hands off the socket ID to a bean for further
processing. Then when the response is ready I can use a simple socket
write() method.
Okay, that seems reasonable. Note, that EJB 1.1 (the next version of
the spec) prohibits bean writers from directly reading or writing sockets.
I am hoping that this will allow me to use WebLogic's built-in threading
support in this class. I was hoping to find some way to imitate the
WebLogic properties file entry
weblogic.system.listenPort=7001
but I didn't see any references to it in the documentation.I'm not sure that I follow. You could use your own properties file if
you want to configure a listen port for your socket.
Can I use a
servlet or startup class to do this? I don't want to use events if I
can help it to maintain compatibility.JMS (available in 4.5.x) is a J2EE standard tha has a superset of the
events functionality.
Alternatively, I'm thinking
about using a separate Java process running in a different JVM which
would manage the threading issues. This is less desirable because it
complicates sending responses back and I don't know if I can pass the
socket reference into EJB.
Note that right now I'm only worrying about the listening portion, I
must also send requests out to different machines but here I control the
initiation.
Thanks for any and all help,
Terry ([email protected])
Russell Castagnaro
Chief Mentor
SyncTank Solutions
http://www.synctank.com
Earth is the cradle of mankind; one does not remain in the cradle forever
-Tsiolkovsky -
Non-HTTP(S) Servlets
I'd like to use servlets to provide services over a non-HTTP protocol (e.g. FTP, NNTP, SMTP, etc.). The existence of the Servlet -> GenericServlet -> HTTPServlet hierarchy suggests this is supposed to be possible but I'm not sure how to do it. The main problem I see is getting my servlet container to know what protocol (IP port) I want to use.
So, are non-HTTP servlets supposed provide their own logic to set up a socket listener in the Servlet.init() method, manage their own thread pool, and dispatch requests to servlet instances as they are received? Or, is there some service provider API I can use to plug a non-HTTP service into my servlet container?
BTW, I'd like to do this in a J2EE v1.3 server.
Thanks, DaveI'd like to use servlets to provide services over a
non-HTTP protocol (e.g. FTP, NNTP, SMTP, etc.)My first reaction would be "don't".
In an HTTP request, there is a bunch of headers, which the servlet container uses to decide which servlet it will invoke. There are no such headers in e.g. FTP. Even if you manage to subclass Servlet to FTPServlet, the web server doesn't know how that FTP requests should be routed to that servlet.
The piece of code that listens to port 80 etc really wants to see "GET", "POST" etc plus an URL on the first line of incoming data. That code won't respond well to seeing SMTP's "HELO".
That being said, you can put such protocols in a web server or app server. Write a thread that creates a server socket for the appropriate port and then sits in accept(). When a connection comes in, it starts a new per-client thread which talks SMTP or whatever over the incoming socket. Pretty basic client/server socket programming.
Also, to me, the servlet model appears inappropriate for FTP et al: a servlet services one request, then exits. FTP, NNTP and SMTP are all more like a discussion than request-reply.
In theory, it would be possible to fashion e.g. an SMTP server as a sort of a servlet. Instead of doGet() and such perhaps you'd have doHELO(), doMAIL_FROM(), doDATA() etc. But that seems overly complicated... Seems easier to me to do simply:
while (true)
read socket input a line at a time;
if (in data mode) {
check for end-of-message;
append to string buffer;
} else {
tokenize it;
obey the incoming command;
}Maybe if you really want to use the servlet model, write a Servlet-like class that has a doCommand() method and make the "obey the incoming command" bit above call that. I'm not sure how much that buys, though. There are enough small differences in things like command tokenizing to make code reuse in the various protocol "servlets" difficult.
Btw, FTP in particular is an incredibly messy protocol. Implement that one only if you absolutely must, and even then crib some existing public domain implementation as a base. Active/passive, separate command/data channels, a wide range of buggy FTP clients, security difficult to get right, ... ouch... -
Non-http servlet engine?
Hi, I'm new to servlet development and I'm not sure this question has been answered here before. So I apologize if it has.
Basically I want to have an integrated server that can accept both http and non-http requests. So my initial thought was to write an HttpServlet and a GenericServlet. Then I googled for clues on how to implement that and found from the JavaRanch website http://faq.javaranch.com/java/ServletsFaq#otherProtocols that this task could be a daunting one because that'd imply that I have to write a new servlet engine.
So my question is, is this true in your expert opinion? And, if the custom non-http protocol has a similar syntax as http (e.g. RTSP), is it possible to just extend the http servlet engine to support it? And would that be doable without much effort?
Thanks,
Liang.Would you actually need the entire servlet system for the new protocol? For your typical simple request/reply protocol you'd normally:
Create a server socket.
When a connection arrives, start a thread to service it.
In the service thread, read and parse request.
Send reply.
Close socket, exit thread.
A servlet system adds a bunch of stuff to that: a layer that allows you to configure pluggable request handlers; methdod-specific functions (POST -> doPost()); a ServletRequest object; etc. Are those things relevant to the new protocol? Do you have requests with URL-like things in the header, allowing routing requests to different servlets? Do you plan to have lots of servlets for the protocol (one servlet -> no much point in XML-configurable request routing)?
I'd hope that I wouldn't need to implement a configurable request routing infrastructure. It's a lot of work if it's not really needed. Just write a socket server. If you have an associated web server (e.g. HTML pages from which the user starts RTSP requests) you can even run the socket server inside the servlet container if that helps. -
Trouble connecting to https secure web service using Adobe Livecycle Designer
I am attempting to use Adobe Livecycle Designer ES2 to create a data connection in a Form to a secure (https) web service and I'm having some difficulty.
I'm new to Livecycle and have tried searching online for an answer, but the help isn't very clear and the only tutorials online that I can find are ones that connect to non-https services.
The WSDL I'm trying to connect to is: https://uk.ws.ondemand.qas.com/ProOnDemand/V3/ProOnDemandService.asmx?WSDL
My questions are:
Q1. Does Adobe Livecycle support https web service connections? The following link suggests that this isn't possible: http://books.google.co.uk/books?id=yOOcM3Bn4BAC&pg=PA179&lpg=PA179&dq=secure+web+service+w ith+adobe+livecycle&source=bl&ots=jm1GIZflOJ&sig=uLfv5Xda4eXXJl5o_7vBViwU-w0&hl=en&sa=X&ei =WLvIT5P4OujW0QWmv7nDAQ&ved=0CI4BEOgBMAk#v=onepage&q=secure%20web%20service%20with%20adobe %20livecycle&f=false
Q2. I've managed to consume the WSDL but can only see the body of the XML request for a particular SOAP action. Where can I add the username/password credentials? I've selected "Requires Message-Level Authentication" during the new connection wizard, but it doesn't prompt me at all for these details.Hi,
I tried using SOAP.Connect too..
But I am facing the same problem.
Any solution found yet?
Rgerads, Amith -
IDOC-- XI-- HTTP (non-sap) 403 Forbidden
Hi guys,
When I execute my scenario IDOC>XI>HTTP (non-sap) URL address Asynchr. The receiver receives the message correctly
but in my XI monitoring the message stands in error mode.
At first sight this is not a big problem because the receiver receives the message correctly
but it would be nice if the message would stand in processed succesfully.
The error:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>
<SAP:P1>403</SAP:P1>
<SAP:P2>Forbidden</SAP:P2>
<SAP:P3>Service Error</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Http server code 403 reason Forbidden explanation Service Error</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Please don't redirect me to an old topic because I have read all topics and none of them could help me. :s
TIA
Message was edited by: Peter DelveHi,
this is the describtion of W3ORG:
The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. If the server does not wish to make this information available to the client, the status code 404 (Not Found) can be used instead.
May contact web admin.
Regards
Matt -
HT4528 Non apple email accounts not connecting to server. How do we fix this issue?
Non apple email accounts not connecting to server. How do we fix this issue?
Hello countingBLUEcars,
We've an article that can help get your Mail moving again.
iOS: Troubleshooting Mail
http://support.apple.com/kb/TS3899
Cheers,
Allen -
Resolving non http urls in JSP
When I include an html hyperlink in my JSP as follows :
Yahoo
then the hyperlink on the web page points to
http://www.yahoo.com
However if I write the hyperlink as
Yahoo
then the hyperlink on the web page is wrongly created as
http://<hostname>/www.yahoo.com
This seems to be an issue with the JSP engine. I am using weblogic.
Is there any way to resolve the non http urls?This has nothing to do with the JSP engine.
<a href="www.yahoo.com">Yahoo</a> IS not a JSP tag and is not touched by the JSP engine.
The problem you have is just your WEBBROWSER interpreting the url wrongly mainly becasue you have forgotten to provided the protocol your webbrowser has to use. -
Free, non-commercial java web site
Free, non-commercial java web site
I am creating a free, non-commercial web site http://www.myjavaserver.com/~hasstar
the purpose of this site is to display every thing (tips, tutorials, links, code, examples) I can and I know in java and also some other useful information other than java.
But the question is from where do I get the information and resources to display on my website?
Any one who have some resources or information or tips or tutorial or java links, and have no problem to share with me please give it to me . For this I can put a link to your website on my site or a small ad banner on my site.why are you creating a JSP resources page if you don't have any resources to put up on it????
make a "My Favourite TV Programmes" or "My Favourite Recipes" page instead. -
ISA570 Block Non-HTTP Access by FQDN instead of IP Address
Does anyone know a way to block any access to a site by FQDN instead of its ip address on the ISA500 series devices? I know you can block website access with Web URL filtering using FQDNs, but what it you want to block non-HTTP traffic to a site that has either multiple IPs or dynamic IPs? I typically use Address Management to setup sites that I want to limit or block, but you have to define specific IPs or ranges and that doesn't always work especially if host IPs are dynamic. Also, host static IPs can change over time so even if you define them in Address Management you have to periodically audit them to make sure they are still correct.
This is not only an issue with blocking sites, but also in trying to define QoS policies as those use addresses defined in Address Management which again use specific IPs or ranges. I am just trying to find a more reliable, long term, method of doing these types of management activities on the ISA500 devices.
Thanks for any advice.I am pretty sure you cannot do this on ISA. I think you could use opendns.com to accomplish blocking non-http sites by FQDN. You could do blocking and QOS by FQDN with what Cisco generally considers the replacement for this product, the Meraki MX60.
-
Difference between using Java and Non-Java in Webi.
Hi ,
I have one more question requesting for an answer.
Would like to know what is the Difference between using Java and Non-Java in Webi.
Thank You in advance.
Appana Ganesh.Hi,
check the Information in following post, the differences are discussed there:
http://scn.sap.com/thread/3295306
best regards,
Victor -
How to make fields Non Editable in Web ADI
Hi All,
Can you please let me know how we can make fields Non Editable in Web ADI?
Thanks,
AnilHi,
Are you trying to make required parameters readonly and does this variable have different values for each row. If not then I would suggest you use a wrapper for the API and get only parameters that you need from the excel sheet and the use the wrapper to send the other read only values.
Thanks -
Socket Connection Vs HTTP connection
I'm trying to get a better understanding of which to use to connect a midlet to a servlet.
Does anybody know of any advantages socket connections have over http connections i.e performance or anything you can think of? Or is there any reason http connections seem like better practice for this type of communication (servlet-midlet) besides portability across MIDP
I'll appreciate your opinionsHTTP is a particular kind of socket connection. If what you're doing is plain old HTTP, then HttpConnection is easier to use. If you need something more than HTTP, then use SocketConnection.
-
Can't save non http bookmarks in firefox
Can't save non http bookmarks in firefox
Amongst standard website favourites saved on my IE toolbar i have several html documents/pages of my own making. These obviously begin with a non-http address.
Examples are pages that contain an array of favourite webcams on a single page, or a page that opens up several related sports sites each in their own tab, or a stormchasing swathe of tabbed windows covering live video chase, weather radar, emergency service scanners etc. etc.
An address would take the format on the lines of
"C:\Documents and Settings\USERNAME\My Documents\Football Results and Tables\UK.html"
Firefox insists on adding 'http' before the C:\ (plus unlike IE it also adds the %20 for spaces.)
Can anyone help to to get FF to accept a favourite that is not a website.I just verified that it still works for me in Firefox 18.0, using the "star" in the Location Bar.
'''Try the Firefox SafeMode''' to see how it works there. <br />
''A troubleshooting mode, which disables most Add-ons.'' <br />
[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode#w_safe-mode-window_2 Troubleshoot Firefox issues using Firefox SafeMode]
When in Safe Mode... <br />
* The status of plug-ins is not affected.
* Custom preferences are not affected.
* All extensions are disabled.
* The default theme is used, without a persona.
* userChrome.css and userContent.css are ignored.
* The default toolbar layout is used.
* The JIT Javascript compiler is disabled.
* Hardware acceleration is disabled.
* You can open the Firefox 15.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
* Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running.
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
'''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''
Maybe you are looking for
-
Dear All, i need to include the check printing report at payment time, when user click the option print now this report will be printed , how to connect this report to this option in R12. Thanks
-
I just got a new Sony HDR-FX7 and when I tyy to import it tells me there is no camera attached. I have been on the phone with Sony for over two hours and they have no idea. I have tried in FCP and imovie with no luck in either program. Everything wor
-
JDBC datasource in weblogic 7.0
Hi I configured coldfusion mx in weblogic 7.0 successfully. I am able to execute cf files with 7001 port and localhost. I need access to the remote database (oracle 8) in cf thru' dsn. Where should I create DSN (in local system or in weblogic 7.0 con
-
I try to log into it and it says: "iMessage Activation- Could not sign in. Please Check your network connection and try again." I'm connecting to my houses Wi-Fi and can make calls and regular texts. How can I fix this?
-
hai all, please send the documentaion for SAP HR Roles in payroll for user. Thanks Sam.