A really stupid question from newbie...

hello all,
i am very new to java and i am trying to build a j2ee application...
rite now....i need to let my app communicate w/ an outside program thru' XML..
i had just learnt many thing about java w/ xml and i decided to use the XMLEncoder... it seems quite simple to use...BUT i have no idea on how to send/receive these XML files...i had thought of using socket connection, but i just found out that an EJB wouldn't allow socket networking... i bet this must be quite a stupid question coz i found nowhere teaching me this...=P
if u know about this, pls point me to some relevant docs / sites....i am anxious to learn about it...
thx so much,
karloogunna~

hello maesj, rune, and others,
thx alot for your advice...
and here's the environment i am working in:
OS: w2k
JDK: 1.4.1.01
j2ee: 1.3.1
jboss: 3.0.2
i am using flash as my UI, so i need communication
between the j2ee app and flash.
the data transfer involves a number of arrays of
objects (each object w/ a list of attributes...) so, i
think using XML as data-exchange is quite suitable (am
i wrong on this??)I don't know the first thing about Flash, but using XML as a means for exchanging data seams like a good idea, for the scenario you described.
>
and i am reading about the message-driven beans, i see
that they got a function onMessage() from where i can
get the XML strings (?), but i don't know how i can
feed these strings into this JMS from flash...do i
need to write a small java program on the client
side?I haven't that much experience with Message Driven Beans. What I do know is that they employ the Java Messaging Service (JMS). If you write a small client appplication with JMS support... you might be close.
>
also, i am not sure if i can send out XML strings
through the message-driven beans, i am reading on the
JMS...it got the MessageProducer, MessageConsumer,
MessageListener, and MessageSelector....should i be
using this? or can i use this together with the
message-driven beans??
In a Messaging system you will need message producers, and message consumers. To enable two-way communication, you can setup both the EJB and the client to handle both. When a message arrives at the consumer (or subscriber if you like), the JMS Service invokes the onMessage method. So you should implement your logic in the onMessage method, for example inspect the XML content, and act upon its content.
i am very sorry for my disorganized questions...(i
used to do low-level programming =P)
and really thank you for your advice!!!!
No problem, the amount of information to read can be quite overwhelming. Using JMS is just a suggestion, and might be considered overkill for your application. If you're using an IDE, like Sun ONE, creating a message driven bean is easy, and can be tried out, without too much hours passing.
Kind Regards,
Rune Bj�rnstad.

Similar Messages

  • Really stupid question - Migrating from 6i to 11g

    Hi all,
    I'm a developer that have been working with oracle since Forms 3, right now I use Forms 6i and I would like to know what I need to use Forms 11g. I understand this new environment is web based, but to start developing and deploying, what I need? for example if I buy the Oracle Forms & Report 11g, I also will need the OAS? or just with Forms and Report I could deploy (somehow) the application?
    Please don't flame me, I just want to understand how this works now.
    Best Regards

    As my old college profession used to say - "The only stupid question is the one that doesn't get asked!" Forms 11g only supports web deployment. This means you will need the OAS with the Forms and Reports Services installed as well. Typically, the setup is three tiered ( 1 server = Database, 1 server = Application Server, 1 server = Infrastructure server ). You don't have to set up the technology stack multitiered - all three could reside on the same server or you could have the all three on the same machine but is not recommended. I would at least have the database on a server seperate from OAS.
    Here are a few links to get you started.
    Oracle Documentation
    * Check out: Development Tools - Oracle Forms, Middleware - Applications Server - Oracle Fusion Middleware 11g and Middleware - Data Warehousing and Business Intelligence - Oracle Reports
    Since you will be upgrading from Forms 6i to 11g, be sure to visit the Oracle Forms-Upgrading Forms 6i to Forms 11g documentation.
    BTW, welcome to the forums!
    Craig
    If a response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on May 6, 2010 2:09 PM

  • Here's a really stupid question re servers.

    I am a techie on individual computers with no experience on servers. The aim is to have a server for 5 computers with the following features- ALL files stored on the server, e-mail server, print sharing, remote access away from the office for both mail and files.
    Now all of that is possible I know with apple and I can learn easy enough. What i don't understand is setting up the mail server.
    I currently use "oneandone" where my 10 domains are held with about 15 pop3 e-mail accounts that go to individual computers (expensive business)
    If I buy the apple os server, do I no longer need the mail services of "oneandone"?? I'm confused as to what the pop or smtp server names if they no longer host the mail..Also if it means you can set up unlimited e-mail accounts at your domain, how does the server know its your domain (i.e. can i not just set up [email protected])
    Clearly thats a stupid question and very basic but I'm hunting for an answer!
    Thanks so much.

    Thanks. Tim. point taken and duly noted. On the mail-
    so that means all i need to do is register the
    domains and simply pay for the domain names on a
    yearly basis. Then I ask the domain registration
    company to point MX records to my server and thats
    it? (of course..then I set up the server to host all
    the mail..)?
    That's it. If you use a cheap DIY registration company then you will get access to your own DNS records and so add the MX record yourself. You may want to consider a secondary MX record for when the main server is down - dyndns.org offer this type of service or maybe the domain registration company can offer it. The secondary server service just holds the mail until it can deliver it to the main server.
    It's certainly worth spending a bit of time with a temporary server and a few test domains until you understand the server config and have tested everything out.
    -david

  • What is workflow minimum? (stupid questions from rookie)

    Guys,
    we are evaluating Oracle workflow. If you could help us to answer some of the stupid questions we have - it would help us a lot.
    1. There are two parts of Workflow installation - DB and midtier. Is it possible to use workflow without installing midtier? Our understanding - midtier is used for providing web access for the users to the workflow engine: they can approve/reject, check workflow status etc. But is it possible to perform all these tasks via email only or by building some simple user interface in our existing webtier (which is not based on Oracle webserver, though is using Oracle for the DB layer)
    2. We were not able to configure other schema to have access to workflow successfully - though it looks like this schema has all possible privs set. If we are trying to call wf_engine.LaunchProcess - we are getting privs error. If we call it from the workflow schema - everything is working fine. Does anybody have any successful experience in doing this?
    Thanks a lot everybody for help!

    Hi,
    I do not consider myself an expert at Workflow, but I will attempt to answer your questions (which are not stupid questions by any means)...
    I will answer question 1 in two parts as it is essentially two questions.
    1. "Is it possible to use workflow without installing midtier"
    Workflow is a module inside the Database that is an optional installation.
    No middle-tier needs to be installed as such.
    The middle-tier I believe you are referring to is the Workflow Monitor, this is viewed by configuring either the:
    - Database HTTP server DAD to display the Workflow Monitor
    or
    - Application Server HTTP Server DAD to display the Workflow Monitor
    Configuring the Workflow Monitor for the Administrators is a very good idea.
    Normal users do not normally need to view this page, but read-only acess can be setup (ie. the users connect as a user without the ADMIN role)
    1. "But is it possible to perform all these tasks via email"
    Using Workflow Notifications, emails can be sent to users where they can approve/reject.
    2. We were not able to configure other schema to have access to workflow successfully
    I am not sure why you are not successful here... have you granted execute on wf_engine.LaunchProcess to the other schema?
    Cheers,
    Degan.

  • Possibly really stupid question.

    What I've read about backing up itunes always refers to making sure that your purchased music doesn't get lost. There's a lot of other "stuff" in there also, things that weren't purchased...my own CD's, audiobooks, videos, etc`.
    Here's the really dumb question: If I hook up my external hard drive and copy itunes to it, does everything I have get copied to the external drive...music, videos, whatever?

    I know very little about the file structure on a Windows PC (Apple since 1984). On a Mac, which may be similar to Windows, I just select the *iTunes Music* folder, grab and drag it to the desired location on my external HD and let go. This creates an exact copy of the folder on my external drive.
    As far as getting there (to your *iTunes Music* folder) I can be of little help.

  • This is a really stupid question but...

    I am a beginer with Motion and on one of my open projects my Utility Window has dissapeared. I've tried brigning it back by pressing command 1, F1, F2, F3, etc and bringing up all the different window layouts....
    ITS DRIVING ME NUTS!!! I have no idea where it's gone or how to bring it back???

    Welcome to the discussions...
    Well, it's not a stupid question, because you haven't posted it as a question... (It's just listed as a topic - you were given the option to mark it as a question when you originally posted it).
    However, as they say - Search is your friend...
    http://discussions.apple.com/search.jspa?objID=f656&search=Go&q=window+disappear
    Patrick

  • Two really embarrassing questions from iPod newbie!

    Although I've been using Macs since the steam-powered Mac SE, I've never actually owned an iPod (until now), because I never listen to music 'on the go'.
    However, I've just ordered an 80Gb Classic from the Apple Store, principally as a handy way to have all the songs I've written or played on in one handy, small location.
    However, because I've never owned one before, I have a couple of questions that probably seem +really stoopid+ (red face)...
    1. I guess I will copy all the songs from CD to iTunes on my iMac and then upload them to the iPod. But will I have to keep all those songs in iTunes? If I subseqiently delete them from iTunes, will they be automatically deleted on the iPod the next time I try and copy any songs from iTunes to it?
    2. When I copy the music files to iTunefrom CD, can I copy the music files to an external Firewire HD, not my main hard drive? There are a lot of songs to copy and I don't want to fill a significant chunk of my main hard drive if I don't have to. Would iTunes 'see' them on an external HD? Or can I copy them straight from the CDs to the iPod via iTunes, without physically copying them to an HD at all?
    Sorry for the basic questions, I hope someone can help.

    Robin,
    You might want to consider a few things before you wipe your iTunes library clean (assuming you have already trasnfered them onto your iPod).
    If, for some reason, you need to restore your iPod and put music back on, iTunes will have to transfer that music back to your iPod. If you have wiped your iTunes library clean that could mean spending a lot of time REformatting your music collection to put back on your iPod.
    Also, I have had a few instances where, although I have iTunes set to 'manually' manage my transfers, iTunes has deleted all of my music. Thank God I had my library on my hard drive as it only meant a 20 minute sync to transfer 6,000 songs back on.
    If hard drive space on your desktop or laptop is limited, iTunes offers a way to 'backup' the library on DVD+R or similar media. So, for about $10 in blank DVD costs, you can just make a portable backup to put in a drawer.
    Just PLEASE think about these issues before you put music on your iPod and delete it from your hard drive. From experience, things happen and you don't want to go through the 'ripping' hassle again! (ripping, the term for making mp3/wma/aac files from a CD)
    Last, if this is your first attempt at putting your music collection on your computer, you might want to keep them there. You might be surprised at how handy it is to have all of your music in one place close by, especially if you invest in a pretty moderately priced speaker setup for your computer.
    Best of luck!

  • Stupid question from a Mac newbie: multiple users for webbased email

    This problem has infuriated me over the last 4 hours---likely a keychain/cookie issue--- but help has been hard to find. New computer Latest OS X.
    I use safari (or firefox) to log into a web based email account (happens to be an exchange server). initial screen comes up. Click on 'log in'. Up pops a username/password screen. Type in user name, password, don't click on "save password", get into my email account--- no problem. Check email, happy.
    My wife, wants to log into her account.
    I quit safari or firefox. She clicks on the icon. initial screen comes up. Click on 'log in' and up comes MY EMAIL. She did not log on.
    Not sure what to do. Want to set up the web-based email to not automatically log someone into another persons' email as I want to use this computer basically as one account, with multiple people logging into muliple web based email.
    Can this be done easily?

    Hi,
    I quit safari or firefox. ...
    Just to be devils advocate, mind if I ask how you quit the applications? If you just closed the window by clicking the red circle at the top left corner, then both Safari and Firefox would still be running with your login session details still active.
    Try pressing command+q to really quit the application (or click and hold the Dock icon and select Quit). Alternatively, select 'Logout' (or the equivalent option) on your web email account to close your active session.

  • Really embarassing questions from a new Mac user

    Okay, I have my new Mac Mini up and running and thought I'd test drive it by creating some simple holiday cards, recipe cards, gift tags, etc.
    What application do I use for this? I found text edit, but that doesn't seem to have any graphics or clip art so to speak and I don't want to use photos.
    Am I stupid? Or is there really no program for this sort of simple thing?
    If I need to purchase additional software, what should I get?
    Thanks.

    I'm not sure which stationaries you're talking about, although it's been a while since I used Microsoft Windows in a production environment. I know that Microsoft Works includes quite a few of them, but while it is bundled with many PCs, it's not part of Windows.
    I think iWork features templates for CVs and so forth, and it's supposedly very good for creating stylish documents. FWIW, iWork is usually released at MacWorld San Francisco in January, so you may want to hold off to see if iWork '07 is released (after all, it's just a month away).
    Also, while Pages can import and edit MS .doc files, it's not as good as some other applications. NeoOffice, which is based on OpenOffice.org, is free, Intel-native, and has good compatibility with MS Office documents.

  • Another STUPID question from the Hoss; Firmware updating , Yes or No?

    I've gotten conflicting input from persons whom I consider to be far more Knowledgeable in their Geekness than am I.
    Let me lead off by saying that they are ALL very long-term Mac-ers, these are the people who convinced me to dive into Lake Cuppertino!
    One "faction" advises to NOT install the firmware updates, that they are a risky proposition, that the computer is best off with the firmware installed with it's build.
    The other group says that Apple wouldn't encourage us to update the firmeware if it wasn't safe and good and generally wholesome for our computers.
    My experience with this thus far; The ONE time I did be all brave and studly and do the firmware update, it froze my computer so badly that I ended up having to make the 90-minute,(one way), journey to the Apple store and hand it over to the resident Genius.
    Fortunately, it was the 15 minute fix, as opposed to the alternate possibility, which requires, apparently, 3 days.
    So I was left with the feeling that the nay-sayers are indeed correct.
    And I have some trepidation in risking it again, because I REALLY REALLY need my 'puter working, don't have so much time for driving a majillion miles to get, either a 15 minute, or a,(possibly), 3 days fix.
    What can you folks tell me about this?
    Does a significant interval between the inception firmware and the update you finally decide to install exacerbate the risky-ness of doing it?
    Is there a point where you absolutely MUST update the firmware?
    What causes the brick-ness after the install?
    I am certain that there are MANY differing opinions and experiences.
    I will appreciate any responses that may help to make this all clearer to me!
    THANKS, And CHEERS!

    More than likely because they got bit when doing one or are paranoid from reading these "emergency room" episodes. That's the beauty of having multiple, bootable clones. You can do the updates on one and test to see if there are any pitfalls. This is my standard advice before updating/upgrading/installing new stuff.
    Get a bootable, external HD (preferably FireWire, since it's 40-50% faster than USB 2 and designed for data transfers), make a bootable backup/clone before updating/upgrading, and ensure that it's bootable and works like the original. That allows you to revert to the previous good state without having to reinstall or reset anything. See these for details:
    http://docs.info.apple.com/article.html?artnum=106941
    http://www.macmaps.com/upgradefaq.html
    http://www.macmaps.com/backup.html
    http://www.thexlab.com/faqs/installswupdates.html
    http://www.thexlab.com/faqs/backuprecovery.html
    If you only have a Time Machine backup, ensure that you can reliably restore it to another disk/volume/partition before updating/upgrading.

  • BPS questions from newbie

    Hi SEM gurus,
    I am a newbie to SEM. I was put into a SEM project that my company is implementing. I have gone through internal training but still I have some questions.
    1. How does 'fields to be changed'/'fields for conditions' relate to single/multiple selections?
    2. What is meant by 'internal creation of planning packages'?
    3. Is FOX related to transformation library?
    4. Is Data Slice in same as that in BW?
    5. Where can I find more information to better understand BPS? I am more BW than BPS. My colleagues passed me some course manuals but I need more foundation materials. Any useful links?
    Hope you gurus could throw me some hints.
    rdgs,
    Bryan Lee

    Hi Bryan,
    > 1. How does 'fields to be changed'/'fields for
    > conditions' relate to single/multiple selections?
    Fields to be changed typically have only single or range values for source values and single values for target values.
    Fields for conditions usually support multiple selections.
    > 2. What is meant by 'internal creation of planning
    > packages'?
    When you execute a planning function, the data of the planning package is processed in subsets. Those subsets are created by BPS. The users does not see them. If you are in BPS0 you can use "Execute with Trace" and each line in the trace corresponds to one internal package.
    > 3. Is FOX related to transformation library?
    There's no relation. FOX have it's own set of functions.
    > 4. Is Data Slice in same as that in BW?
    There are no data slices in BW.
    > 5. Where can I find more information to better
    > understand BPS? I am more BW than BPS. My colleagues
    > passed me some course manuals but I need more
    > foundation materials. Any useful links?
    There are a few books out. Search Amazon or SAP Press for "BPS".
    Regards
    Marc
    SAP NetWeaver RIG

  • Few simple questions from newbie

    I'm new to Java, but i've worked a lot with action script... it didn't help a lot :) Here are my few beginner questions:
    What does: public, static, abstract, void... and other things mean in front of the class name?
    How can i call variables from another classes: if i have one class that does one thing and stores the result in a variable, how can i use that variable from a different class?
    How can i call the input window to enter the value for variable? I've tried with importing "io.inputstream" library, and used the "extend" thing, but i still cant call the input window?

    I came to Java from ActionScript too, and I must say having ActionScript as your first programming language does NOT make it easy to learn other languages. I was incredibly lost when starting with Java.
    What does: public, static, abstract, void... and
    other things mean in front of the class name?You'll find all that in the Java Tutorial
    How can i call variables from another classes: if i
    have one class that does one thing and stores the
    result in a variable, how can i use that variable
    from a different class?To use the variable from another class, you need to make a call to the class. Let's say you're in ClassB; you would make a call to a ClassA variable by doing something such as:
    ClassA.myVar.myMethod();
    How can i call the input window to enter the value
    for variable? I've tried with importing
    "io.inputstream" library, and used the "extend"
    thing, but i still cant call the input window?I recommend reading the tutorial before you try anything like that.

  • Possibly a really stupid question but...

    So, I have an LG Cosmos, and recently I've been noticing that I will receive a text message from someone, read it, respond to it, and then receive the exact same message hours/days later. This has happened from multiple contacts, and I'm not sure if it is my phone doing this, or theirs, or possibly they're resending it on accident.
    I know that if it's on their end, there's nothing I can do about it, but I am curious if this has ever happened to anyone else and has been caused by their mobile device.
    Sorry if this is a ridiculous thing to ask.
    Thanks

    NOT A bad question you need to call it in. May be your phone, may be the network, may be the other phone. Only way to know is have tech look at it.

  • Really stupid question

    I am looking at a machine with a database and developer tools installed and tested.
    However there is a directory with 9iAs structure.
    Question: How can I test to know if app. Server is installed?
    Note:
    This is a machine that is being recovered so I don't
    know who did the installs.

    True, on BES 4.1 and later, PIN messages can be logged via the IT Policy of the your employer. Whether or not they are logged, is up to your BES Admin or corporate policy.
    That is logged by your employer, not RIM.
    If you are on a corporate BES account, consider nothing confidential.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Incredibly stupid question from someone who should know better....

    Does the audio interface make a difference in the quality of the burn itself? This burn would be AFTER the material was recorded mixed etc. WITH the interface in Logic. I have moved my Duet to another studio temporarily but have to re-burn a disc for duplication, so no Duet. My feeling is that it shouldn't matter but it's important so want to check. Again, the Logic files have been done, bounced, etc. using Duet, this non-interface method would just be for the burn. Thanks,
    Neil

    Neil,
    No, the audio interface need not be present.
    Hmmm.. are you speaking of burning within Logic or from a secondary program like Waveburner? If there could be any difference, it would be with the audio driver rather than the physical interface and I'm sure Logic's built-in driver is solid. I don't think it makes a lick of difference anyway since you've already mixed and bounced.
    pancenter-

Maybe you are looking for

  • How do I re-enable the double tap to highlight option on my mac?

    So, I'm not really sure what I did to disable this option, I was just playing around with some settings and realized later on that the option got disabled. What I want to do is re-enable the double touch/ tap on m trackpad so that I can highlight an

  • Edit in ALV Tree

    Hi, I have created a ALV tree using CL_GUI_ALV_TREE. Here how can i make a single column as editable field Pls help Thansk

  • Printing problem in forms

    hi experts,                I am reading a text from invoice  thru sub routine.my sub routine has captured all the text .but when i see in the report some text is missing ..what may be the problem. tell me how to capture a text.in which table it will

  • Tiff to JPG or PNG converter

    Is there a program that can convert a group of TIFF formatted images to something else, like JPG or PNG? Right now what I'm doing is opening up Preview and then having to save each image one by one, which is time consuming. Is there a command line ut

  • Easy question about checking a string

    hi guys i have a problem that im sure most of you will know and im probably doing something silly, I have a record and am wanting to check the values in some fields so i have: IF Rec1.next_record = 'Renault' AND Rec1.prev_record != 'Vauxhall' the !=