Expand my Community achievements bar.

SOLVED

Invoking an AEM page from a Java page

Avatar

Level 10

Hi,

Recently, I came across a weird requirement of being able to  Invoke an AEM page from a Java page (Non-AEM).

In other words, let us say we have a regular Java/J2EE Web Application.

From one of its pages, by clicking a button, we should Invoke an AEM page.

I replied telling that it has to be all pages in AEM and not just a few pages.

Kindly suggest, whether this requirement is achievable.

Thanks,

Rama.

1 Accepted Solution

Avatar

Correct answer by
Administrator

AEM Forum wrote...

From one of its pages, by clicking a button, we should Invoke an AEM page.

Hi 

I am bit unclear with your requirement here. When you say invoke so do you mean opening of the page ?

If so, then "java.awt.Desktop.getDesktop().browse(theURI);"

There are many ways to open the page.

~kautuk



Kautuk Sahni

View solution in original post

4 Replies

Avatar

Community Advisor

Hi Rama,

Please see the thread:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

Here you can see how to integrate the Java Web Application and AEM. you can check the codes.

~ Prince

Avatar

Correct answer by
Administrator

AEM Forum wrote...

From one of its pages, by clicking a button, we should Invoke an AEM page.

Hi 

I am bit unclear with your requirement here. When you say invoke so do you mean opening of the page ?

If so, then "java.awt.Desktop.getDesktop().browse(theURI);"

There are many ways to open the page.

~kautuk



Kautuk Sahni

Avatar

Level 10

If all you want to do is open a page - then as Kautuk suggests - you can use Java APIs to do so. 

Avatar

Employee Advisor

Hi,

what do you mean with "call a page"? Do you mean to retrieve a page via a HTTP call?

Jörg