1

I have a php file(demo.php) and a jsp file(news.jsp). demo.php sends the updates to news.jsp using Server sent events(SSE). I am using jboss4.0.2 as my web application server. I have worked only with jsp and servlets before in jboss. I know to modify web.xml(In WEB-INF) file for jsp file(same directory as WEB-INF) and servlets(In WEB-INF/classes).Where should i deploy the php file and what changes are necessary in jboss to do the same.

2
  • Is the PHP script a console program or do you neeed a web browser to use it? Commented Feb 27, 2012 at 7:17
  • @JoniSalonen:The php file is used as a server for sending server sent events(SSE) to jsp file described above. Commented Feb 27, 2012 at 7:25

1 Answer 1

4

Yes, it does, . See http://www.jboss.org/jbossweb/modules/php/index.html.

Basically, you need to more things:

1) JBoss Native - download and install the one specific to your operating system

2) The PHP module - download and configure as indicated in the above link.

3) You must package your PHP app within a WAR file. The PHP module download comes with a demo PHP WAR file, use that as a template.

Sign up to request clarification or add additional context in comments.

1 Comment

Link is broken and can you update the link to jbossweb.jboss.org/modules/php.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.