Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Java-Generic Program

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java-Generic Program

    Hi Team,

    The current connector for accepting request to our existing system is written in C language,we had build a ".so" file by compiling c program using MF cobol.

    -Cobol application calls this ".so" files and passes the required buffer.The current data structure in our application is simple string.



    Current Structure:-

    C Connector receives data from cobol and publish it to java program


    -Now we are getting request from other modules in our organisation which are written in J2ee, PHP they want to send data through our connector.(We will define the data structure whether they should use soap or xml).

    Could some one guide me what are the possible way I can go about it,How can I replace C connector by java program which can receive xml messages and parse it to string.also is there any possibility that I can use simple java program to send the xml
    message from application to our system.

    Any sample program for learning will be helpful.

    Thanks in advance.

    -Lisha


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 286 Times in 225 Posts
    Blog Entries
    4

    Default Re: Java-Generic Program

    Hello lisha.ahuja. Welcome to the Java Programming Forums.

    There are several ways to parse XML data in Java.

    Take a look at these links:

    http://www.javaprogrammingforums.com...sing-jaxb.html

    http://www.javaprogrammingforums.com...dom-parse.html
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  3. #3
    Junior Member
    Join Date
    Mar 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java-Generic Program

    Thanks for your reply,

    I had gone through the example,but It is not more clear to me that how the program will suffice my requirement of changing the c connector by taking the reqired messages from another external application

  4. #4
    Junior Member
    Join Date
    Mar 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java-Generic Program

    --Also can you give me some example where in I can use java program at application end and client end which can communicate with each other and exchange messages(webservice or any other information)

Similar Threads

  1. How to use Generics (1 generic anyway)
    By javapenguin in forum The Cafe
    Replies: 4
    Last Post: February 7th, 2011, 05:15 PM
  2. Design Java Generic Container-please help!!!
    By zhoujackji in forum Collections and Generics
    Replies: 1
    Last Post: November 13th, 2010, 04:55 AM
  3. Not Generic; cannot be parameterized
    By javaoo in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 15th, 2010, 09:53 AM
  4. generic class
    By fireatmuself in forum Collections and Generics
    Replies: 4
    Last Post: November 17th, 2009, 05:06 AM
  5. Generic programming example
    By neo_2010 in forum Java Programming Tutorials
    Replies: 3
    Last Post: July 8th, 2009, 11:38 AM