How to construct a URL in client-server model

i wrote a prog, i use jdbc-odbc. URL="jdbc:odbc:filename",it runs very well while all on the SAME computer installed.
but if prog installed on a server and i work on a client-machine, it does'nt work with wrong message like: can not write to file because writesecurty and so on .
i guess i should give another url in form as: hostname + portnumber instead of the old one. is it true?
if yes, how can i get the portnumber of the server?
what else ground could it be?
has anybody experience with this topic, thanks a lot in advance

You must configure ODBC on the machine where the program is running to refer to the database on the remote system. Don't know how you would do that, it depends on the database and its ODBC driver. If possible, get a JDBC driver for your database and use it instead of JDBC-ODBC.

Similar Messages

  • Client /server model of network communication

    can some some tell me what is meant by the client / server model of network communication?

    See this networking tutorial
    http://java.sun.com/docs/books/tutorial/networking/index.html
    You could have asked both questions in the same post, as they are related.

  • HOW TO CONSTRUCT THE URL WITH INTRADOCUMENT LINKS (#...)?

    I have a url and i want to access or construct the full URL in jsp without losing the # links in the url. If I make a call to the URL lets say using the below mentioned way. when I issue the request.get... Methods to construct the URL inside the JSP page the #doclink were lost. The issue I have is people who have bookmarked a page like this should be automatically taken to that part of the document where the intra document link is define (or book mark link) using anchor tag.
    Is there any method or technique available to get the full url including the #doclink
    http://www.blahblah.com/blah.jsp?pg=/path/otherpath/blah.html#doclink
    is there a way to do it.
    You help in this regard will be greatly appreciated
    Thanks.

    Hey thanks for your reply, I want how can I retain the #doclink in a JSP page without losing it when someone types something like the below mentioned in the browser address bar. If they have bookmarked it this way, this is the way the browser is going to make the request.
    http://www.blahblah.com/blah.jsp?pg=/path/otherpath/blah.html#doclink
    So, inside the JSP page, getRequestURL, getRequestURI, and getQueryString, helps me reconstruct the URL but the #doclink gets missed. I can use the URLEncoding when it's inside the HREF or something, but when called from a browser the above way, I cant do anything really.
    Your help is greatly appreciated.
    Thanks a lot.

  • How to run a swing based client server application in web?

    hi ,
    wat hav 2 do to run a swing based client server application in web?

    Swing applications run on the client only. You have two basic options:
    1) turn the app into an applet so it can run inside the browser (but still on the client)
    2) use webstart to allow the swing application to automatically install on the client from your server.

  • Please tell me how to use the Simple bluetooth client server example.

    Hi i used the simple bluetooth client server example in labview 7.1. Iam getting an error saying your system does not support the network operation.  I have following doubts also.
    1. Should i pair the device before running the labview.
    2. Should i enable the file transfer wizard in the software given with the bluetooth adapter.
    Please help
    Thank you
    R.Prem kumar 
    09940446193

    Hi R.Prem,
    Could you please let me know what error code is associated with this error message? Also could you please provide a description of the setup you are currently using? Thanks!
    Best regards,
    Steven

  • How to test my inApp purchase in server model while my one app is live

    I have an iOS app with in APP purchase with server model, and ready for QA submission. According to Apple documents, my server should call "https://sandbox.itunes.apple.com/verifyReceipt" url for testing.
    That means till my app is in QA I have to put this url in my server and when my app cleared the review process and ready for sale then I should change my url?
    Ok, if that is the case, then how can I test my other application when the previous app is live? I have to create new urls to communicate with the server? I don't think this would be the only way. OR my application should tell my server whether it's a sandbox user or not? If yes, please help me how to check for that in the app. Please help me if I am missing something. Thanks.

    Out of the box every part of .NET will use the current culture of the machine for conversion to and from strings.  This includes currency, numbers, dates, etc.  One way to change that is to modify every place you use ToString or Parse/TryParse
    to specify a culture.  Another approach would be to set the thread(s) CurrentCulture/CurrentUICulture to be English which would override the default of the OS culture.
    But I cannot possibly recommend that you do this.  Issue 1 with such an approach is that there are places where ToString is called implicitly and you'd miss those cases.  Issue 2 is that making your app use a single culture is basically an anti-localization
    process which goes against modern application development.  Issue 3 is that you are hiding the fact that your code has a design flaw.  Your code shouldn't care about the culture of the user in regards to string processing.  If your code is making
    assumptions about culture settings then it is wrong.  You should be using culture-agnostic values if you don't care about cultural information.
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • Client/server model and avoiding a registry lookup

    Sorry if this question has been asked/answered before - I searched the forums and could not find the answer to my quesiton.
    I am using RMI to model a fairly vanilla client/server protocol. Client to server communctions are no problem (yet :-)) . The problem is, that sometimes I want the server to initiate communcations to the client (I guess the client would be acting as the 'server' in those instances although the client is the one that makes the initial connection) Is there any way to do this without the server having to bind the client in the client's remote registry? That would require a open port and I want to avoid that for people who are behind firewalls. I was thinking the client could pass an instance of itself, or an instance of a bound stub, and as long as it implemented 'Remote' then it should be OK. I don't have a problem setting up a registry client side, but if I pass an instance of client that is either registry bound or unbound, as long as it implements Remote, (or rather an interface that extends Remote) will the server make remote calls on the client object?
    Message was edited by:
    SunDog

    It's done all the time. What you're looking for is called "callback." Sun has a tutorial.
    One note: Calling the client requires the client to open a port for communication. This happens when the client exports the remote object.

  • How to update list item using client object model without changing created/modified dates?

    Hello All,
    I want to update list item using the SharePoint Client Object
    Model without updating the created / modified date. Is it possible?
    Please help.
    Thanks.

    Using the SystemUpdate method should do the trick, according
    to its literature.
    Additionally, would something like this be of any use for you?  Taken from this
    Stack Exchange thread: -
    public static class SPListItemExtensions
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void Update(this SPListItem item, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.Update();
    finally
    rh.EnableEventFiring();
    else
    item.Update();
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="incrementListItemVersion"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void SystemUpdate(this SPListItem item, bool incrementListItemVersion, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.SystemUpdate(incrementListItemVersion);
    finally
    rh.EnableEventFiring();
    else
    item.SystemUpdate(incrementListItemVersion);
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void SystemUpdate(this SPListItem item, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.SystemUpdate();
    finally
    rh.EnableEventFiring();
    else
    item.SystemUpdate();
    private class SPItemEventReceiverHandling : SPItemEventReceiver
    public SPItemEventReceiverHandling() { }
    new public void DisableEventFiring()
    base.DisableEventFiring();
    new public void EnableEventFiring()
    base.EnableEventFiring();
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to Pass a BufferedImage? Client - Server

    Please Help!
    I've been trying to figure out how to send a BufferedImage from my client program to the server program. I'm using a socket to create the connection. The client draws into a BufferedImage and then it is sent to the server to be saved as a JPG file. I've been able to create the image if I do it locally but since a BufferedImage is not serializable I can't do this the same way with the server. So how do I get my BufferedImage from the client to the server in a manner that I can then save it as a JPG on the server? Code examples would be very much appreciated!!!
    Thanks!
    Ryan

    I guess I'm not understanding what your saying. I just need a way to get what the user draws into a jpg on the server. I have been using sockets and streams but nothing I try really seems to work. Right now I am doing this:
    Client:
    Socket client = new Socket( InetAddress.getByName( "localhost" ), 5000 );
    ObjectOutputStream output = new ObjectOutputStream( client.getOutputStream() );
    ObjectInputStream input = new ObjectInputStream( client.getInputStream() );
    try {
    ByteArrayOutputStream imageOut = new ByteArrayOutputStream();
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder( imageOut );
    imageOut.flush();
    encoder.encode( sig.getImage() );
    byte[] image = imageOut.toByteArray();
    output.writeObject( image );
    Server:
    public void runServer() {
    ServerSocket server;
    Socket connection;
    try
    server = new ServerSocket( 5000, 100 );
    while ( true ) {
    connection = server.accept();
    output = new ObjectOutputStream(
    connection.getOutputStream() );
    input = new ObjectInputStream(
    connection.getInputStream() );
    ObjectOutputStream toFile = new ObjectOutputStream(
    new FileOutputStream( f ) );
    ByteArrayInputStream inStream =
    new ByteArrayInputStream( (byte[]) input.readObject() );
    JPEGImageDecoder decoder =
    JPEGCodec.createJPEGDecoder( inStream );
    BufferedImage sigImage = decoder.decodeAsBufferedImage();
    JPEGImageEncoder encoder =
    JPEGCodec.createJPEGEncoder( toFile );
    encoder.encode( sigImage );
    toFile.flush();
    output.close();
    input.close();
    connection.close();
    toFile.close();
    I imagine I have very ugly looking code here but I've been trying to make something work. My code does create the file but it is not a recognizable JPG file.
    Ryan

  • How to Configure my url in Apache server?

    i have an Apache webserver.i want to give url as desired say.http://intranet.com. Now iam giving my machine ip address as "127.0.101:9000 "to get my html page displayed from a remote terminal in a intranet network.
    How to configure the apache so that i can replace the ip address with my desired name url type. Please help me.

    How to configure the apache so that i can replace the
    ip address with my desired name url type. Please help
    me.Apache cannot do anything about this . It is your network DNS and DHCP that does this for you .If u edit the hosts file in a pc on ur lan ,then u can invoke from this m/c with the string as long as ur m/c isnt re-booted .This is assuming that u do not have a static IP adress .

  • How to construct an "URL-address" to open Adobe Reader XI at certain Comment/Mark-Up?

    Hello.
    I have set up Adobe Reader XI as pdf-Viewer in Google Chrome, so that when applying a certain URL in my HTML-code, it will bring up the pdf-document at the right spot and view.
    However, I'm frequently using the Adobe Reader XI for marking up datasheets etc., so that important places are easily accessible, and would of course like to be able to point these spots out, as well.
    Unfortunately, the guide
    - https://www.google.dk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB8QFjA A&url=http%3A%2F%2Fwww.adobe.c…
    is quite old... and years before the Comment tools were introduced...
    Thus:
    - Has anybody here any experience in constructing URL-links, that can "reach" a certain Comment or other Mar-up from the Adobe Reader XI documents?
    Thanks.
    Best regards - Jesper.

    It should be noted that Chrome does not use Adobe Reader by default, it uses its own viewer. This viewer does seem to implement some of the open parameters.
    Comments have been around MUCH longer than open options, and there are no new open options so far as I know. You can link to pages or named destinations. A named destination is not, as many people assume a synonym for something else like "bookmark" but something quite specific.

  • How to connect sharepoint online using client object model and authentictae against window login

    Iam developing A console application where in need to connect to sharepoint online and authenticate against window login can u please suggest me the code

    Hi,
    There is couple of helper method to check and validate the SPO credentials in the same solution.
    string userName = GetUserName();
    SecureString pwd = GetPassword();
    /* End Program if no Credentials */
    if (string.IsNullOrEmpty(userName) || (pwd == null))
    return;
    // Open connection to Office365 tenant
    ClientContext cc = new ClientContext(siteUrl);
    cc.AuthenticationMode = ClientAuthenticationMode.Default;
    cc.Credentials = new SharePointOnlineCredentials(userName, pwd);
    if you give incorrect user name or password it will throws an exception in the console.
    Murugesa Pandian.,SharePoint 2010 MCPD | MCTS|Configure

  • How to delete the workbench client server name in FDM

    Hi Gurus
    How to delete/change the workbench client server name in FDQM?
    regards
    Sarilla

    OK, I understand now. You are referring to the Load Balance Server Group. Yes, this can be done:
    a) Browse to Oracle\Middleware\EPMSystem11R1\Products\FinancialDataQuality\SharedComponents\Config
    b) Locate the LoadBalanceServerGroups.xml file
    You can delete this file. The next time the workbench is launched it will ask you to set the load balance server group again and will create this file again.

  • How to construct a shortcut to a topic for distribution?

    RH10, WebHelp Pro
    I  find  that if I "copy shortcut" of a topic in the browser (IE), the resulting shortcut looks like this:
    http://server.server/context/directory/server/general/projects/Myproject/Myproject.htm#top icname.htm
    When I then use this URL on our intranet, it does find the correct topic, however the Window is not correct. Specifically, it is using the correct skin but it displays buttons in the toolbar that are NOT selected in the window properties. For example, I do not have "Glossary" selected, but it gives me the glassary button anyway.
    However if the help system is opened via the standard URL which opens the first topic, the window is properly configured, and I assume this is because the string that opens the help system includes the name of the Window.
    Is there a way to insert the Window name in a copied topic shortcut so that if a user enters a topic directly (without opening the helpfile using the standard URL) they will see the correctly confugured toolbar?
    Thank you.

    Willam, thank you.
    Is this method available if I am not using application-based CSH?
    We publish via WebHelp Pro but there is no associated application CSH. The users access the WebHelp content directly through the browser (IE) rather than through a program interface.
    Most users, most of the time, will access the WebHelp by opening the default landing page and then use hyperlinks or the TOC from there to locate a particular topic page. However, as an alternative we  often want to provide a direct link to a page that may be 2, or three levels down the tree.
    If we give them just the URL for that page, they get the page without the navigation pane. Our preference is that the navigation pane (and the Search buttons, etc.)  always open  together with the page.
    In the RH9 documentation I have not found any guidance on how to construct a URL that activates the frameset except by going in via the default start page.
    Mike

  • Client/server program validation - is it possible?

    I've been mulling over this problem for a few days, and am starting to wonder if it's theoretically possible to find a solution. I'm not looking for specific code, this probably won't even be implemented in Java, I'm just wondering if there is a theoretical program model that would work in this situation.
    The short version:
    Validate the data generated by a client program, without knowing the original data.
    The long version:
    This is a "profiling" system for a MMOG (Massively Multiplayer Online Game). The MMOG is an internet based client/server graphical program where each client connects to the server and they interact with each other and the virtual world. They pay a monthly fee for access to the game. My program is not affiliated with the MMOG or its makers. I have no connections inside the company and cannot expect any cooperation from them.
    The "profiling" system is also a client/server model. The client program runs in the background while the MMOG client is active. It accesses the memory of the MMOG client to retrieve information about the player's character. Then, possibly on request or maybe immediately, it sends the character data to our server.
    What I want to validate is that the character data being sent is unmodified and actually comes from the MMOG program.
    I can reasonably expect that with mild encryption and some sort of checksum or digest, the vast majority of problems can be avoided. However, I am not sure it's possible to completely secure the system.
    I assume that the user has access to and knowledge of the profiler client and the MMOG client, their assembly code, and the ability to modify them or create new programs, leveraging that knowledge. I also assume that the user does not have access to or knowledge of either of the server applications - the MMOG server or mine.
    In a worst-case scenario, there are several ways they could circumvent any security I have yet been able to think of. For instance, they could set up a fake MMOG client that had the data they wanted in memory, and let the profiler access that instead of the real thing. Or, they could rewrite the profiler to use the data they wanted and still encrypt it using whatever format I had specified.
    I have been considering using some kind of buffer overflow vulnerability or remote execution technique that would allow me to run specific parts of the client program on command, or get information by request, something that could not be anticipated prior to execution and thus could not be faked. But this seems not only insecure for the client but also not quite solid enough, depending on how it was implemented.
    Perhaps a series of apparently random validation codes, where the client does not know which one actually is doing the validation, so it must honor them all. Again, this is very conceptual and I'm sure that I'm not explaining them very well. I'm open to ideas.
    If I don't come up with anything better, I would consider relying on human error and the fact that the user will not know, at first, the relevance of some of the data being passed between client and server. In this case, I would include some kind of "security handshake" that looks like garbage to the client but actually is validated on the server end. A modified program or data file would result in an invalid handshake, alerting the server (and me) that this client was a potential problem. The client would have no idea anything had gone wrong, because they would not know what data the server was expecting to receive.
    I hope I have not confused anyone too much. I know I've confused myself....

    Yes, that is the general model for all MMOGs these days - no data that can actually affect the game is safe if loaded from the client's computer. All character and world data is sent from server to client and stored in memory. Any information that is saved to the client's computer is for reference only and not used by the game engine to determine the results of actions/events etc.
    My program accesses the MMOG client's memory while the game is running, and takes the character information from there. It does not have direct access to the MMOG server, and does not attempt to modify the data or the memory. Instead, it just encrypts it and sends it to our server, where the information is loaded into a database.
    The security issue comes into play because our database is used for ranking purposes, and if someone were to hack my program, they could send invalid data to our servers and affect the rankings unfairly.
    I'm just trying to think of a way to prevent that from happening.

Maybe you are looking for

  • Credit Check not occurring for Customer with Partial Credit limit existing

    Hi, I have a scenario 1) where, if credit limit is crossed, then on creation of order I get an credit check even when i have not entered materials in sales order. 2) Partial Credit limit is pending (for e.g Credit limit of 100, 50 is still pending) w

  • 4 of us on 1 Apple ID/icloud acct. How do I create 3 new ID's?

    We have 4 members of our family on one Apple ID, and sharing one Cloud acct. How do I create 3 new ID's?  Our cloud acct is full, and we need our own space! :-)

  • Templates fails to upload

    I am getting an error while uploading a template. In the message console I am getting this error Job Construction Phase begin() Appended operation 'Import Virtual Machine Template' to object 'cfgFile_0004fb00001400005c33cf92650cd43f'. Appended operat

  • Binding dropped error messages in the log, UNABLE TO USE BT

    Hey, So I have an extreme n, and bit torrent will not connect to peers seeding. They will connect for 2 seconds then disconnect. i have ports configured correctly 9090 forwarded in the extreme too but the log is filled with Binding dropped from ip xx

  • ACCESS.ERROR#service.jms.default.authorization Errors

    Hi, With standart installation, following errors are filling defaulttrace contiuosly, any idea? #1.#0050568817F2005E000003B00000706600044473E94477A8#1201164532348#/System/Security/Audit/J2EE#sap.com/irj#com.sap.engine.services.security.roles.Security