Can I use PHP on the front end with Java on the backend?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Akins

    Can I use PHP on the front end with Java on the backend?

    Is it possible to use PHP on the front end and Java on the backend?
    Either using EJB or not? I know it's not common (I've been searching
    Google) but I'm curious if anyone has done it.

    Thanks,
    Michael
  • Jon Kraft

    #2
    Re: Can I use PHP on the front end with Java on the backend?

    Michael Akins <please_do_not_ reply@hotmail.c om> wrote:
    [color=blue]
    > Is it possible to use PHP on the front end and Java on the backend?
    > Either using EJB or not? I know it's not common (I've been searching
    > Google) but I'm curious if anyone has done it.[/color]

    PHP is a server-side scripting language. If for some reason the term "front
    end" in your world refers to something on the server, have a look at:


    HTH;
    JOn

    Comment

    • Michael Akins

      #3
      Re: Can I use PHP on the front end with Java on the backend?

      > > Is it possible to use PHP on the front end and Java on the backend?[color=blue][color=green]
      > > Either using EJB or not? I know it's not common (I've been searching
      > > Google) but I'm curious if anyone has done it.[/color]
      >
      > PHP is a server-side scripting language. If for some reason the term "front
      > end" in your world refers to something on the server, have a look at:
      > http://uk.php.net/manual/en/ref.java.php[/color]

      Front-end means web tier. I'm not sure if PHP developers typically
      divide up a system into layers like we do in Java. But what I'd like
      to know is if I can have a Java API to access the business objects and
      handle persistence, and then have the PHP web tier use this Java API.
      On that page they talk about using Java's runtime and using Java
      objects, but calling an EJB and passing objects and then receiving
      objects is a lot more complicated. I have not found one person doing
      this, so I believe it has never been done and may be impossible.

      Thanks,
      Michael

      Comment

      • Tim Tyler

        #4
        Re: Can I use PHP on the front end with Java on the backend?

        Michael Akins <please_do_not_ reply@hotmail.c om> wrote:

        : On that page they talk about using Java's runtime and using Java
        : objects, but calling an EJB and passing objects and then receiving
        : objects is a lot more complicated. I have not found one person doing
        : this, so I believe it has never been done and may be impossible.

        http://www.zend.com/php_and_java.php ... say they are working on
        PHP/Java integration.
        --
        __________
        |im |yler http://timtyler.org/ tim@tt1.org

        Comment

        • Bruce Lewis

          #5
          Re: Can I use PHP on the front end with Java on the backend?

          please_do_not_r eply@hotmail.co m (Michael Akins) writes:
          [color=blue]
          > calling an EJB and passing objects and then receiving
          > objects is a lot more complicated. I have not found one person doing
          > this, so I believe it has never been done and may be impossible.[/color]

          Just curious, why is it you specifically want PHP for this tier. JSTL,
          Tea, velocity, webmacro, BRL, etc. aren't acceptable web-tier languages?

          Comment

          • Michael Akins

            #6
            Re: Can I use PHP on the front end with Java on the backend?

            > > calling an EJB and passing objects and then receiving[color=blue][color=green]
            > > objects is a lot more complicated. I have not found one person doing
            > > this, so I believe it has never been done and may be impossible.[/color]
            >
            > Just curious, why is it you specifically want PHP for this tier. JSTL,
            > Tea, velocity, webmacro, BRL, etc. aren't acceptable web-tier languages?[/color]

            If it were a new project, I'd use JSP. But I'm speaking with a
            potential client who has an existing PHP website and his staff have
            PHP experience. The site was mostly informational, and now they'd
            like to add a lot of new features including transactions and
            persistent objects. They also have a few ASP websites that they'd
            like to integrate with this new backend as well. ASP.NET can
            communicate with an EJB backend, so I was thinking if PHP can as well
            then the backend could be done in Java. It's a longshot I know but I
            thought I'd ask just in case.

            Thanks,
            Michael

            Comment

            • Michael Akins

              #7
              Re: Can I use PHP on the front end with Java on the backend?

              > Is it possible to use PHP on the front end and Java on the backend?[color=blue]
              > Either using EJB or not? I know it's not common (I've been searching
              > Google) but I'm curious if anyone has done it.[/color]

              Thanks for the replies, after more research, particularly the
              excellent presentation on PHP/Java integration at Java One 2003
              (http://servlet.java.sun.com/javaone/.../pdfs/3749.pdf)
              I've concluded it's not possible at this time but will be possible in
              the near future.

              Thanks,
              Michael

              Comment

              Working...