Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: Java Classes and Xoops Integration
by fatman on 2004/3/27 5:50:20

SOAP could be used.

You should be able to find some sort of a SOAP class for your j2ee application that will can make select functions from the java app available via XML calls. (SOAP is just the format of the XML message)

On the PHP side, you could use the nuSOAP class for PHP. This will let you write PHP functions or class files that send and recieve SOAP messages. It very easy to make a remote SOAP call as long as you know the URL of the server where the java app is running.

Unfortunately here you're going to have to know Java and PHP. I used SOAP to communicate with a JAVA app in the xoogle module but google had already done all the java work :P
Re: Java Classes and Xoops Integration
by jmass on 2004/3/27 3:09:34

SOAP and the others are really a higher level solution than I need. To access the power of the Domino Data Store I believe that I need to communicate at a much lower level: at the class level.

I could be wrong. I need to investigate SOAP more. I will look into it.

JMass
Re: Java Classes and Xoops Integration
by eikke on 2004/3/26 6:59:36

Cant you write the whole frontend in PHP, and interact with your Java backend using SOAP/WSDL or XML/RPC (altough I guess SOAP is a better choice in this case)?
Re: Java Classes and Xoops Integration
by jmass on 2004/3/26 3:24:47

Mith, (I'm sticking with that!)

I have been considering that too. In java it is:

Model - Beans or EJBs (If you really think you are cool)

View - JSP (Yuck)

Controller - Struts, Maverick, etc. (Struts dominates)

I really only want to do the model in java. Not really wanting to do it in Java either. That just happens to be the best way to interfacce with Domino. Domino is such a powerful and flexable data store that it is worth the effort. Plus I can design for the fat Notes client on the desk top and build a slick webapp at the same time.

The Domino classes provide very robust methods of manipulating the model. Really it is a Data Access Ojbect.

I do not want to replace the DB of XOOPS (MySql now, hopefully other choices soon.) I want to run XOOPS as is. However, I want to be able to manipulate the DAO of Domino from within a module. I would hack XOOPS to use Ldap for single signon.

I believe that you are correct. The controller would be on the PHP side of things. However, it would not be the XOOPS controller. It would have to be a "controller" written in the module.

Don't get me started on using the front controller methodology in web apps! I agree whole hartedly with:
http://www.phppatterns.com/index.php/article/articleview/81/1/1/
I think the business logic (read controller logic) can be isolated enough without a true controller setup like php.mvc which is a php rebuild of Struts.

Am I crazy to try this?

JMass
Re: Java Classes and Xoops Integration
by Mithrandir on 2004/3/25 21:50:35

Very interesting reading.
I know about Java, but lack the intimate class library knowledge to be able to use it properly.

Wouldn't you need to code the Controller in PHP, too? and I agree - I'd much rather do website Views in Smarty than in JSP.

(PS. 2-3 attempts and you still can't get my nick right )

Who's Online

127 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 127


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits