How to integrate a Java Application in the portal
Hi:
I have developed a pure and simple Java Application just like a test, only Java, no EJB, no JSP. JUST PURE JAVA. I need to put this application in my Oracle9iAS Portal and i've found something about developing EAR and WAR. But i can't find the way to put my app in the portal.
Does anybody know how can i put my app in the portal? or what should i do?
Thank you.
Hi:
I have developed a pure and simple Java Application just like a test, only Java, no EJB, no JSP. JUST PURE JAVA. I need to put this application in my Oracle9iAS Portal and i've found something about developing EAR and WAR. But i can't find the way to put my app in the portal.
Does anybody know how can i put my app in the portal? or what should i do?
Thank you.
Similar Messages
-
How to upload a java application into the oracle DB
Hello,
I am in search of an issue that is worrying me now for weeks. I have a java application which is independent. Now I want to upload this application to the oracle DB.The idea is for the application to sit on the DB and do it work from there, which is to transfer data to another 3rd party independent system. What is the best way of doing this? Is there any utility which can help me to upload a java application to the DB?
Also after uploading the application in the DB, how can it be called? Is there any tutorial to guide me please?
Thank you all for brain stormingCheck the docs for "Java Stored Procedure":
http://www.oracle.com/pls/db92/print_hit_summary?search_string=java+stored+procedure -
How to invoke a java application in the middle of the process
In the middle of one process, I want to invoke a java application. After the java application, the process will continue and select a path based on the result of the java application. Which activity can be used to invoke a java application in the middle of the process?
ThanksBPM Changes:
1. Under 'External Resources' create a new resource of type 'Server Configuration'. Specify the host port and path of your servlet here. This will be invoked from your process. Lets name this configuration as 'myExternalConf'.
2. Create an interactive activity say 'InvokeMyApplication' in your process. The main task of this application should be external task. (Implementation Type = External)
3. Create the prepareMethod method say 'prepareExternal'. Set the arguments for this method as output arguments. These arguments will be available to you in your external servlet.
4. Create the commit method say 'commitExternal'. Set the arguments as input arguments. The external servlet will return these arguments back to the process.
5. Check the 'Use configuration' checkbox for your main task (external task). Select 'myExternalConf' here.
Servlet changes:
When the user executes your 'InvokeMyApplication' activity, he will be taken to the external servlet of your external application. You will be passed the currentActivity, currentParticipant, instanceID and one more argument (which I dont remember :( ) as url parameters.
1. In this servlet, open a PAPI/PAPI WS session for the participant passed to the servlet as url parameter
2. Use the currentActivity ( passed in url parameter), to call prepare method on this activity. This will return you with the arguments defined in 'prepareExternal' method.
3. Using these argumets, or otherwise, you can do whatever you want in this servlet. When done prepare the arguments to pass back to BPM.
4. call papiService.activityCommit and return the arguments.
5. Flow goes back to your BPM application
Some code that might help:
Servlet calling prerpare:
ProcessServiceSession papisession = null;
try{
papisession = initializePapi();
fuego.papi.Arguments args = fuego.papi.Arguments.create();
args = papisession.activityPrepare(activity, instanceId, args);
Map<String, Object> argsMap = args.getArguments();
return argsMap;
protected ProcessServiceSession initializePapi(){
Properties configuration = new Properties();
try {
InputStream inputStream = getClass().getClassLoader().getResourceAsStream("bpm.properties");
if(inputStream == null)
throw new IOException();
configuration.load(inputStream);
} catch (IOException ex) {
log.log(Level.WARNING, "Could not load bpm.properties", ex);
return null;
Servlet calling commit:
public void commitToALBPM(Map parameters){
try{
papisession = initializePapi();
fuego.papi.Arguments args = fuego.papi.Arguments.create();
Set s = parameters.keySet();
Iterator propNames = s.iterator();
while (propNames.hasNext()){
String key = (String)propNames.next();
String val = (String)parameters.get(key);
args.putArgument(key, val);
papisession.activityCommit(activity, instanceId, args);
catch (OperationException e)
HTH
Satinder -
How to execute a java application once the server starts
I have created a java application which executes correctly. I want this application to execute everytime I start my server. I have modified my web.xml as shown below
<servlet>
<servlet-name>SendEmail</servlet-name>
<servlet-class>
com.allcorp.alliance.tdocs.servlets.SendEmail</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
<load-on-startup>1</load-on-startup>
</init-param>
</servlet>
I have extended the class with HttpServlet. When I start the server, I get the message saying the class is being initializing but it does not execute. I want the application to execute. Any idea what I need to do.BalusC wrote:
Implement ServletContextListener and run the appplication on creation of the ServletContext.Well i understand implementation of ServletContextListener and by overiding contextInitialized(ServletContextEvent se) accordingly can solve the problem.
but you need to consider two cases here first
1).ServletContextListener is not supported by all container especially the minor onces which does not support Servlet 2.3 specification.
2).OP does not have any idea of how to use a Servlet first if you can see he had written his intialization code in the main method.Now how can you expect him to create a listener..... :)
I hope there are no hard issues on what i said this time.
*@OP*
My friend the bad news is that you need to spend bit of time learning about servlets.U'd not be writing intialization code inside a main rather you'd be doing it inside public void init(ServletConfig config) method.
by making <load-on-startup><!--value</load-on-startup> in web.xml enables Servlet container to call init method at the time of deployment of the web application else where it'd call the init method whenever servlet encounters first request from a client.
package com.allcorp.alliance.tdocs.servlets;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.servlet.http.*;
import javax.servlet.*;
import javax.activation.*;
* @author ssa3z
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
public class SendEmail extends HttpServlet{
public void init(ServletConfig config) {
// SUBSTITUTE YOUR EMAIL ADDRESSES HERE!!!
String to = "[email protected]";
String from = "[email protected]";
// SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
String host = "smtp.allstate.com";
// Create properties, get Session
Properties props = new Properties();
// If using static Transport.send(),
// need to specify which host to send it to
props.put("mail.smtp.host", host);
// To see what is going on behind the scene
props.put("mail.debug", "true");
Session session = Session.getInstance(props);
try {
// Instantiatee a message
Message msg = new MimeMessage(session);
//Set message attributes
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject("Test E-Mail through Java");
msg.setSentDate(new Date());
// Set message content
msg.setText("This is a test of sending a " +"plain text e-mail through Java.\n" +"Here is line 2.");
//Send the message
Transport.send(msg);
}catch (MessagingException mex) {
mex.printStackTrace();
} Hope this might help :)
REGARDS,
RaHuL -
How to integrate webdynpro java application in HTML pages?
hi EP GUrus
i need to re design an Webdynpro java application into web home page. there is one home page designed is wd java . now i have to redesign the page and i have make some web content like training calender new schemes and all which they manually update daily
thanks in advance
johnyhii sir
currently we have an application which is accessing through internet using url .that applicalion is wd java application which is need to redesign with dynamic contects -
Question about how to integrate struts web application into Weblogic Portal
hi, I'm using Weblogic8.1 Portal and workshop to integrate my existing struts web applications. I know that the struts web application can be imported and integrated as a portlet. But I'm not sure how to integrate the corresponding EJB module into portal?
any help appreciated!!should be simple...
copy all the jpfs and other classes appropriately into a new portal app.
Create a new Java Page Flow portlet.
That should be it.
The major thing to watch for is how your navigation etc change.
Kunal Mittal -
How to schedule a java application via Windows Scheduler
I can't figure out how to schedule a java application using the Windows Scheduler. Do I schedule the java application with the .class file as a parameter? How do I pass arguments to it?
To execute FileCopy.class, my best guess was:
Start | Control Panel | Performance and Maintenance | Scheduled
Tasks | Add Scheduled Task | Browse | Program Files | Java |
jre1.5.0_06 | ... Advanced Properties
Under the Task tab:
Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe"
Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy
FileCopy"
This does not work. How do I schedule the FileCopy.class java application, and how can I pass arguments to it? Can this be done without specifying a password?
TIA,
JohnSuppose that your class is FileCopy (has no package name) and is located under MyDocuments\Eclipse_Workspace\Java_File_Copy folder, then you should have:
Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe" FileCopy
Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy"
And yes you must provide a user password to execute the task.
Best way to do this is to create a special user (with password) for executing this task.
Regards -
How can i run java application at system startup just liks as services
How we can run java application at the time of system
starts up just like as services.Hi,
At first you have to create an exe of the class file.
for that go to the site www.duckware.com/java2exe.html
Click on the j2exe23c.exe(75k) download it and install in ur system. convert the class file to windows exe.
The put the exe in the startup folder in windows.
If ur not able to find that folder search for it and put that exe in that folder. -
Integrate vb client application to iplanet portal server
how to integrate 3rd party applications to iplanet portal server
If the application is entirely win32 based, you might wan't to have a look at the 3rd party products, such as tarentella, citrix or graphon. iPS allows secure sessions to be set up with these applications via the portal the desktop.
-
How to make a Java application that will change the client box's IP address
HI how to make a Java application( that application would be run on the client ) that will change the client box's IP address ( IP address of itself )
If you can do that through the command line, then use Runtime.getRuntime().exec(...) to execute your command.
-
How can i let my java application closes the other opened windows
how can i let my java application closes the other opened windows: like any other Microsoft Internet Explorer windows ... provided that my java application is not the one i used to open those other windows.... thanks in advance
you'll have to use JNI to access the windowAPI
then you need a list of window handles ... I think there was a function called getWindow and in order to close them you use sendMessage .... for details check out msdn (microsoft developer network)
somwhere I saw a tool called JUtil, which might help you getting started on accessing the win api from java
regards
Spieler -
How to put Java application in the MS. Windows System tray
dear all,
Is it possible to make a Java application communicate with the MS. Explorer and to put a Java application in the MS. Windows System tray
Regardshttp://www.esus.com/docs/GetQuestionPage.jsp?uid=624
or look for madcap on sourceforge -
How to integrate web based application to windows based application
Hi,
Experts,
we developed web based application in this when we raising
invoice document after adding this we need to updated Amount
in integratee SAP B1 then that Amount we need Update The
Amount in OACT Table how we can Update in Amount Field
in OACT Particular Account Code. plz Guide me. and how to
integrate web absed application to windowbased application
plz help me.
Regds,
Samapth.Dear sampathdevunuri kumar,
You may develop the addon based on SDK DIServer for required function.
The DI Server is an extension of the DI API and supports all its objects. It is intended for high-volume data integration, where numerous client connections must be managed simultaneously and optimized for speed. It is also suitable where Web-services architecture is preferred.
Please refer to SDK help and SDK DIServer sample for more information.
Best Regards
Jane Jing
SAP Business One Forums team -
Patching/updating Java Applications in the WebLogic environment.
Hi All,
I'd like to get some feedback on our process and hear if there is some better/different
ideas out there on how to handle patching/upgrading java applications in the WebLogic
environment.
Here is our process:
1) We build using ANT our Enterprise application.
2) We deploy our application using InstallAnywhere to drop the structure into
an environment.
If a patch or update is needed, we again build the Patch/Update using ANT, generating
checksums for each file in every ear/war/jar file as well as any supporting files
(.xml, .properties, .sh, etc.) used in the production structure. We then compare
checksums against what is in production and come up with PATCH_(ear/war/jar) files
with only the changed classes and duplicate production structure with the changed
supporting files.
Using ANT scripts and InstallAnywhere, we backup the files to be replaced in production,
overwrite supporting files, extract packages (ear/war/jar), overwrite classes
with new ones, re-package the ear/war/jar files into production environment and
restart the server.
We patch at a class level due to the configuration settings internal to the package
files (ear/war/jar) that we don't want the customer to have to re-configure everytime
we do a partial release.
Right now, the whole process is automated except the creation of the Patch ANT
script that extracts, overwrites updated classes, updates manifests, then re-packages.
Any ideas on improvements or complete re-engineering of our process to help so
we can get closer to 100% automation?
Thanks,
JohnThe chances of two applications running at exactly the same time are miniscule. If they each have a connection to the database, and are both trying to modify the same table, then chances are one will be slightly after the other its changes would be committed last. In the case where one might delete a row just before another tries to access that row, you're going to have some sort of problem. However, those circumstances are pretty rare, and even so, some small amount of exception handling can deal with them gracefully.
-
How to get the source code of a PRT application in the portal
Hi!
Does anybody know how to get the source code of a PRT application in the portal?
Thanks in advance,
CelsoCelso,
If its Java-based code have a look at the properties of an iView that belongs to the application in question and copy the value of the Code Link parameter e.g. 'com.sap.pct.hcm.rc_vacancyrequestov.default'.
Search the Portal installation directory under /j233/cluster/server/ for a .par.bak file of the same name, removing .default from the codelink parameter
e.g. com.sap.pct.hcm.rc_vacancyrequestov.par.bak
Copt this locally and import into Netweaver Developer Studio. You will have to decompilte the class files with a decompiler such as DJ Decompiler or Cavaj (search with Google).
Cheers,
Steve
Maybe you are looking for
-
dear all i have configured free goods,in the order the cost is coming for free goods at item level and it is not adding to the header cost total. for eg:i have 2 items and 1 free item.costs r 300,400,500 respectively. in the header it is showing onl
-
Cannot install CRS on AIX 5.3 ML09 with HACMP 5.4.1
We have a two-node HACMP cluster, it's handling the networking and storage. (raw LV's) It's a fairly simple setup. I followed the instructions in document 404474.1 "Status of Certification of Oracle Clusterware with HACMP 5.3 & 5.4" to ensure it's co
-
Output only the Interactive Reporting document in an IR job/output?
Hello, I have created an Interactive Reporting job using the File->Import->File as Job. I have walked through the various screens to supply oce connection information, output directory etc. The output however, shows up as a Table of Contents - 1) Int
-
Hi all, This has to be a question for the 'weird' section. I'm usiing iTunes 6.0.4.2 on my Pentium 4-based Windows XP machine, and I cannot get it to stay closed. Every time I click on close, it re-opens after a 10 second pause. I don't have my iPod
-
How to create user credit control via customization
Hi ! I have to create user credit control via Transaction : SPRO. path: Sales and Distribution->Basic Functions->Credit Management/Risk Management->Credit Management->Define Automatic Credit Control. I want to check the user checkbox, and create my l