Java program accessible from internet
Hi,
I would like to ask if the following scenario is possible.
We have a java table in our Enterprise SAP portal and a java program that can query this table. We would like to know if we can make this query to be available from outside (internet), probably as a web service or as wsdl.
We want an external application to provide the criteria and our query query and give back the results.
Thanks in advanced
Hello there,
Please find some more details
http://help.sap.com/saphelp_nw04/helpdata/en/45/029840cf43495195da923f32262911/frameset.htm
Regards,
Vivek
Similar Messages
-
Java Program on the Internet -How? Urgent
Hello,
I developed a Mutithread TCPIP socket based Network program "Forex Simulator". It's an applet both from the server side and client side. The Program needs to access the socket as well as Database. The Program is simple. After starting server, many clients can connect and buy and sell currency.
I ran this in my home LAN. Initially, I was having trouble with running applet which rejects socket connection. After searching on the net I modified the Java Run Time Environment java.Policy file and modify permission to connect to my server IP and it works.
I have to upload this program on to internet in a shared server. What should I follow to successfully run this on the net.
There are many java chat program, chart, forex simulator running on the internet. How can I implement my program like that.
Thanking you.
Please please reply me, if someone knows it.Thanks for your comments.
1.- Applets are not server side application but, client side, this means that ALWAYS an applet is downloaded to each client machine and if your "server applet" opens sockets, then every client machine will have its sockets opened but not the web server.
Now I understand what applet really does. My server applet opens socket in my local machine. But I don' want that. I want the program to open the socket on server that means in my case http://webpagedesignpro.com and client will connect to the port of that server.
3.- To create a server on your web server you need to run a stand alone app on the server or use something like J2EE
I badly need to implement my program on the internet. Is there any tutorials or example anywhere for "How to run standalone program on a web server " or J2ee.Standalone means it's not an applet, am I right? As ejp mentioned there is no server applet, so how can I make the serverside program running on a server where client can connect to that server.
Finally, What are the steps of or what is the java technology which can run a chat server on the net where people from all over the world can chat to each other. My program is same as a chat server.
Thanks again. -
Program downloaded from internet are you sure you want to open
Hi Guys
I've got an issue i cant solve.
basically when opening programs i've downloaded from internet i.e .dmg files, and there installed in my applications, im getting the prompt that
" this program was downloaded from the internet, are you sure you want to open it? "
i can open and close the application and will still get the prompt, after reboots.
any suggestions
i've tried running cleanups with programs such as onyx as well but doesnt help
CheersIf it keeps coming back after the first time for that app, then try repairing permissions using Disk Utlity.
It will report a lot of stuff that you can safely ignore. I'm not sure if it will fix the problem, but it might.
The Quarantine attribute is supposed to be stripped off when you OK it, but it appears it is not. It could be a problem with permissions that is preventing the attribute from being removed. -
Wiki no longer accessible from internet
I have been running a Mac Mini OS X Server 10.6.8 for several years. Recently my wiki pages are no longer accessbile from the internet, I can get them to load on the actualy server, but not from a remote computer. All of the regular websites that are hosted on the server can be reached, but any time I try to connect to a wiki page the server never responds to the request and I eventually get a timeout error
Anyone have any idea how to go about fixing this? It has been working for years. The only thing I can think that has been done to the server recently was a Java update.I have been looking around trying to find a solution to this issue and I came across this post which dicusses the error logs for the wiki, which are located at
/Library/Logs/wikid
I went to this location and found hundreads of logs (as well as an access log over 1GB...?)
I uploaded the latest error log file here, (gametheorylabs.com/error.log)
The latest error that looked "interesting" seems to be python related, or that is at least a guess. I copied that section below for quick refrence. Any help pointing me in a direction that could get the wiki server accessible over the internet would be greatly appreciated.
I also have already checked file permission on the colloaboration and webserver/documents folder and they do have read permissions
2013-04-23 10:27:22-0500 [HTTPChannel,5410,127.0.0.1] Exception rendering:
2013-04-23 10:27:22-0500 [HTTPChannel,5410,127.0.0.1] Unhandled Error
Traceback (most recent call last):
File "/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 184, in addCallbacks
self._runCallbacks()
File "/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 326, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 287, in _continue
self.unpause()
File "/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 283, in unpause
self._runCallbacks()
--- <exception caught here> ---
File "/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 326, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "/usr/share/caldavd/lib/python/twisted/web2/server.py", line 320, in <lambda>
d.addCallback(lambda res, req: res.renderHTTP(req), self)
File "/usr/share/wikid/lib/python/apple_wlt/RevisionServer.py", line 161, in renderHTTP
revisionEntry = anEntry.getRevision(self.revisionName)
File "/usr/share/wikid/lib/python/apple_wlt/ContentEntry.py", line 650, in getRevision
someVersionDict = self.getRevisionSerialized(revision)
File "/usr/share/wikid/lib/python/apple_wlt/ContentEntry.py", line 667, in getRevisionSerialized
for aKey in someVersion.keys():
exceptions.AttributeError: 'NoneType' object has no attribute 'keys' -
First I have created two Java files
FileName1-TestPLSQL.java
package TestJava;
public class TestPLSQL {
* @param args
public static void main(String[] args) {
// TODO Auto-generated method stub
test2.world();
FilaName2-test2.java
package TestJava;
public class test2 {
public static void world()
System.out.println("Hello world");
Then i have loaded the class in Oracle using Loadjava-
loadjava -user TEST/TEST -v TestPLSQL.java
loadjava -user TEST/TEST -v test2.java
It successfully loaded without any error.
Then i have created one function-
create or replace
FUNCTION F_JAVA_PGM
/*Specify the return type as per the method in the java class*/
RETURN VARCHAR2
AS
/*Specify the external programs base language*/
LANGUAGE JAVA NAME 'TestJava.TestPLSQL(java.lang.String)
return java.lang.String';
While executing the below query -
SELECT F_JAVA_PGM FROM DUAL;
Its giving error-
ORA-29540: class TestJava does not exist
Can anybody help me on this?INRi wrote:
While executing the below query -
SELECT F_JAVA_PGM FROM DUAL;
Its giving error-
ORA-29540: class TestJava does not exist
Can anybody help me on this?
The call specification is incorrect :
You must publish a method, not a class.
None of the methods return a value, why are you creating a function ?
So, in short, for the specific test case you've submitted here, use a procedure that interfaces the TestJava.TestPLSQL.main method with a String array parameter :
create or replace procedure P_JAVA_PGM
AS LANGUAGE JAVA
NAME 'TestJava.TestPLSQL.main(java.lang.String[])';
Tested OK after loading the sources directly via CREATE JAVA SOURCE :
create or replace and compile java source named file2 as
package TestJava;
public class test2 {
public static void world()
System.out.println("Hello world");
create or replace and compile java source named file1 as
package TestJava;
public class TestPLSQL {
* @param args
public static void main(String[] args) {
// TODO Auto-generated method stub
test2.world();
create or replace procedure P_JAVA_PGM
AS LANGUAGE JAVA
NAME 'TestJava.TestPLSQL.main(java.lang.String[])';
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exec p_java_pgm
PL/SQL procedure successfully completed.
Result can be seen in a trace file :
*** 2013-08-11 12:44:51.513
Hello world -
Programs downloaded from internet dl as a document??
Whenever i try and download most programs from the internet it will download but only as a document. this includes games, music dl managers and other stuff i cant think of.. links to word documents and power points for school all download fine of course...
im frustrated!Hi Emily,
Welcome to Apple Discussions.
Curious, what if you try to download Firefox or another "Mac-friendly" application? These items you're downloading, what are their file names ending in? Are they .exe?
The fact that you're able to download some programs, but not all, would indicate that either the programs you're unable to download are not compatible with Mac or the download location you're using for them is untrusted. -
How to begin learing Java Programming for the Internet?
expecially for socket
Just go to www.google.com and search for java+server+client+socket
And then look at some source code... -
Call Java Program from ABAP Program
Dear all,
In our scenario, we need to let ABAP call services provided by a standalone Java program. From online help I found some overview introduction and I'd make the called program a registered program in a RFC with type "T" (TCP/IP Connection). Can anybody give some concrete documentation? A step-by-step guide would be greatly appreciated.
Best Regards
Jeromecheck this thread
Re: Calling Java API from ABAP using JCo -
How can I run other programs using java program
hi experts,
I am trying to execute a set of commands from java program
eg: from command prompt
java CommandExecutor c:\winnt\notepad.exe c:\some.exe c:\onemorecommand.exe
and inside the CommandExecutor main method..
public static void main(String []arg)
for(i = 0; i < arg.length; i++)
Runtime.getRuntime().exec(arg(i));
the above code is executing all the command one after the other, but I want to execute the above commands squentially, i.e I want to execute the second command only after finishing the first command and the third after finishing the second and so on depending upon the arguments passed, how can I acheive this...
I have tried to use the Process which is returned by the exec(arg) method but the exitValue() returns same value before execution and after execution.
thanks,
krishnaDid you try to get the process returned and then try
process.waitFor() method. This waits for the process to finish.
After that try the next execution -
Passing Japanese characters to Java program
Hi,
I am using Java POI APIs for creating/modifying excel spreadsheets. The platform is Solaris. The data to be populated contains both English as well as Japanese characters. The input data to Java program comes from a perl program. When I populate the data in excel or even print using System.out.println, it prints ???... for Japanese characters. The data is in SJIS format.
I tried converting it to UNICODE in java but that doesn't seem to be working.
I also tried using native2ascii for converting the data to UNICODE before it is fed to Java program using the following command
native2ascii -encoding SJIS <Input File> <Output File>
Although it converts the charaters into UNICODE correctly in the form \u8a3c\u523... but when it is input to Java, the program prints the string as such.
But if this string is hardcoded in the program, the Japanese characters are printed correctly.
Could anybody please throw some light as to the data should actually be passed to the Java program.
ThanksSekhar
Ive realised the solution will probably involve HttpServletRequest.setCharacterEncoding.
Im now upgrading to Tomcat 4 because 3 didnt support this method. Once I'm through the upgrade, I'll try Japanese the chars again.
I would guess I need to force my web pages to utf-8 and use HttpServletRequest.setCharacterEncoding(utf-8) in the servlet to get it working ? -
Lauching Internet Explorer from java program
How can I lauch internet explorer from a java program. I need codes
ThanksWhat? Is this the Question of the Day or something?
http://forum.java.sun.com/thread.jsp?forum=31&thread=342624&tstart=0&trange=30 -
I need to call a java program and pass parameters from C#
I'm new to C# and was given a project to rewrite some of my old VB.net programs to C# to help me learn. These VB programs call quite a few .bat files that have calls to java programs in them. I'm doing okay converting my VB code, but I've been
stumped for days trying to figure out how to call java from C#.
Does anyone here know how to do this? I really should've had this figured out by now and my back is to the wall. Ugh :(
This is the line from the .bat file that I need to convert to C#.
call jvbat production_r115.Automotive m:\data\MK115mn.100 m:\data\MK115mn.101 %6
There is one parameters being passed, %6
I would be forever grateful if someone can show me how to do this!Hi Joni,
Do you mean call a bat file that it is a Java program from C#? If so, there is an article talking about it.
If that's not what you're trying to do, please be more specific about what you're trying to do.
http://www.c-sharpcorner.com/UploadFile/maheswararao/CallingJavaProgramfromCS12062005233321PM/CallingJavaProgramfromCS.aspx
Now the next issue is pass some parameters from C#.
The above article tells using Process.Start() method to call java program. Also in this class, you could specify them all in the
Arguments property:
var p = new Process();
p.StartInfo.Arguments = string.Format("{0} {1}", argument1, argument2);
For more detailed information, please refer to
C# Passing Multiple Arguments to BAT File
Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control
these sites and has not tested any software or information found on these sites;
Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information
found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to access database file on CDROM from Java Programe??
Hello friends,
I am making online exam application.
I want my question database to be reside on CDROM.
but i am not getting any idea how to make DSN or static path that resolute the path that i have mentioned for CDROM.
basically i want to know how to access CDROM from Java Programe????
Thanks in advance
Navik PathakOnce you mounted the CDROM (something maybe as /media/cdrom) as a file system (or assigned a drive letter to it like D: or F: or whatever), the files are accessible normally.
-
I need my java program to read HTML tags from the browser...
so, i've made this java GUI, which can run from my internet explorer toolbar...
as of now, this program doesn't do anything, it just produces an interface with blank fields
i want these fields to automatically add information about the current web page on the browser... basically, is there any way that my java program can automatically read the HTML source of the web page opened? i just need it to be able to capture the page's URL and title.
i programmed it using NetBeans, and it runs from the .jre file outside of NetBeans. I got an icon for it to appear on my IE toolbar by editing my computer's registry. When I click on this icon, my GUI runs, but doesn't do anything. Can I get it to read (i.e. automatically output on one of the textfields on my GUI) the URL and title of the webpage that i'm currently on? I want this to work like Bookmarks/Favourites does, so that means i don't want to download every single webpage before reading from it.
any help will be greatly appreciated.I think that if you wanted to do this, it would involve something like the following:
Have your toolbar GUI listen on a local port
Set IE to proxy to localhost at that port
Tunnel/proxy all requests. This will allow you to intercept the page source and the original request. Between the request URL, the request payload, the HTTP headers of request and response and the response payload, that's everything the browser would 'see'. The downside of the above is that you cannot intercept SSL (HTTPS) requests. You might be able to use the Windows/IE API (native) to fetch page source, but this would definitely be an application and O/S specific solution.
- Saish -
How to find out internet explorer version ,using a java program?
How to find out internet explorer version ,using a java program?
Browser version from java?....you must be referring it from some web application....rite?
You can read the User-Agent header using request.getUserAgent() or request.getHeader("User-Agent") in your jsp or servlet.
for more details pls refer:
http://www.jguru.com/jguru/faq/view.jsp?EID=12253
Maybe you are looking for
-
Error accessing identity management in EP
Hi, I'v updated EP patches upto 11. After updating the patches I'm not able to access "User Administration". When clicked on "user administration" tab following error message is displayed. "A required service for the identity management user interfac
-
DFF on AP Payment not editable for quick payments
We are using R12 12.0.6 We opened a DFF on AP Payments but it only enables for manual payment type And we only use Quick Payment Type..For quick Payment, this DFF appears disabled althoiugh its enabled and compiled from Setup>flexfields>descriptive>s
-
Where to store Job Descriptions
Hi all, I know we have HRP 1002, but what is the best place to store job descriptions so that we can use it to post for open recks, store the skills. From a bigger picture, what is the best place to store the job descriptions?
-
How do I move photos that I've already imported?
I've imported some photos to the wrong folder. I could use IOS Finder to move the photos, but I worry that the links to LR will be loss. How do I move photos within LR? Thanks,
-
Bid Invitation Approval Workflow
Hi All, We are having issues implementing SRM standard bid invitation workflow approval becos of the absence of a web transaction acknowledged by SAP. Our implementation requires this functionality, could anyone assist us with a work around, or an al