Connecting a j2me app with tomcat

I have created a J2ME application which connects to a web-server (servlets) and returns some data!! I dit it with the J2ME toolkit and tomcat and now i want to test in a real phone! So i got Siemens SL45i. How can i establish a connection with tomcat in my pc ? Can I somehow connect my phone and my pc with a cable or something?
thanks in advance!
Sarantos

Thanks for your reply but i am not sure that i understood ! Do you suggest to connect another mobile phone to my pc and use it like a wap gateway or something and then call it from my j2me phone the same way i call my wap provider?
Why not connecting my phone directly to the pc?
thank you very much!!
Sorry if i am saying something completely wrong !!!

Similar Messages

  • How to create a single login for multiple apps on tomcat server?

    Hello,
    I am running the most recent versions of apache and tomcat on several dells with XP pro.
    When I login to an app I have created, a session variable is set, but when I browse to one of the other apps on the same computer, it does not recognize that the session variable has been set and I have to login again.
    Can somebody please suggest how, or where I can find docs, to configure tomcat to pass the session variables to other apps?
    Thank you very much.
    Or, can anybody suggest the most effective strategy for creating single-logon functionality for multiple apps with tomcat and apache running on one computer? and with tomcat and apache running on multiple computers? (i.e., each computer has tomcat and apache integrated).
    The database is Oracle 10g running on each computer.
    Thank you again.

    A good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
    Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
    "Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
    hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
    Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded"

  • Are there any ways to package a J2ME app and let people view via computer?

    Are there anyways to packaged a J2ME app with the emulator?
    So that when people click on a bat file, that emulator will run along with the J2Me app?
    I saw this in the jbuilder console
    C:\WTK21\bin\emulator.exe -classpath "C:\MyApp\classes;" -XdeviceefaultColorPhone -Xdescriptor:"C:\MyApp\jad-temp\MyApp.jad"
    I belive it can be done?
    Please advise. Thanks

    What? An .exe? What is this? Do you know that you are coding in Java? Especially in J2ME? What do you want with a windows executable on your mobile phone?
    Once more:
    1) pack your project and generate the jad/jar files. This contains your code, the app you wrote.
    2) To run this, you need a phone or an emulator. (like you need windows to run an exe). So either you transfer these to a phone and run it from there or use the emulator that comes with the WTK or SunONE or whatever. And for running on an emulator, you can write a .bat for starting. Of course, you can write a .exe but it will do nothing else than calling the emulator with its parameters.
    Thats the Java principle btw:
    Bytecode (i.e. jad/jar in mobile environment)
    Java VirtualMachine (i.e. an emulator)
    OS (i.e. Win32)
    hth
    Kay

  • Connecting to j2me through http

    I have seen several examples of connecting j2me app to a server, but is it possible to connect to j2me app from server? If yes, can somebody point me to any references
    Thanks

    i dotn think so that is possible
    you need to have some reference of client application to connect it from the server!
    [email protected]

  • Netbeans 5.0 bundled with tomcat

    I cant run a simple web app with tomcat because it wants a username and password. But i've tried changing the tomcat-user.xml file to "manager" role. I'm lost.
    Thanks

    look in this directory:
    C:\Documents and Settings\Owner\.netbeans\5.5beta2\config\J2EE\InstalledServers
    ** Owner will be your windows user name
    find a file named .nbattrs
    Inside that file may have your default admin username and password.
    It is an xml file and look for the section like the following:
        <fileobject name="Tomcat_instance">
            <attr name="admin_port" stringvalue="8025"/>
            <attr name="debug_type" stringvalue="SEL_debuggingType_shared"/>
            <attr name="displayName" stringvalue="Bundled Tomcat (5.5.17)"/>
            <attr name="httpportnumber" stringvalue="8084"/>
            <attr name="instance_id" stringvalue="tomcat55"/>
            <attr name="password" stringvalue="H56E5wNS"/>
            <attr name="timestamp" stringvalue="1153304925000"/>
            <attr name="url" stringvalue="tomcat55:home=$bundled_home:base=$bundled_base"/>
           <attr name="username" stringvalue="ide"/>
        </fileobject>If you still have problems, I suggest you subscribe to the nb-users mailing list and ask there.
    http://www.netbeans.org/community/lists/top.html
    JJ

  • My webApplication works just with TOMCAT 3

    I've done a web application server/client.
    It's a Servlet and an applet.
    I developed that app with tomcat 3 but with tomcat 4 it does not work.Why?
    I tried to use the manager servlet of TOMCAT 4 for deploing but after installing the web appplication it does not work.

    It 's better but maybe you can help me with this problem.
    I have this web.xml on my web-inf folder:
    <web-app>
    <display-name>Server Application</display-name>
    <description>
         This is a simple web application with a source code organization
         based on the recommendations of the Application Developer's Guide.
    </description>
    <servlet>
    <servlet-name>EchoServlet</servlet-name>
    <servlet-class>EchoServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>EchoServlet</servlet-name>
    <url-pattern>/MM2</url-pattern>
    </servlet-mapping>
    </web-app>
    The problem is that Tomcat 4 cannot find the url pattern /MM2 and so my Servlet.With Tomcat 3 it works.
    I configured the server.xml and web.xml (not the web-inf/web.xml) as the http://www.moreservlets.com/Using-Tomcat-4.html#Enable-Invoker
    author suggested me to do.And with these new features some easy Servlets work correctly.Except my servlet with the url-pattern above specified.Help please!

  • J2ME WITH TOMCAT

    Hello Guyzz
    i want to create an j2me application where it connects to the webserver like tomcat . .
    i can do it in j2me wireless toolkit emulator but when i deployed that jar file in real device it was not working .
    i want to build this application using private ip address but not with public ip address no problem if we use
    datacable or bluetooth connection instead of GPRS . . .
    Let me know if any one have idea about this . .
    Thnx in advance

    Thanks for your reply but i am not sure that i understood ! Do you suggest to connect another mobile phone to my pc and use it like a wap gateway or something and then call it from my j2me phone the same way i call my wap provider?
    Why not connecting my phone directly to the pc?
    thank you very much!!
    Sorry if i am saying something completely wrong !!!

  • Wireless connection speed for J2ME app on Palm VIIx device

    I have just developed a J2ME app on Palm VIIx device. Everything works exactly as what I have designed, except that the wireless communication to send and receive infomation is painfully slow. It takes about 1 min. to send and receive 300 charactors on the Palm VIIx device. As for comparisons, it only takes few seconds on the simulator(connected through LAN/WAN) for the same application. And for other defaultly installed non-J2ME wireless applications on the Palm VIIx device, e.x., ABC News, Amazon, etc., it also only takes few seconds to retrieve 500~600 characters.
    Does anybody know why the J2ME wireless communication on Palm VIIx device is so slow? Any solutions?
    My code is like in the following:
    private String getWirelessQueryResult(String urlStr) {
    StringBuffer sb = new StringBuffer();
    InputStream is = null;
    StreamConnection c = null;
    try {
    c = (StreamConnection)connector.open
    (urlStr,Connector.READ_WRITE);
    is = c.openInputStream();
    int ch;
    while((ch = is.read()) != -1) {
    sb.append((char)ch);
    } catch (IOException e) { sb = new StringBuffer("error"); }
    finally {
    try
    if(is != null) { is.close(); }
    if(c != null) { c.close();}
    catch (IOException e) {}
    return sb.toString();

    You've done nothing wrong with your code that I can see. I have run into the same problem on both the Kyocera and the Samsung palm OS phones. If you take the same code you have written here and put it on a motorola phone you will see a huge difference.
    I can only suspect it has to do with the single threaded nature of the palm OS itself. Luck.

  • My new iPhone 4S can't connect to iTunes, App Store or iBooks via Wi-Fi. Works with 3G network. How to fix this?

    My new iPhone 4S (week old) can't connect to iTunes, App Store or iBooks via Wi-Fi (and some other apps e.g. Hollister – but most of the other apps like Safari or ebay work fine). There is no problem with those apps loading via 3G network. When I turn off the wi-fi, it runs over 3G and i can access App store without any problem. When i turn off the 3G network and turn the Wi-Fi on, those apps like App Store won't work, other apps work fine. When i turn on both Wi-Fi and 3G, the App store (and so on) is also not working, other apps are.
    I also found out that when the Wi-fi is on and I sign out my apple ID, the App store starts working! But when I log in again, it will imediatelly stop working. I've tried logging in with others apple IDs, still with the same result. There is no problem with my apple ID account, because it works on my iPad, even via Wi-Fi.
    When i first set up my iPhone, there were no complications using App store ia Wi-fi with exactly the same account. I don't know if it has anything to do with it, but this problem started when i logged in with my UK account and then wanted to log back in with my Czech account.
    I tried turning it off, hard reset and deleting my iPhone several time (even without back up). Nothing worked since then.
    Does anyone have any idea how to fix this?
    I would really appreciate ANY help. This porblem is driving me crazy!

    I am also having the same issue. Please help!

  • My iPod touch 4th gen. Keeps giving me the error message "cannot connect to the app store when I sign in. I can open the app store and browse it but I can't download anything. I have full signal strength with my wi-fi and safari is working perfect.

    My iPod touch 4th gen. Keeps giving me the error message "cannot connect to the app store when I sign in. I can open the app store and browse it but I can't download anything. I have full signal strength with my wi-fi and safari is working perfect. I turned it off and restarted it 3 times now. I have an iPad 2 and the app store works flawlessly with it. What is going on?

    Same here on my lpad2. Can access the web just fine from browsers but cannot install new apps or updates in appl store.  Seeing a few others reporting same issue tonight so likely an apple server issue and staff will notice it in network monitors and fix it...sometime this weekend.
    Rob

  • After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    Your advice did not help me. I also installed 10.7.4 combo but the situation is the same.
    my internet connection is ok, mail is ok, but app store after 3 resets does not recognize my ID and it says "connection is not possible". Why? I have the same problem in both my mac mini late 2009 and mac book air 2010? Is it a problem of 10.7.4 update? I have to solve this problem and how can i return to 10.7.3 if my last backup was not with 10.7.3???thank you for your kind collaboration...

  • How to Use No DB connection App with task flow desined as 'New Transaction'

    Hi,
    My application is fully depend on Custom java datasource implmentation and it requires no DB connection at all. I've done necessary implementation (http://andrejusb.blogspot.in/2012/03/use-case-for-adf-bc-with-no-database.html) by creating CustomDatabaseConnectionStrategy that says
        @Override
        public ApplicationModule createApplicationModule(Hashtable env) {
          env.put(Configuration.DB_REQUIRES_CONNECTION,Boolean.FALSE);
          env.put(PropertyMetadata.ENV_DO_FAILOVER.pName, PropertyConstants.FALSE);
          return super.createApplicationModule(env);
        }My application works fine until i keep my task flow transaction as 'No Controller transaction'. Yes, I use Dynamic tab shell template as UI. But when I keep it as 'Always Begin with New Transaction' and not to share the Data control, Screen is not at all getting rendered. I get some exception (I guess the moment I try to open the task flow, it is trying to get the connection. Since there is no connection available, It gives me this error. Is it so?)
    One of my client requirement is to open the same screen under multiple tabs as a fresh screen (i.e. with different transaction. We do transaction through tuxedo transaction server). If I load a screen under first Tab with some data, added some record, deleted some record.. and If I load the same screen under another Tab, it should not refelect the same data whatever I have under first Tab.
    Requirement:
    I don't have DB connection in my app. But I should be able to define the task-flow to open with new instance of Application module whenever it is opened.
    Your help on this would be appreciated.
    Raghu

    If I understand you requirements correctly, you do not need ADF taskflow transactions but you just need fresh DataControls. If it is so, then you do not have to set the taskflow's transaction behaviour to "Always Begin with New Transaction" (e.g. keep it to "No Controller Transaction"), but set the DataControl frame to "isolated" (e.g. uncheck the "Share data controls with the calling task flow" checkbox in the taskflow's Property Inspector). In this way each taskflow instance will be started in a different DataControl frame (e.g. it will instantiate its own set of ApplicationModule instances).
    Dimitar

  • Why i'm unable to update App with different Apple ID? (it gives me an error: Impossible to connect to iTunes Store)

    Hello,
    i installed a lot of Apps on my iPad (both free and purchased), then a sad day  i had to change my apple ID (due to some mistakes in configuring the ipad for my wife with a different apple ID and for icloud...).
    Now i have apps with my last apple ID account and apps with my previous one.
    When i have to update Apps with my last apple ID, there's no problem, but when i try to update Apps installed with the OLD one a problem occurs and even if i type the right password for it i get always the same message: Impossible to connect to iTunes Store!
    Password for old apple ID is correct because i can log on line at account page on https://appleid.apple.com/it/
    I read everywhere that having Apps with different account on the same Ipad is allowed, so....What's the Problem?? 
    thank you in advance.
    Bye

    Content and Apple IDs -
    Content is forever tied to the Apple ID that bought it. Apple does not transfer content from one Apple ID to another. Apple does not merge Apple IDs. You will never be able to access your content bought with another Apple ID with a new Apple ID.

  • How can I make an app with xcode that works like a news app? So that I can post articles on the app. Do I have to use a database or can I connect the app directly with my mac?

    How can I make an iphone app with xcode that worrks like a newspaper? So that I can post articles on the app while it is on appstore. Can I directly connect the app with my mac or do I have to connect it to a database?  Thanks

    Funny, I was thinking you'd want to use the prescribed deployment that Apple went to all the trouble to provide so you wouldn't trot down the garden path with some other implementation, only to find your app rejected with the admonition to use Newsstand after all...
    If you're all hot to ignore all that & DIY, why are you even asking...why not just go for it...

  • HT5622 When Playing candy crush or dice with friends, I can no longer connect to the apps store

    When Playing candy crush or dice with friends, I can no longer connect to the apps store to purchase items like lives, dice etc.  This seems to be since the upgrad to IOS7.  Thoughts?

    Hello there, gracieflad.
    The following Knowledge Base article offers some practical and detailed steps to help resolve issues with not being able to connect to the iTunes Store with iTunes on your Windows computer:
    Can't connect to the iTunes Store - Apple Support
    Thanks for reachign out to Apple Support Communities.
    Cheers,
    Pedro.

Maybe you are looking for

  • Help Needed on Null Pointer Exception

    Hi All, Am using the wls10 platform. Any help would be appriciated. Have been struggling on this for a bit now. Thanks, The the relevant control code is: @JdbcControl.SQL(statement = "SELECT p.PATCH_ID, p.REQUIRES,ps.PRODUCT_DISPLAY_NAME, v.VERSION_N

  • Error - "All JCo return parameters are initial"

    Hi, I got this error on my production XI server for about two hours and then everything started to work again.  Does somebody have an idea of what could be the cause of this error?  (All JCo return parameters are initial) Rgds, Yves

  • GZIPPed  XMLEncoded HttpRequest post parameter!

    Hi All, I'm devolping a standalone java application that builds some kinds of objects and needs to send them to a servlet in xml fashion (via HttpUrlConnection with "post" method). My problem is that now this objects are too big so i thought: no prob

  • Problem with cascade delete in CMP one-to-one relationship

    I am not able to cascade delete for one-to-one relationship. Even though relationship seems to be setup correctly, record from the second table is not deleted. Following is the structure of tables i am using: First Table(vcc_lrmc) -- LRMCBean lrmc_id

  • SAP help error

    Hi experts, We are facing problem in accessing the SAP help(from HELP> saplibrary) i m getting the message Browser starting and then error as follows: couldnot find file <path>/frameset.chm. Then i have copied the help data manually to a system and g