Want to create client threads.......

I am a learner in Java!! Hey i am developing a client server application, such that many clients can connect to server. The clients connect asynchronously, so i want to know that how can i maintain the state of each client thread. I am bit confused if i should run the thread or the client. Just scrap me your idea so i can develop it. If you have and online code for it, Thanks a lot then!!

Subashk wrote:
Now i want to maintain the state of the client threads (to know what they are doing and the values)Define a Runnable that has member variables representing whatever you consider to be the "state" of your tasks.
and also want to switch from one function to the other!!When you want to perform a parsing function, you call a parsing method. When you want to perform a validation function, you call a validation method. The usual way to do this is just call parse() and then validate() sequentially. After all, you can't validate until after you parse, so there's no point in putting those two in separate threads.
I think you need to start from the very beginning with a multithreading tutorial. In any case, I don't think I can help you because it's not really clear what you're asking. (I don't think you have a clear enough grasp of the concepts involved to be able to ask meaningful questions.)
Good luck!

Similar Messages

  • I designer I want to create forms for web client, does each client have to purchase form central to access the data?

    I designer I want to create forms for web client, does each client have to purchase form central to access the data?

    Hi,
    In this scenario, you can share the document with the clients to and provide co-author privileges.
    Co-authors can edit the form design, options, responses, and summary report (everything that you can do).
    Note:- They do not require a paid subscription to view the responses, free subscription users can become co-authors.
    Please refer to the following thread to know how to share a form with others:-How do I share a form I created with others?
    Regards,
    Nakul

  • So I want to create my own IRC client...

    I've wanted to make my own IRC client for a long time now. As soon as I switched from winfailure a few months ago (I think nearly a year now! ), actually.
    As time went by I've slowly, begrudgingly gotten used to irssi, but with gritted teeth all the same. On winfailure, I used HydraIRC, and while this application was quite good, its supposedly open source license wasn't free as in free speech, only as in free beer. So while the code was open, it was only opened such that the code couldn't be used in other projects. Stab.
    Anyway, I used this client for the better part of a year, and while it lacked quite a few things that would have probably turned others away like the complete lack of a scripting engine, it did what I wanted pretty well, and set an operational standard, if you will, that I got used to and have not found anywhere else. Yet.
    So I want to recreate the standard I picked up on but for POSIX platforms (except for cygwin), and introduce some features of my own too. I simply don't know where to start, however.
    Note that the subject says "create", not "write" - after asking around a bit in IRC ##linux recommended I try taking two IRC clients that have the features I want and merging their codebases. I've never done something like this before but I think it'd probably be fairly interesting, if not trying.
    So, I'll list the features I'm looking for, and perhaps you can give me some suggestions on 1) how I'd either implement this myself or 2) a client with X feature already coded in. Thanks.
    The features I'm looking for:
    - Code Simplicity: This is the most important, to me, in the case of using others' code. Complex code (just look at rxvt if you want complex code) will just confuse and down-hearten me and make me run away.
    - A network-oriented model: I want a client with a daemon, or server, that connects to my networks and performs most "heavyweight" takes, and a client, which just handles display. Quassel does this to an extent but is horribly underdeveloped and I don't have a system powerful enough to handle running Qt on a long-term basis (since I already tend to use GTK apps). I also don't know C++.
    - Multiple clients: This is the second most important. I really need this one. I want to be able to have a "main" client that can connect to the server and manage general tasks, and a "light" text-based, console-driven client that connects and can be run over ssh, for example. Quassel completely falls apart here because it uses KDE's network-IPC libraries to transfer data from the server to the client, which a quick check with Wireshark showed to be binary. And I wouldn't want my "lite" client to require KDE, or at least KDE's libraries - that'd just be majorly weird.
    - Speed: I want the client to be fast and responsive at all times, even on slower systems, and even when I'm connected to a lot of channels.
    - Scriptability: It doesn't need to be complex, like Perl's library that applications can bind in. That's overmuch IMHO and, most importantly, slow.
    I don't think one particular client meets those needs, but a few of you will probably shout "xchat!" Well, X-Chat is... not my thing. If irssi could be considered very far away from HydraIRC in terms of operation, X-Chat is the same distance away twice over. It doesn't operate the same way at all.
    So, now that I've loosely explained the features I want, let me now explain another thing I want to be able to do.
    Despite having hardware in dire need of upgrading right now (these systems aren't nearly that bad, but Firefox tends to eat my 512MB of RAM up pretty quickly, and I recently found all the PCs this house has in it 99% likely can't use DDR2 RAM, which isn't too good), I hope and believe that one day I'll upgrade to considerably better equipment with extensive graphics support. With this newer hardware I hope to create a new kind of UI model with animation integrated into the look-and-feel model of the UI the same way images are used for the same purpose today, GPLv3 license it so corporations can't steal it and use it in their products, and then bind it into my IRC client.
    However, I want to start now, before I upgrade. With this in mind, I don't know whether I should make my own GUI toolkit, or use an existing toolkit now and rewrite half the codebase later to support my own graphics and animations. I'm not very good at making things that are programmatically extensible and flexible, so I don't really know what to do here. Simple hand-rolled toolkits such as dialogs with some text and a button can be managed in under ~250 lines of code, but anything bigger, and, well... you get stuff like GTK and KDE, whose toolkit libraries in total are both on the order of over a couple of MBs each, and have been in development for years, and continue to evolve rapidly today. If you're careful, you end up with FLTK, which I don't like the look of at all.
    In addition to that, I want my client to be fast, even on slower computers. Right now, I have a 3-screen setup, with each screen being driven by a separate PC. The one on the right - the one I'd be putting my IRC client on - is a 450MHz P3 with 320MB of RAM. It runs X on a 4MB VGA card at 800x600. This is where I currently run an irssi session over ssh and screen. To give you an idea of the graphical power of this machine, antialiased Xft fonts with urxvt take 0.15 seconds to "scroll" when I say something in IRC. However, it's a capable PC if I harness its capability right, and is where I'd target my IRC client. And I dislike seeing my fonts redraw - I dislike seeing anything redraw, for that matter.
    You might think I'm crazy, writing an IRC client for one of the slowest PCs in the house that works, that I in future want to extend to use a graphics layer that I hope to develop on a server-class Nehalem workstation with an insane amount of RAM and a pair of SLI'd GTX 280s in it.
    I don't think I'm crazy. I'm using what I have to give back to the open source community, and using what I consider to be an cunning operational model to do it: back when the 450MHz P3 I spoke of was the only "main" working PC I had, I designed, in none other than Visual Basic 1.0, a media center UI. On Windows 98. In 2006. And, you know what, despite the fact that the animations it used were pretty basic, it actually looked really, really good. And why was this? Because I used software designed for 486DX2s running at 33MHz with 4 or 6MB of RAM, on a P3, with 128MB of RAM (yes, I've upgraded it since), clocked at 450MHz. The result? Blinding, optimized, speed. You really should try the older versions of VB sometime - I managed to score a copy of VB 2.0 which is legal to distribute because its "Make EXE" (ie compile) function is crippled. Email me and I'll mail you a copy - it's completely legal.
    In the same manner, if I design this IRC client and carefully construct it so its client/server model works capably on my two PCs, my server (a machine not unlike the P3 I've been discussing - my server just has more hard disks in it, a 50MHz faster processor, runs my left-hand display and my IRC network) and my old desktop (the 450MHz box I've mentioned so much), when I finally bring it over to my new computer it'll be so fast that it'll be as if the computer is registering keypresses before I even type them. And that's the kind of performance I want to couple with shinyyy graphics.
    Sorry this sounded halfway between a motivational speech, a request for help, and a coder's dilemma. lol
    -dav7

    Bit of an update: Varreon emailed me regarding VB 2.0 and we had a bit of a discussion regarding the language I planned to use.
    He said it would be fine to post our conversation, so here's how it panned out:
    Varreon wrote:...What language were you planning on writing your client in? I've written an irc bot in c++, and I'll upload my source code if you're interested in looking through it.
    dav7 wrote:
    Well, I'm not all that sure what language I want to use just yet.
    I know I want it to be extensible, so I could either use a high-level, extensible but slow scripting language to power the client as a whole, or I could go down a path already travelled, proved extremely successful and in my opinion cleaner, and embed a scripting language, which would negate the requirement for a high-level language but still facilitate customization.
    All the same, I'm not really all that sure what language to use.
    C++ isn't really my thing - on my current computers, g++ takes maybe 3 seconds to compile the smallest of source files, and while that isn't *really * all that long, I'm not all that patient. As it stands I consider /gcc/ too slow for my preferences and use tcc instead - you might like to try it if you're on a 32-bit system.
    I'll probably move to C++ when I get a new PC, but for now, all I really find fast enough for my liking is C, and I'm a little concerned that C might be a little too low-level for what I want to design here - beyond scriptability, I want the client itself to be easily extended in various directions. Of course the client will only appeal to a specific market (in an open source sense), but I do want it to feel organic and something that can be extended in as many directions as possible. So C probably won't be the language I use, and since C++ is slow to compile, it's probably going to be off the list as well.
    All the same, I'm not concerned about speed in the irrational way I have been in the past, but at the same time I do need to be careful in my thinking regardless of the language I use since don't want a client that lags to death. A good example of a slow program is SciTE - the text editor I'm typing this in, Geany, uses the same edit control it uses (Scintilla, which is written in C++, AFAIK), and while this component has a good degree of editorial control, scrolling with the scroll wheel can be slow. Also, when I recently tried to run SciTE on an old laptop I found on the side of the road (AMD K-6, 350MHz, 32MB RAM), I discovered that just *typing* would lag the system horribly - typing about 15 keystrokes quickly resulted in a lag of about 6 seconds after which what I typed would appear all at once. Typing single keys - slowly - resulted in a delay of around 0.20-0.39ms (guessed).
    Regarding scripting, I had my eyes on one embeddable language in particular but I forgot what it was called, so I headed to Wikipedia for a quick hunt-down session for it and managed to discover Falcon, which appears to use a VM but is at the same time the same insanely fast because it uses a C/C++-only policy for its modules. It also advertises itself as a scripting engine "ready to empower mission-critical multithreaded applications" so I'm considering Falcon to be a possible engine to integrate, and on a slightly long shot, even the language I might end up using. I also think hunting the first language I considered down and embedding that might be a nice idea, and I also might embed Perl. I'd love to be able to embed Ruby.
    Overall however, I do need to contain my enthusiasm - the desire to throw in multiple scripting engines, awe-inspiring compositing graphics layers, and support for multiple protocols isn't such a bad idea, but if not controlled will result in serious featuritis, which when combined with a verbose, low-level language will only result in me throwing myself at the project too hard "to get it done", with proven disastrous results.
    -dav7
    [ Note, there's an update in a follow-up post below this one that affects the information you see here - just so you know ]
    I've done some consideration since that email and it's possible that C++ might be able to be brought onto the table. This was mostly inspired by the good outcome I had with writing a couple of modules for InspIRCd, which uses C++, compared to my previous attempt when I knew no C.
    The main thing I'm a little indecisive about at the moment is the toolkit; I want something that's fast but doesn't look all that bad; FLTK is, as I've said previously, not something I like the look of - it does appear to be somewhat themable but it's impossible to escape the fact that it values speed over shininess, and while this is excellent for my current target, I don't want to develop something that relies on it so heavily that it's next to impossible to port to whatever I end up using when it's time to get the graphics in, such as a UI model on top of an OpenGL canvas.
    The second thing I'm unsure of is what scripting language I should use. I've done quite a bit of looking around - mostly to try and find that language I mentioned that I lost - and found quite a lot of possibilities, and even discovered that with some work (well, a lot of work, admittedly) it's even possible to embed Ruby into C++, and have Ruby call user-defined C++ functions and so on. It's not an official part of the project, but someone managed it nonetheless.
    It seems to be possible to embed popular languages such as Perl, Python, Tcl, Lua, etc, but then there are lesser-known languages designed for embedding, such as Nesla, AngelScript and the like (such as that language I can't find, heh). And of course I could also embed a JavaScript engine, which would probably be very odd but all the same quite an experience.
    Then there's Falcon, which appears to be a pretty good language in general but doesn't appear to have all that many modules available for it just yet, so doesn't seem to suit my purposes.
    So, summing up:
    - I don't know how I should develop this in terms of graphics - should I wait for a new PC and just use SDL or whatever I'm going to use, use a toolkit and either rewrite half of everything at some other point or juggle two display methods, or what?
    - The number of scripting languages out there is mind-boggling. To me, it's not what syntax the language uses, or whether it's statically or dynamically typed, or how readable it is, it's #1 how fast it is, and #2 how suitable it would be in the context of an IRC client - string manipulation (even on every incoming and/or outgoing message), user interface control, and so on.
    -dav7
    Last edited by dav7 (2009-02-16 09:25:49)

  • My client want to create realease strategy based on plant for PO

    Hi all,
    1.My clients want to create realease strategy based on plant for PO. Kinldy let me know the the possibilites and steps.If it is not possible let me know the reason so that I can explain to the client
    2.how can I take print of credit note and MIRO kindly let me know  T,code.
    hope to hear back from you all....
    Thanks&Regards,
    chand

    Hi chandysrm ,
    You can creatye Release strategy for plant specfic.
    Create charetestic (CT04) for plant : CEKKO-WERKS.
    Assign with Class (CL02) --032
    Create Rel. Group , Rel. Code & Rel. Strategy.
    create rel. strategy for each different plant.
    In classification view give the plant code.
    [http://wiki.sdn.sap.com/wiki/display/ERPSCM/RELEASE+PROCEDURE]
    [PO Release Resetting after Value Reduction;
    [Separate release procedure for PO and PO under contract]
    [release procedure for contract]
    [release procedure for contract]
    Credit note print out : MR90.
    SAM
    Edited by: Saminathan Gopalan on Jun 9, 2010 10:39 AM

  • Create Client Installer Failing

    I have a brand new Mac Mini running Apple Remote Desktop 3.5.1 on Lion 10.7.3 that I am trying to create a custom client installer and right at the end it fails every single time. Saying that "An unexpected error has occured while creating a custom installer. Please try again"
    Anyone else getting this issue? at all

    Custom Installer Issues with 3.5.2 Client and 3.5.1 Admin
    Do you have a computer that is pre ARD client update 3.5.2? if so, you could try making your installer with ARD on that client. And you could report the issue.
    And you can always send Feedback about ARD to Apple.
    In thread Can't install Apple Remote Desktop 3.5.1 custom installer on Lion 10.7.3, Eric Shaheen suggested looking in //private/tmp/RemoteDesktopClientInstaller/ to see if ARD actually did create the installer; and if so, to copy it to the desktop. in the same thread gavin0001 said he was able to modify the 3.5.2 client update to make a custom installer.
    You might also want to check out thread I can't get Custom Installer to create accounts on Lion.  I'm using ARD 3.5.1.

  • Error creating DaemonSession thread

    Hi All,
    I am having the "JVMCI015:OutOfMemoryError" with my Sun ONE Web Server 6.1 SP1 on IBM AIX platform. I am using IBM JDK 1.4.1.
    I always hit this error when trying to load test the web server with 1500 concurrent users. I have set yhr RqThrottle tp 1536 and the MaxKeepAliveConnections is 1024. Java Heap Size is 512m. I even tried increase the heap size to 1.5 G, but the error still occur.
    Would appreciate if any solution is given.
    The detailed error is :
    [28/May/2004:17:04:09] info (28120): CORE3274: successful server startup
    [28/May/2004:17:05:50] failure (28120): Error creating DaemonSession thread
    [28/May/2004:17:05:50] failure (28120): Error creating DaemonSession thread
    [28/May/2004:17:05:50] failure (28120): Error creating DaemonSession thread
    [28/May/2004:17:05:50] failure (28120): Error creating DaemonSession thread
    [28/May/2004:17:05:50] failure (28120): Error creating DaemonSession thread
    [28/May/2004:17:05:50] failure (28120): Error creating DaemonSession thread
    [28/May/2004:17:05:50] failure (28120): Error creating DaemonSession thread
    [28/May/2004:17:05:50] failure (28120): Error creating DaemonSession thread
    [28/May/2004:17:05:50] failure (28120): Error creating DaemonSession thread
    [28/May/2004:17:05:50] failure (28120): Error creating DaemonSession thread
    [28/May/2004:17:05:50] failure (28120) https-uob: for host 10.128.1.33 trying to POST /servlet/LiveGiverServlet, service-j2ee
    reports: StandardWrapperValve[LiveGiverServlet]: WEB2792: Servlet.service() for servlet LiveGiverServlet threw exception
    javax.servlet.ServletException: WEB2664: Servlet execution threw an exception
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:793)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    ----- Root Cause -----
    java.lang.OutOfMemoryError: JVMCI015:OutOfMemoryError, cannot create anymore threads due to memory or resource constraints
    at java.lang.Thread.start(Native Method)
    at com._3rdfrontier.livegiver.servers.pushchannel.LiveGiverClientConsumer.<init>(LiveGiverClientConsumer.java(Compiled
    Code))
    at com._3rdfrontier.livegiver.servers.pushchannel.LiveGiverAggregator.subscribe(LiveGiverAggregator.java(Compiled Code
    at com._3rdfrontier.livegiver.servers.pushchannel.LiveGiverAggregator.handleRequest(LiveGiverAggregator.java:838)
    at LiveGiverServlet.doPost(LiveGiverServlet.java:1094)
    at LiveGiverServlet.service(LiveGiverServlet.java:437)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    magnus.conf
    # The NetsiteRoot, ServerName, and ServerID directives are DEPRECATED.
    # They will not be supported in future releases of the Web Server.
    NetsiteRoot /package/SUNWwbsvr
    ServerName AIX1
    ServerID https-test
    RqThrottle 1536
    DNS off
    Security off
    PidLog /package/SUNWwbsvr/https-test/logs/pid
    User qgdev
    #StackSize 131072
    StackSize 524288
    TempDir /tmp/https-test-5328a767
    PostThreadsEarly on
    KernelThreads off
    #enabling statistic
    UseNativePoll off
    KeepAliveThreads 2
    MaxKeepAliveConnections 1024
    AsyncDNS off
    Init fn=flex-init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
    Init fn="load-modules" shlib="/package/SUNWwbsvr/bin/https/lib/libj2eeplugin.so" shlib_flags="(global|now)"
    Init fn="stats-init" update-interval="5" virtual-servers="1" profiling="yes"
    server.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Copyright (c) 2003 Sun Microsystems, Inc. All rights reserved.
    Use is subject to license terms.
    -->
    <!DOCTYPE SERVER PUBLIC "-//Sun Microsystems Inc.//DTD Sun ONE Web Server 6.1//EN" "file:///package/SUNWwbsvr/bin/https/dtds/sun-web-server_6_1.dtd">
    <SERVER qosactive="false">
    <PROPERTY name="docroot" value="/package/SUNWwbsvr/docs"/>
    <PROPERTY name="accesslog" value="/package/SUNWwbsvr/https-test/logs/access"/>
    <PROPERTY name="user" value=""/>
    <PROPERTY name="group" value=""/>
    <PROPERTY name="chroot" value=""/>
    <PROPERTY name="dir" value=""/>
    <PROPERTY name="nice" value=""/>
    <LS id="ls1" port="5050" servername="AIX1" defaultvs="https-test" ip="any" security="off" acceptorthreads="4" blocking="false"/>
    <MIME id="mime1" file="mime.types"/>
    <ACLFILE id="acl1" file="/package/SUNWwbsvr/httpacl/generated.https-test.acl"/>
    <VSCLASS id="vsclass1" objectfile="obj.conf" rootobject="default" acceptlanguage="false">
    <VS id="https-test" connections="ls1" mime="mime1" aclids="acl1" urlhosts="AIX1" state="on">
    <USERDB id="default"/>
    <WEBAPP uri="/" path="/projects/test/web/http" enabled="true"/>
    </VS>
    </VSCLASS>
    <JAVA javahome="/package/SUNWwbsvr/bin/https/jdk" serverclasspath="" classpathsuffix="" envclasspathignored="true" nativelibrarypathprefix="" debug="off" debugoptions="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n" dynamicreloadinterval="-1">
    <JVMOPTIONS>-Djava.security.auth.login.config=/package/SUNWwbsvr/https-test/config/login.conf</JVMOPTIONS>
    <JVMOPTIONS>-Djava.util.logging.manager=com.iplanet.ias.server.logging.ServerLogManager</JVMOPTIONS>
    <JVMOPTIONS>-Dorg.omg.CORBA.ORBClass=com.ibm.CORBA.iiop.ORB</JVMOPTIONS>
    <JVMOPTIONS>-Dorg.omg.CORBA.ORBSingletonClass=com.ibm.rmi.corba.ORBSingleton</JVMOPTIONS>
    <JVMOPTIONS>-Djavax.rmi.CORBA.UtilClass=com.ibm.CORBA.iiop.UtilDelegateImpl</JVMOPTIONS>
    <JVMOPTIONS>-Djavax.rmi.CORBA.StubClass=com.ibm.rmi.javax.rmi.CORBA.StubDelegateImpl</JVMOPTIONS>
    <JVMOPTIONS>-Djavax.rmi.CORBA.PortableRemoteObjectClass=com.ibm.rmi.javax.rmi.PortableRemoteObject</JVMOPTIONS>
    <JVMOPTIONS>-Xms512m</JVMOPTIONS>
    <JVMOPTIONS>-Xmx512m</JVMOPTIONS>
    <SECURITY defaultrealm="file" anonymousrole="ANYONE" audit="false">
    <AUTHREALM name="file" classname="com.iplanet.ias.security.auth.realm.file.FileRealm">
    <PROPERTY name="file" value="/package/SUNWwbsvr/https-test/config/keyfile"/>
    <PROPERTY name="jaas-context" value="fileRealm"/>
    </AUTHREALM>
    <AUTHREALM name="native" classname="com.iplanet.ias.security.auth.realm.webcore.NativeRealm">
    <PROPERTY name="jaas-context" value="nativeRealm"/>
    </AUTHREALM>
    <AUTHREALM name="ldap" classname="com.iplanet.ias.security.auth.realm.ldap.LDAPRealm">
    <PROPERTY name="directory" value="ldap://localhost:389"/>
    <PROPERTY name="base-dn" value="o=isp"/>
    <PROPERTY name="jaas-context" value="ldapRealm"/>
    </AUTHREALM>
    </SECURITY>
    <RESOURCES/>
    </JAVA>
    <LOG file="/package/SUNWwbsvr/https-test/logs/errors" loglevel="info" logvsid="true" logstdout="false" logstderr="true" logtoconsole="false" createconsole="false" usesyslog="false"/>
    </SERVER>

    Hi Elving,
    I agree with you that we don't need so many threads to support concurrent many users for normal web application.
    But what happen is that if i have an application which will take a very long time to process a request and probably will not complete the request for a few hours. So if i want to test for 1500 concurrent users, i need to have at least 1500 threads to service this kind of request. Otherwise, some of the users may need to wait for a few hours in order to get serviced by web server.
    Thus, is there a way to allow OS or web server to create this many of threads?

  • Creating Client / Server

    Hello, I am trying to write a small engine that I can base my game off of.
    I have been looking over the use of Datagram, and I've done the examples / modified them. Now what I am trying to do is have the client send packets, lets say packet 15, then have the server recieve '15' and send the client back information on what to do, such as allow a player to log-in ect.
    So, I believe what I have is backwords, and it is having the server send information not recieve it, and the client recieving information and not sending it. Without further rambling I will post the code that I have, please let me know what / how I can modify it so that the client sends / recieves information, and the server interprets the packet and sends information back based on the packet Id.
    Thank you; code below.
    *@Author Mark LeBlanc
    *@Date March 07, 08
    public class Server {
        public static void main(String[] args) throws java.io.IOException {
            new GameEngineThread().start();
    *@Author Mark LeBlanc
    *@Date March 07, 08
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class GameEngineThread extends Thread {
        protected DatagramSocket socket = null;
        protected BufferedReader in = null;
        private long HALF_SECOND = 500;
        public GameEngineThread() throws IOException {
            this("GameEngineThread");
        public GameEngineThread(String name) throws IOException {
            super(name);
            socket = new DatagramSocket(5555);
        public void run() {
            try {
                byte[] buf = new byte[256];
             DatagramPacket packet = new DatagramPacket(buf, buf.length);
                 socket.receive(packet);
             String dString = null;
             if (in == null)
                 dString = "Welcome back mark";
                else
                    dString = "Invalid packet";
                buf = dString.getBytes();
             InetAddress address = packet.getAddress();
                int port = packet.getPort();
             packet = new DatagramPacket(buf, buf.length, address, port);
             socket.send(packet);
             try {
              sleep((long)(Math.random() * HALF_SECOND));
             } catch (InterruptedException e) {}
            } catch (IOException e) {
             e.printStackTrace();
         socket.close();
    }CLIENT:
    *@Author Mark LeBlanc
    *@Date March 07, 08
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class ChaosIsles {
        public static void main(String[] args) throws IOException {
         try {
            DatagramSocket socket = new DatagramSocket();
            byte[] buf = new byte[256];
            InetAddress address = InetAddress.getByName("localhost");
         DatagramPacket packet = new DatagramPacket(buf, buf.length, address, 5555);
         socket.send(packet);
         packet = new DatagramPacket(buf, buf.length);
         socket.receive(packet);
         String received = new String(packet.getData(), 0, packet.getLength());
         System.out.println(received);
         if (received == "Logout") {
         socket.close();
         } catch (IOException e) {}
    }

    Thank you so much for your reply, there may be many other ways for creating such an application but I want to create it using swings only. So to start with I just needed some sample code or some open source project on the similar lines

  • I group messaged from my ipad and this has screwed up the way my messages are reveived by my friends (it creates new threads in their phones with my email in place of my contact name) I've stopped messaging from my ipad but the problem remains. Any help?

    I have an iPhone 4S and use the group texting feature ALL THE TIME. I recently updated my iPad to the latest software and made the colossal mistake of continuing my group messaging from my iPad while connected to wifi. Doing this has successfully screwed but every group text thread I am in, to the point where its very hard for those involved in the thread to keep up. When I initially messaged those I was already engaged in text threads with it created a new thread in their phones replacing my name in their phones with my email. At first this was not a big deal but ever since then the people I am messaging have become increasingly frustrated with how my messages come through. If I am messaged in a group text and respond to it, sometimes when I respond it will create an entirely different thread in my recipients phones. So at that point they have to switch threads in order to read what I wrote. The new thread that my phone creates will send the message under my email not my name (related to the contact they have me saved as in their phones). The worst part about it is that there seems to be no rhyme or reason to why or when my phone will send the message as normal or under my email like it did with my iPad. I haven’t messaged from my iPad since these problems immediately began a month ago but the issues still continue. I have tried everything to get this to stop, I’ve turned off my wifi, I’ve had my friends delete the threads that my messages create in their phones. I’ve had them delete my email in their contact lists and nothing has worked. Can you help me? Any info you could provide would be greatly appreciated.
    Note: My phone message no different whatsoever. All the threads have remained the same. The issue is what it is doing to the people that I am messaging.
        Best Regards
             Rick Mulhern
    Message was edited by: Rickapplehelp19

    I have this identical problem.  For a while my group texts didnt show up on my ipad.  Then one day they did, maybe everyone in the group started using the same os version or something.  Ever since my first reply to the group there have been complaints of multiple threads.  I can not find a pattern for when my group text's decide they want to create a new thread. (it doesnt happen every time)  Everyone in the group has deleted the thread, we've all toggled imessage on/off etc.  There still hasn't been a solution.
    Any help would be appreciated.
    Thanks

  • How to create client stub while deployign EAR on Oracle Application Server

    Hi,
    I have deployed an EJB on Oracle Application Server 10g 10.1.2.0.2. And i want to call this ejb from other app server using ejb client. For that i need client stub.
    Is there any way I can create client stub while deploying EJB on the OC4J?
    I am sure there will be some options.
    Thanks and Regards
    AT

    Amit,
    It depends on which transport protocol you use to transmit both the client requests and the server responses: either IIOP or ORMI.
    Here's how it works: if you've chosen the IIOP protocol, the client stubs are generated at deploy time and stored in the iiopClient.jar file. Once created, you append this file to your java client's classpath.
    Now, if your choice is ORMI, the client stubs are created on demand by the container, so there is no need to append any jar file to the client classpath.
    Consult the OC4J Services Guide in the Official Oracle Application Server docs for further inforrmation on this topic, specially the "Remote Method Invocation" chapter.
    RB

  • Want to create a type at runtime

    Hi all ,
    I am trying to create a type at run time within my scheme by making use of a table loop.
    [code]
    Report test_data.
    data :
        llv_imp type table of RSIMP,
        gt_imp_par type string occurs 0.
    Field-Symbols :
        <fs_imp_par> like RSIMP,
        <fs_struct> type string.
    Form inst_par_types
      Changing
      lv_imp like llv_imp
      lt_imp_par like gt_imp_par.
    Data :
        lv_str(72)  type c ,
        lv_line     type I ,
        lv_delim    type C value ',' .
    Describe table lv_imp lines lv_line.
    Loop at lv_imp assigning <fs_imp_par>.
        if sy-tabix = lv_line.
           lv_delim = '.'.
        endif.
          if <fs_imp_par>-default is not initial.
            concatenate <fs_imp_par>-parameter 'TYPE' <fs_imp_par>-typ
            'VALUE' <fs_imp_par>-default lv_delim into
            lv_str SEPARATED BY space.
          else.
            concatenate <fs_imp_par>-parameter 'TYPE' <fs_imp_par>-typ
            lv_delim into lv_str SEPARATED BY space.
          endif.
      append lv_str to lt_imp_par.
      clear lv_str.
    endloop.
    Types :
            Begin of l_tabname ,
               <b><i>{T$lt_imp_par$$$&lt_imp_par&$$}</i></b>
            End of l_tabname.
    EndForm.
    [/code]
    But when i instantiate this scheme it dumps as the highlighted line creates 2 different definitions of same variable lt_imp_par (1 as var & another one as table).
    What shall I do to get the solution?

    Please do not post multiple treads for the same question.
    Please refer to other thread.
    want to create an internal table at runtime
    Regards,
    Rich Heilman

  • Is it possible to create a thread and run it in background in nokia ??

    Is it possible to create a thread and run it in background in nokia series 40 mobile phones using j2me ??

    Probably a good question for ForumNokia. If you mean start up a thread and run in the background while your MIDlet UI does other things, then sure, why not. If you mean that you want to exit your MIDlet, but leave a thread running in the background, then I don't believe you can do this on series 40. S60 is another story since it supports multiple tasks.

  • Error while creating Client Proxy from SE80

    Hi all,
    I am trying to create Client Proxy with WSDL through SE80. There is no involvement of XI to create the Proxy.
    I am using the option 'Local file' and uploading the wsdl file.
    But I am getting the following errors.
    "Proxy-Generierung: Fehler aufgetreten"
    "Exception occurred in library handler"
    "Illegal syntax: Element header has invalid enhancement attribute
    http://schemas.xmlsoap.org/wsdl/:required"
    If any one could understand them and worked in a similar scenario, pls help me out.
    regards,
    teja.

    hi,
    you might want to post the WSDL in question for us to have a look at.
    but actually, the error message tells a lot:
    http://schemas.xmlsoap.org/wsdl/:required
    the second colon(, the one between wsdl/ and required, makes this expression an illegal one in any kind of a URI-like meaning (namespace, ref-URL, ...)
    anton

  • Want to create a new folder in Windows using Java?

    Hello everyone!!!
    The situation is I want to create a folder using Java.
    What I am doing is I am asking client to upload files.If the client is uploading for the first time a new folder is created on the server side and all the files related with that client will be uploaded in that folder only.Can anyone help me with the code.I am using html for letting client select the file to be uploaded and jsp to upload the file .The server I am using is Tomcat5.5 and OS is Windows Xp.
    Please help me with the code or any alternate logic.
    Thanks in advance.

    create a java.io.File object for the path you'd like your directory to have and call .mkdir() on it (or mkdirs() if you need to create a hierarchy of directories).

  • Need some help in creating client proxy to call webservice

    Hi experts,
    I am new to ABAP so couldnt understand the SAP ABAP jargons.
    On of my colleague has written one search help exit function and i need to use that and have to write client proxy to establish connection to webservice.
    I never worked on proxy or webservice so, struggling to understand the concept and steps.
    I am following second part i.e Release 640 part of /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap weblog.
    I couldnt find "To get the process started, we turn to our old friend SE80. <b>From the Enterprise Services Tab, we are going to select Client Proxy and then hit create"</b>
    when i go to transaction se80 ObjectNavigator, i could see two dropdown lists after some tabs.
    in first list, I have selected, "Application Hierarchy", and in second I am selecting "Package".
    Not sure whether its correct or not.
    Once i do this i could see long list of <b>Object name and its description.</b>
    Now, what should i do ? where should i go for "Enterprise Services Tab" to create my proxy.
    Any help would be appreciated.
    Please send me PDF, having detailed steps to create client proxy.
    Thanks,
    Pranav

    Right click on the package and select Proxy object. In the Wizard select Service Consumer.
    then give the url of the WSDL file you want to access or path if u have a local file.
    then give the package for client proxy.
    then complete the wizard. the  client proxy will be create in that package.
    Next step will be creating a Logical Port using the transaction "lpconfig". Give the proxy name of the service interface created under client proxy. and set the configuration as follows.
    1. Make as a default port.
    2. in the URL, give the url of the webservice (.asmx)
    3. select "State Enabled" and "Message ID"
    and after creating a logical port,  set the proxy settings as in your webbrowser.
    (Http proxy server and port).
    then simply execute your webservice from SE80.

  • I want to Create an Single Installer (My Application + DSC Run Time License )

    Hi,
       I want to create an single installer by including my Application and DSC RTL, So by using this i will give an single installer to my clients where they dont have any Lab VIEW components. Even though i seen some similar post, but its doesnt give me a proper solution for this. Please do the needfull.
     With Regards,
    Vijayakumar.V

    Hi Vijay,
    I think, there is no seperate RTL for DSC (for that matter, for any of other NI addons/toolkits) to be included in the installer.
    You need to select the appropriate installer from the Additional Installers category while creating the installer.
    Please see the attached pic.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    NI DSC 8.6 Deployment.PNG ‏43 KB

Maybe you are looking for

  • Raw  material stock report with vendor wise

    Dear all , Can any one tell me , How do I get stock report only on " VENDOR " wise . The purpose is , I've multiple souces for one Material , I need analyse the available inventory with vendor wise. Pl.s help Thanks in Advance Sekhar

  • How can i update my mac os x 10.4.11

    I currently have an old macbook with mac os x 10.4.11 software. I am looking to update my software with the latest update available. Where should i begin and what update should i use?

  • Attempt to unregister non-registered thread in the ContextProvider

    Hi, I am running the baseline graph on Endeca integrator 2.3. While running the baseline graph I am getting the following error INFO  [main] - ***  CloverETL framework/transformation graph, (c) 2002-2012 Javlin a.s, released under GNU Lesser General

  • Need an IF condition, if Prod No has multiple same STCTS values

    Hi, I need to write the logic like below : loop at t_final into wa_final. If PRVSY(Product Number) has multiple same STCTS values if wa_final-datab > sydatum. clear wa_final-stcts. delete t_final where stcts is initial. endif. endif. endloop.   For e

  • Elements 6.0 lighting effects lack of smooth color graduation

    I'm using Elements 6.0 and am applying a sppotlight effect to a TIFF (from RAW) portrait.  I am extemely pleased with the results - except - on closer review there are now definite color "rows" insteat of a smooth color transition on the subject's fo