How to connect my desktop to my tv

Can anyone direct me to a tutorial on how to connect my Pavilion Slimline s3120n to my HD tv?
The computer came with the  built -in TV tuner card and various cables. I would like to watch the free Netflix "watch it now" movies on my big tv screen rather than my 19" computer monitor.
Thanks for your help.

Well, I looked into your tv tuner, and you can use S-Video for video and your audio cable, that should've came with the computer, to convert the headphone jack to audio Left and Right. The quality of that cable is going to be not very good so you may want to just get a dvd player and hook it up to the tv instead. Just letting you know of your options. ^_^;
worked with HP employee for 2 years. Freelance tech support for 11 years.

Similar Messages

  • How to connect a Desktop app to a middle teir server app?

    Please tell me if i have posted this in the incorrect forum.
    I currently have a Desktop app that connects directly to a mySQL database. The persistence abilities have been really helpful since our database is still evolving. I have been frustrated by the differences in the SE persistence implementation. I have had to do some hackish things to ensure that the app retrieves the current information. I don't like connecting directly to the database from the desktop app, even though security is not a worry. I have been thinking that the best solution is to have a JEE app running that the desktop app connects to. This also would act as a sort of api for accessing our data, so if and when i create other client desktop apps i don't have to recreate the wheel. From what i gather i will want to run an application server such as tomcat or glassfish. I'm not sure if i understand why though. Since i have control of the server, couldn't i directly open ports for communication to the clients?
    Assuming that there are many ways to pass information between them, advice on the most effective would be nice. I'm guessing serializing objects for passing would be the fastest, but using something like XML, would be a lot easier to monitor.
    Although i have done a lot of reading, i'm still baffled by the EE lingo.
    EJB: kind of like a modular program that facilitates server to server communication?
    JSF: package up stuff for viewing/ running an application through a browser?
    Servlets: Mystifying, which leads me to think that they are what i'm looking for.
    Any advice would be helpful. I'm hoping that there is not some type of restriction in regards to connecting a JSE6 app to a JEE6 app. I basically want to have the best of both worlds.
    Thank you,
    Chip

    Chipper wrote:
    From what i gather i will want to run an application server such as tomcat or glassfish. I'm not sure if i understand why though.If you have a middle teir, you imply that you want frontend and a backend also, the function of the middle teir is to insolate and abstract the backend from the frontend. This is the significant difference from what you have now: client server--frontend and a backend.
    The middle tier, as you have implied, is where you put your access to your backend. And, yes, you are creating an interface to your DB there, wherein you will develop an entire API for accessing your DB. This will give you added security by not letting your clients know anything about your backend.
    Now, how do you access this middle tier? There are several options there, but a few options are:
    1 - Running direct socket communication
    2 - Web Services: code ran on the server to extend the functionality and open services on the middle tier.
    3 - Applets: code ran in the browser on client side to access the server and it's services.
    Assuming that there are many ways to pass information between them, advice on the most effective would be nice. I'm guessing serializing objects for passing would be the fastest, but using something like XML, would be a lot easier to monitor.At this point you are the only one that can answer that question: there are arguments for an against most method that could be picked. Let's take for instance an object that contains 1 usable byte of data. Is it better to serialize the object for that one byte? Send XML to a DB? Or, perhaps, just send the byte of info and synthesize appropriate key information? You have to look at what you are trying to achieve and your requirements.
    Even a scratch of the surface discussion is not possible here, let alone, a howto on implementation for your enterprise. I suggest hitting the tutorials and finding a good book.
    Do you have specific questions? Ones that can be answered in a paragraph or two.

  • How to connect to desktop mac using iPhone. File sharing, ScreenSharing???

    Can you please explain how can I connect to my desktop using my iPhone like ScreenSharing will do or file sharing.
    Please describe step be step how to?
    Thank you,
    A new iPhone user who want to get the most out of it

    If by it you mean Mocha VNC, that is how it works. You can connect when you are not on your network but you will have to enable forwarding on you router if you have one.
    What is it tha you want to do remotly?
    This world of remote management is that of the IT tech. Mocha is for techs and people that get the technology they are using or are interested in getting it. It is not plug and play stuff. You have to be willing to learn a bit and then with that comes a lot of power.
    If you just want to turn it on and have it work anywhere you won't find that. The reason ports are blocked form the internet is to protect your computers from someone else doing exactly what you are trying.
    So if you want you can enable port forwarding for port 5900 on your router. The IP address VNC Mocha will need is now the IP address of your router. Create a second connection on the list in Mocha for this connection as it is different than the one that will work on your network. Your router will forward anything on that port to you computer. I have successfully done this. It isn't very fast i will say. The screen refresh is very slow. You need patience to get anything done. I needed a file from a PC i had at home. It took about 15 minutes to get that file moved on to my iDisk through running Firefox on the PC from several towns away using Mocha. I might have been on a slow internet connection too.

  • How to connect to desktop server.

    Hi.
    I want to know if exist some way of connect my cell to a desktop server using GPRS, MIDP 1.0 and CLDC 1.0 whitout use servlets in the server.
    Maybe use sockets???
    Or I have that use MIDP 2.0 for this?
    Thanks.

    Well, I am using this code for the client connection.
    public void runClient() {
              SocketConnection client;
              InputStream input;
              OutputStream out;
              try {
                   client = (SocketConnection) Connector
                             .open("socket://localhost:7231");
                   client.setSocketOption(SocketConnection.LINGER, 5);
                   out = client.openOutputStream();
                   out.write("Hello".getBytes());
                   input = client.openInputStream();
                   char c;
                   String s = "";
                   while ((c = (char) input.read()) != '\n') {
                        s += c;
                   pantalla.append(new StringItem("", s));
                   input.close();
                   out.close();
                   client.close();
              } catch (IOException e) {
                   pantalla.append(new StringItem("", "IOException"));
    And this for the Deskstop server connection.
    public void runServer(){
              ServerSocket server;
              Socket connection;
              OutputStream output;
              try{
                   server = new ServerSocket(7231,100);
                   connection = server.accept();
                   System.out.println("Connection completed");
                   output = connection.getOutputStream();
                   byte[] b = {'H','e','l','l','o'};
                   output.write(b);
              }catch (IOException e) {
                   // TODO: handle exception
    But in the emulator screen appear this Alert message
    Is it OK to Use Airtime?
    ClientConnection wants to send and receive data using the network. This
    will use airtime an may result in charges.
    Is it OK to use airtime?
    No Yes
    And when I select yes o no this block and happen not nothing else.
    What can I do?

  • How to connect W2k Desktop to Solaris(intel) Server

    Hi there, I am new to Solaris, I have successfully installed Solaris 8 (intel). I also configured my NIC. What are procedures or H/W requirement to connect to this Solaris Sever from other machine running W2K thru telnet/ftp

    Thnx for the responding Lee,
    Here is how I try to connect Solaris(intel) to W2k machine.
    On Solaris machine
    1. I installed network driver from Realtek (as my network card is generic Realtek card)
    2. Ran "sys-unconfig"
    3. Attach the network adapter card to the system
    4. At the OK prompt, type boot -r
    5. Provided required information as prompted.
    Here what happed if I connect Solaris machine to my DSL modem with network cable every thing goes fine.
    But as soon as I connect Solaris machine and w2k machine and boot Solaris I get the following message
    -Notice: RTLS start_board --Cable Connect Failed !!
    I get this message even if I try above mentioned step once again while having my w2k and solaris machines connect to each other via network cable.
    Could you figure out what could be the problem or What am I doing wrong
    do I need to something on my w2k machine before I try to configure my NIC on my solaris maching
    thnx
    -kb

  • How to connect two desktop computers to share processing power

    is there a way to link two computers together to share their processing ablility?
    And if there is a way can I connect to share it wirelessly?
    Also is it possible on both Mac and PC?

    No, to all 3, especially the middle one.

  • How to connect Desktop Software with BES ?

    Hi,
     I have installed latest BB Desktop Software on a system other than BES (4.1.6). Also installed BB simulator 4.2.2 (8830) on same system. I connected the Simulator to Desktop software successfully using USB, but can't connect it with BES server (installed on separate system) .
    Please tell me how to connect Desktop software with BES ? 
    regards,
    Laeeq 
    Message Edited by laeeq on 02-11-2009 06:37 PM
    Regards,
    Laeeq Qazi
    Team Lead (Exchange+BES) www.HostingController.com

    Hi William,
    Please make sure that Forward printing devices is checked. This allows you to use the local printer connects to your Mac in a remote desktop session.
    Getting Started with Remote Desktop Client on Mac
    http://technet.microsoft.com/library/dn473012
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • How to connect my n70 music edition to my pc

    how to connect my n70 music edition to my pc. there is no cable provided.

    Install pcsuite to a laptop with blutooth or desktop with bluetooth dongle. Activate the bluetooth on the phone then pair it.
    Knowledge not shared is knowledge wasted!
    If you find it helpfull, it's not hard to click the STAR..

  • How to connect my wifi printer to my MacBook Pro

    Hello - Could you please advise re: how to connect my HP Deskjet 3050 to my MacBook Pro?  I gather I have to connect the printer to my Wifi network first, but the instructions aren't clear for a Mac.
    Please help.  Thank you -

    Mac OS Printing/Fax (any version), OS X Lion, OS X Mountain Lionhttp://www.apple.com/support/osx/
    printing in OS X Mountain Lion
    http://support.apple.com/kb/HT4670
    Configure it directly while connected via USB first generally works.
    However here is what Canon support has.
    Direct you to the proper forum for MacBook :
    MacBook Series Forums
    https://discussions.apple.com/community/notebooks?view=discussions
    http://www.apple.com/support/macbookpro
    Mac OS X Forum
    https://discussions.apple.com/community/mac_os?view=discussions
    This forum deals with a desktop/tower 65lb Mac Pro
    http://www.apple.com/support/macpro

  • How to connect to oracle ebs from an external software

    Hi!
    I want to develop an integration for oracle EBS. Therefor I'm looking for ways how to connect to the EBS and for a repository of functions which can be called from an external program. I'm not quite sure if this is the right place to ask but I could not find anything yet so I'm trying here.
    Are there any standard connectors for the EBS provided by Oracle?
    Thanks,
    Konrad

    Oracle Applications Architecture is a framework for multi-tiered, distributed computing that supports Oracle Applications products. In this model, various servers are distributed among multiple levels/tiers as follows:
    - The Desktop Tier --> Web browser with Jinitiator or Sun JRE
    - The Application Tier --> Web, Forms, Reports, Admin, and Concurrent servers
    - The Database Tier --> Oracle Enterprise Edition Database
    The Application tier is the layer which is responsible for:
    - Hosting the various servers that process the business logic
    - Managing communication between the desktop tier and the database tier
    So, in order to connect to the database, you can either access the application tier, or connect directly to the database. I do not think it is possible to communicate with the application services from some other application. Therefore, you would need to connect to the database directly which can be achieved as explained in my previous reply. There is no such API which can be used to open/close a database connection. Oracle E-Business Suite is just a database with number of schemas and objects which are tightly integrated.
    More details about Oracle E-Business Architecture can be found in:
    Oracle Applications Concepts
    http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/11iconcepts.pdf

  • How to use remote desktop client in mountain lion

    How to use remote desktop client in mountain lion.
    I want to connect my other system(ubuntu) using mac remote desktop client, But i could not locate remote desktop client in moutain lion.

    In Ubuntu 12.xx use Dash to find "Desktop Sharing" and set the preferences, including requiring a password.
    Then in Ubu use System Settings > Network to determine your Ubu machine's IP address, such as 192.168.1.13.
    On the Mountain Lion Mac do Finder > Go > Connect to Server   and enter:  vnc://192.168.1.13  or whatever your IP is.  Enter the password that you used in the Ubu Desktop Sharing setup, when asked.
    On the Ubu machine answer the question that pops up asking for permission to connect.  Your Ubu screen will now show up on the Mac, and you can remote control it.   Here I am running "Octave" (a math program) on the Ubu machine, remotely.
    Works great!  BTW, you can do this from an iPad too, using a VNC client such as Mocha VNC Lite.  You can even run both remotes simultaneously.
    Good luck.

  • How to connect weighbridge to sap

    Hi Friends,
    I have a requirement from my client.
    My client having Way bridge, After lorry coming That vehicle weight taken by a device and its directly prints as gross weight than after unloading it takes the tare weight of the lorry with key gate entry numberand again directly prints,  with these prints my client desides the actual weight of the goods.
    So now I need to connect this data to my costomized gateentry programe (Module pool)
    that when ever the lorry come it should updata the data automaticaly update the data in my programe
    so friends for this I need your suggetions.
    yours kind co-operation solicited.
    Thanks & Regards,
    D Tarun Kumar

    hi refer this.
    Hi,
    I have devlop a Gate Entry Programe in Module pool.
    So here i need at the time of Gate Entry through my programe it should update automaticaly the Accual Gross weight of goods for that we have Wave Bridge to weight the Vehcle with Goods Minus Emty vehcle Equals Actual gross weight of Goods.
    We have a Device (MettelerTolredo 8142 PRO) to connect Wave Bridge and PC after instaletion of some software it ll transfer the data into PC.
    SO here i need whenever the data updated in PC i want the the data automaticaly should come into gate entry ie no body could not change the actual data.
    For this i need your suggetions that how can i link with & how it will know that data updated.
    Thanks & Regards.
    D Tarun Kr.
    Edited by: Devalla T Kumar on Mar 26, 2009 5:44 AM
    MONIKA DHUMAL  
    Posts: 230
    Registered: 1/30/09
    Forum Points: 150 
       Re: WAVE BRIDGE   
    Posted: Mar 26, 2009 11:34 AM    in response to: Devalla T Kumar           Reply 
    Hi,
    First change ur sunject line to Weighbridge to SAP Integration.
    within some days i will start to do the same .
    search on web giving above subject and in SDN also. u will get more help.
    i have lot of information to share u.
    1. u have to connect sap to vb exe, yours might
    be a weighbridge or weigh feeder thing, right?,
    use the function module ws_execute to run the vb exe..
    It might be storing the values in some text file or so...read from
    that text file the return value using fm ws_read or so..
    i have done a similar thing for a cement industry in a weighbridge case.
    for any help pls reply...
    regards
    Ranjith, SAP Group, KELTRON
    Hi,
    Thanks for posting . I have the same problem what u have specified in
    the posting. that is i have take the readings from the weigh bridge
    through a VB.exe file (Cement manufacturing company). if u have the
    code for that weight bridge please mail be to email@removed.
    really i will be thank ful if you send me the code for weigh bridge to execute.
    please help me in this regard
    orm grosswt .
    refresh itab3.
    clear itab3.
    Executing VB EXE file to get the weight from weigh bridge
    call function 'WS_EXECUTE'
    exporting
    DOCUMENT = ' '
    CD = ' '
    COMMANDLINE = ' '
    inform = 'X'
    cd = 'C:\SAPWEI'
    program = 'C:\sapwei\MyVB.exe'
    STAT = ' '
    WINID = ' '
    OSMAC_SCRIPT = ' '
    OSMAC_CREATOR = ' '
    WIN16_EXT = ' '
    EXEC_RC = ' '
    IMPORTING
    RBUFF
    EXCEPTIONS
    FRONTEND_ERROR = 1
    NO_BATCH = 2
    PROG_NOT_FOUND = 3
    ILLEGAL_OPTION = 4
    GUI_REFUSE_EXECUTE = 5
    OTHERS = 6
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Fetching Value from VB text file
    call function 'WS_UPLOAD'
    exporting
    CODEPAGE = ' '
    filename = 'C:\sapwei\w1.txt'
    FILETYPE = 'ASC'
    HEADLEN = ' '
    LINE_EXIT = ' '
    TRUNCLEN = ' '
    USER_FORM = ' '
    USER_PROG = ' '
    DAT_D_FORMAT = ' '
    IMPORTING
    FILELENGTHtables
    data_tab = itab3
    EXCEPTIONS
    CONVERSION_ERROR = 1
    FILE_OPEN_ERROR = 2
    FILE_READ_ERROR = 3
    INVALID_TYPE = 4
    NO_BATCH = 5
    UNKNOWN_ERROR = 6
    INVALID_TABLE_WIDTH = 7
    GUI_REFUSE_FILETRANSFER = 8
    CUSTOMER_ERROR = 9
    NO_AUTHORITY = 10
    OTHERS = 11
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    loop at itab3.
    v1 = itab3-num.
    pgrwt = v1.
    endloop.
    message 'Save Gross Weight' type 'S'.
    endform. " grosswt
    2. how to connect weighbridge to sap
    The solution is like, through the vb program you create a file and stores it in the local PC's desktop or in any folder in which the Weigh Bridge is connected and write a FTP program in SAP .Scheduled the program in BG so that it will fetch the file from the directory and send the data to SAP.
    3. plz go through
    http://help.sap.com/saphelp_47x200/helpdata/en/72/90fd343603c95ee10000009b38f844/frameset.htm

  • How to connect DataBase 9i  with 10g Developer Suit

    Hi Every body , how i connect
    Oracle9i Enterprise Edition Release 9.0.1.1.1 DataBase with 10g Developer Suit ????
    when i'm trying to run my program i just can run it for the first time :( . when i'm
    trying to run it for the second time i receive this msg
    <html> <head> ORACLE FORMS.</head>
    <body onload="document.pform.submit();" >
    <form name="pform" action="http://ABUKARAKI.AHU.EDU.LOCAL:8889/forms90/f90servlet" method="POST">
    <input type="hidden" name="form" value="C:\Documents and Settings\Admin\Desktop\MODULE1.fmx">
    <input type="hidden" name="userid" value="tt/tt@oracle">
    <input type="hidden" name="obr" value="yes">
    <input type="hidden" name="array" value="YES">
    </form> </body></html>

    Create your forms working directory.
    add that path to default.env
    and also edit parameter in formsweb.cfg to point to you main form.
    This way by default when you go to http://ABUKARAKI.AHU.EDU.LOCAL:8889/forms90/f90servlet it will open your main form.
    From main form you can open your other forms.

  • [svn:osmf:] 14635: Adding a sample on how to connect to a DVRCast equiped FMS server.

    Revision: 14635
    Revision: 14635
    Author:   [email protected]
    Date:     2010-03-09 02:27:41 -0800 (Tue, 09 Mar 2010)
    Log Message:
    Adding a sample on how to connect to a DVRCast equiped FMS server.
    Added Paths:
        osmf/trunk/apps/samples/framework/DVRSample/
        osmf/trunk/apps/samples/framework/DVRSample/.actionScriptProperties
        osmf/trunk/apps/samples/framework/DVRSample/.project
        osmf/trunk/apps/samples/framework/DVRSample/DVRSample.as
        osmf/trunk/apps/samples/framework/DVRSample/html-template/
        osmf/trunk/apps/samples/framework/DVRSample/html-template/AC_OETags.js
        osmf/trunk/apps/samples/framework/DVRSample/html-template/history/
        osmf/trunk/apps/samples/framework/DVRSample/html-template/history/history.css
        osmf/trunk/apps/samples/framework/DVRSample/html-template/history/history.js
        osmf/trunk/apps/samples/framework/DVRSample/html-template/history/historyFrame.html
        osmf/trunk/apps/samples/framework/DVRSample/html-template/index.template.html
        osmf/trunk/apps/samples/framework/DVRSample/html-template/playerProductInstall.swf
        osmf/trunk/apps/samples/framework/DVRSample/readme.txt

    try this:
    Start FMS
    put the FLV into the "applications\test\streams\_definst_"
    folder
    Create a SWF that will stream the FLV
    The easiest way to create this SWF is to use the FLV Playback
    Component in Flash 8.
    Or, Sample Code:
    http://www.adobe.com/devnet/flash/articles/flv_download_04.html
    and some templates:
    http://www.adobe.com/devnet/flash/video_templates.html
    the SWF should connect to rtmp://localhost/test/ and stream
    your FLV, just like with Progressive Download FLV
    the SWF can run from your desktop or on a local web server
    such as Apache - it should NOT be in the FMS application folder.
    Open the SWF, and your video should stream.
    hope this helps.
    -steve.

  • Hibernate query...how to connect two databases...

    hi i m new to hibernate..
    i created two tables..
    1st table is catalog:
    2nd table is acctinfo
    //HBM file is :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    <hibernate-mapping>
    <class name="hibernate.example.Catalog" table="catalog">
    <id name="id" type="integer" column="ID">
    <generator class="increment"/>
    </id>
    <property name="journal" type="string" column="JOURNAL"/>
    <property name="publisher" type="string" column="PUBLISHER"/>
    <property name="edition" type="string" column="EDITION"/>
    <property name="title" type="string" column="TITLE"/>
    <property name="author" type="string" column="AUTHOR"/>
    <bag name="accinfo" cascade="all" >
    <key column="ID"/>
    <one-to-many class="hibernate.example.Acctinfo"/>
    </bag>
    </class>
    <class name="hibernate.example.Acctinfo" table="acctinfo">
    <id name="id" type="integer" column="ID">
    <generator class="increment"/>
    </id>
    <property name="account" type="string" column="ACCOUNT"/>
    <property name="password" type="string" column="PASSWORD"/>
    <property name="balance" type="string" column="BALANCE"/>
    </class>
    </hibernate-mapping>
    ///******************getter setter file is::****************
    package hibernate.example;
    public class Acctinfo
         int id;
         String account;
         String password;
         String balance;
         public Acctinfo()
         public void setId(int id)
              this.id = id;
         public int getId()
              return id;
         public void setAccount(String account)
              this.account = account;
         public void setPassword(String password)
              this.password = password;
         public void setBalance(String balance)
              this.balance = balance;
         public String getAccount()
              return account;
         public String getBalance()
              return balance;
         public String getPassword()
              return password;
    //********************2nd getter setter file is:***********************
    package hibernate.example;
    import java.util.List;
    public class Catalog
    int id;
    String journal;
    String publisher;
    String edition;
    String title;
    String author;
    private List accinfo;
    public Catalog()
    public void setId(int id)
    this.id = id;
    public int getId()
    return id;
    public void setJournal(String journal)
    this.journal = journal;
    public String getJournal()
    return journal;
    public void setPublisher(String publisher)
    this.publisher = publisher;
    public String getPublisher()
    return publisher;
    public void setEdition(String edition)
    this.edition = edition;
    public String getEdition()
    return edition;
    public void setTitle(String title)
    this.title = title;
    public String getTitle()
    return title;
    public void setAuthor(String author)
    this.author = author;
    public String getAuthor()
    return author;
    public void setAccinfo(List accinfo)
    this.accinfo = accinfo;
    public List getAccinfo()
    return accinfo;
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package hibernate.example;
    import hibernate.example.Acctinfo;
    import hibernate.example.Catalog;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import java.util.ListIterator;
    import org.hibernate.Query;
    import org.hibernate.SQLQuery;
    import org.hibernate.Session;
    import org.hibernate.SessionFactory;
    import org.hibernate.Transaction;
    import org.hibernate.cfg.Configuration;
    public class CatalogClient
         Session session = null;
         SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
         public static void main(String str[])
              CatalogClient clc = new CatalogClient();
              //clc.saveData();
              //clc.deleteData();
              //clc.showData();
              clc.updateData();
         public void showData()
              try
                   session =sessionFactory.openSession();
                   String SQL_QUERY ="select id, journal, publisher, edition, title, author from catalog";
                   // String SQL_QUERY ="select c.ID, c.JOURNAL, c.PUBLISHER, c.EDITION, c.TITLE, c.AUTHOR, a.ACCOUNT, a.PASSWORD,a.BALANCE from catalog c, ACCTINFO a where c.ID = a.ID";
                   SQLQuery query = session.createSQLQuery(SQL_QUERY);
                   System.out.println("*** query : *** "+ query);
                   //for(ListIterator it=query.list().listIterator();it.hasNext();)
                   for (ListIterator lit = query.list().listIterator(); lit.hasNext();)
                        Object[] row = (Object[]) lit.next();
                        /*System.out.println("ID: " + row[0]);
                        System.out.println("Title: " + row[1]);
                        System.out.println("Author: " + row[2]);
                        System.out.println("Isbn: " + row[3]);
                        System.out.println("Pages: " + row[4]);
                        System.out.println("Copyright: " + row[5]);
                        System.out.println("Cost: " + row[6]);
                        System.out.println("******NEXT****************");
    Object[] row = (Object[]) it.next();*/
                        System.out.println("ID: " + row[0]);
                        System.out.println("JOURNAL: " + row[1]);
                        System.out.println("PUBLISHER: " + row[2]);
                        System.out.println("EDITION: " + row[3]);
                        System.out.println("TITLE: " + row[4]);
                        System.out.println("AUTHOR: " + row[5]);
                        System.out.println("acc: " + row[6]);
                        System.out.println("pass: " + row[7]);
                        System.out.println("bal: " + row[8]);
                        System.out.println("***************************");
                   session.close();
              catch(Exception e)
                   System.out.println(e.getMessage());
         public void saveData()
              session =sessionFactory.openSession();
              Transaction transaction = null;
              transaction = session.beginTransaction();
              Catalog catalog = setBean();
              //System.out.println("before save");
              session.save(catalog);
              //System.out.println("after save");
              transaction.commit();
              session.flush();
              session.close();
         public void updateData()
              session =sessionFactory.openSession();
              Catalog catalog = new Catalog();
              catalog.setId(2);
              catalog.setAuthor("manoj");
              catalog.setJournal("java");
              catalog.setEdition("1st");
              catalog.setPublisher("indiabulls");
              catalog.setTitle("java Servlet");
              session.update(catalog);
              session.flush();
              session.close();
         public void deleteData()
              session =sessionFactory.openSession();
              Catalog catalog = new Catalog();
              catalog.setId(3);
              session.delete(catalog);
              session.flush();
              session.close();
         public static Catalog setBean()
              Acctinfo accinfo = new Acctinfo();
              accinfo.setAccount("MANOJ1");
              accinfo.setPassword("orbis");
              accinfo.setBalance("1000");
              List list = new ArrayList();
              list.add(accinfo);
              Catalog catalog = new Catalog();
              catalog.setJournal("india");
              catalog.setPublisher("indiabulls");
              catalog.setEdition("ist");
              catalog.setTitle("orbis");
              catalog.setAuthor("manoj");
              catalog.setAccinfo(list);
              return catalog;
    //********************CFG FILE IS ******************
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
    <session-factory name="session">
    <property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
    <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
    <property name="hibernate.connection.url">jdbc:oracle:thin:@172.16.31.25:1521:BOMBAY</property>
    <property name="hibernate.connection.username">mumbai</property>
    <property name="hibernate.connection.password">mumbai123</property>
    <!-- Set AutoCommit to true -->
    <property name="connection.autocommit">true</property>
    <property name="dialect">org.hibernate.dialect.OracleDialect</property>
    <!-- Mapping files -->
    <mapping resource="Catalog.hbm.xml"/>
    </session-factory>
    </hibernate-configuration>
    **********************error i m facing is :************************
    0 [main] WARN net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Documents%20and%20Settings/d.poonam/Desktop/hibernate/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
    1188 [main] WARN org.hibernate.impl.SessionFactoryObjectFactory - Could not bind factory to JNDI
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
         at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
         at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
         at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
         at javax.naming.InitialContext.getNameParser(Unknown Source)
         at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
         at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
         at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:247)
         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043)
         at hibernate.example.CatalogClient.<init>(CatalogClient.java:24)
         at hibernate.example.CatalogClient.main(CatalogClient.java:27)
    please help me out....
    thanks in advance..
    if u know how to connect two tables plz let me know..
    its urgent....

    I made this work with MySQL. Adapt to your situation as needed. - %
    package hibernate.model;
    import hibernate.util.HibernateUtils;
    import hibernate.model.Catalog;
    import hibernate.model.Account;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.hibernate.Session;
    import hibernate.util.HibernateUtils;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertNotNull;
    public class CatalogTest
       private static final Log LOGGER = LogFactory.getLog(CatalogTest.class);
       public static void main(String[] args)
          Session session = null;
          try
             session = HibernateUtils.getSessionFactory().getCurrentSession();
             session.beginTransaction();
             int rowsBefore = HibernateUtils.getRowCount(session, Catalog.class);
             assertEquals("should not have any Catalogs", rowsBefore, 0);
             Catalog catalog = new Catalog("test title");
             catalog.addAccount(new Account(100));
             catalog.addAccount(new Account(200));
             Long id = (Long) session.save(catalog);
             assertNotNull("generated id should not be null", id);
             LOGGER.info("returned id: " + id);
             session.getTransaction().commit();
             LOGGER.debug("transaction committed");
          catch (Exception e)
             LOGGER.error(e);
             session.getTransaction().rollback();
    package hibernate.model;
    import java.io.Serializable;
    import java.text.NumberFormat;
    public class Account implements Serializable
       private Long id;
       private int balance;
       public Account()
          this(null, 0);
       public Account(int balance)
          this(null, balance);
       public Account(Long id, int balance)
          this.id = id;
          this.balance = balance;
       public Long getId()
          return id;
       private void setId(Long id)
          this.id = id;
       public int getBalance()
          return balance;
       private void setBalance(int balance)
          this.balance = balance;
       public boolean equals(Object o)
          if (this == o)
             return true;
          if (!(o instanceof Account))
             return false;
          Account account = (Account) o;
          return !(id != null ? !id.equals(account.id) : account.id != null);
       public int hashCode()
          int result;
          result = (id != null ? id.hashCode() : 0);
          result = 31 * result + balance;
          return result;
       public String toString()
          return new StringBuilder().append("Account{").append("id=").append(id).append(", balance=").append(NumberFormat.getCurrencyInstance().format(balance)).append('}').toString();
    <?xml version="1.0"?>
    <!DOCTYPE hibernate-mapping PUBLIC
          "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
          "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    <hibernate-mapping package="hibernate.model" default-access="field" default-lazy="true">
       <class name="Account" table="accounts">
          <id name="id" column="account_id">
             <generator class="native"/>
          </id>
          <property name="balance" column="balance"/>
       </class>
    </hibernate-mapping>
    package hibernate.model;
    import java.io.Serializable;
    import java.util.Set;
    import java.util.HashSet;
    import java.util.Collections;
    public class Catalog implements Serializable
       private Long id;
       private String title;
       private Set<Account> accounts;
       public Catalog()
          this(null, "", Collections.EMPTY_SET);
       public Catalog(String title)
          this(null, title, Collections.EMPTY_SET);
       public Catalog(Long id, String title, Set<Account> accounts)
          this.id = id;
          this.title = title;
          this.accounts = new HashSet<Account>(accounts);
       public Long getId()
          return id;
       private void setId(Long id)
          this.id = id;
       public String getTitle()
          return title;
       private void setTitle(String title)
          this.title = title;
       public Set<Account> getAccounts()
          return accounts;
       private void setAccounts(Set<Account> accounts)
          this.accounts = accounts;
       public void addAccount(Account account)
          this.getAccounts().add(account);
       public void removeAccount(Account account)
          this.getAccounts().remove(account);
       public boolean equals(Object o)
          if (this == o)
             return true;
          if (!(o instanceof Catalog))
             return false;
          Catalog catalog = (Catalog) o;
          return !(id != null ? !id.equals(catalog.id) : catalog.id != null);
       public int hashCode()
          return (id != null ? id.hashCode() : 0);
       public String toString()
          return new StringBuilder().append("Catalog{").append("id=").append(id).append(", title='").append(title).append('\'').append(", accounts=").append(accounts).append('}').toString();
    <?xml version="1.0"?>
    <!DOCTYPE hibernate-mapping PUBLIC
          "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
          "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    <hibernate-mapping package="hibernate.model" default-access="field" default-lazy="true">
       <class name="Catalog" table="catalogs">
          <id name="id" column="catalog_id">
             <generator class="native"/>
          </id>
          <property name="title" column="title"/>
          <set name="accounts" cascade="all">
             <key column="catalog_id"/>
             <one-to-many class="hibernate.model.Account"/>
          </set>
       </class>
    </hibernate-mapping>
    <!DOCTYPE hibernate-configuration PUBLIC
         "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
         "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
         <session-factory>
          <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
          <property name="connection.url">jdbc:mysql://localhost:3306/hibernate?autoReconnect=true</property>
          <property name="connection.username">hibernate</property>
          <property name="connection.password">hibernate</property>
          <property name="connection.pool_size">1</property>
          <property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
          <property name="show_sql">true</property>
          <property name="generate_statistics">true</property>
          <property name="query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
          <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
          <property name="cache.use_minimal_puts">false</property>
          <property name="cache.use_query_cache">false</property>
          <property name="order_updates">false</property>
          <property name="hbm2ddl.auto">create-drop</property>
          <property name="current_session_context_class">thread</property>
          <mapping resource="hibernate/persistence/hibernate/Account.hbm.xml"/>
          <mapping resource="hibernate/persistence/hibernate/Catalog.hbm.xml"/>
         </session-factory>
    </hibernate-configuration>

Maybe you are looking for

  • Adobe Media Encoder FLV issue

    I am posting this question here because there is no Adobe Media Encoder forum - sorry! My question is about file sizes. I created some videos in Premiere CS4. I need to convert the videos to FLV formats (they are to be used in an e-learning module th

  • About the ArchWay

    I found there is a bit of a redundance, even in the 2.0 Arch way. So I edited a bit. It would be great to get some responses about it. I also think it could be still optimized. The following principles comprise what is the philosophy behind Arch Linu

  • Transferring iTunes to a Mac

    I have over 14000 songs on my iPod and have them backed up on an external hard drive from a windows system. I just purchased a Mac and would like to get everything transferred over for the Mac system. I however do not want my iTunes to be on the comp

  • How work is done in a - Live BW Workplace environment

    Hi Everybody,     I want to get the feel of Live work done in an BW workplace.    Can anyone please send me some real examples of BW work required in an Client place.

  • Basic Questions, I know, but ....

    Can you sync more than one iPod to your iTunes on one computer? Can you have two different 'accounts' (for lack of a better word) for each iPod? And can you use another brand of mp3 player with iTunes? I have an iPod and use it with iTunes ... and so