Instantiating COM objects from within the java code in WLS
is there a way to use COM objects from servlets or ejb's,
with JVM, not with JView.
thanks,
ali.
Sun has released a beta product - its a COM bridge that you can use
to connect a Java2 JVM to a COM object with. I havent tried it yet
but I probably will soon.
Brad
"Michael Girdley" <[email protected]> wrote in message news:39b86deb$[email protected]..
>
>
No, at the current time we only support COM integration when using the
Microsoft JVM. The Jintegra product from Linar is good.
Thanks,
Michael
Michael Girdley
BEA Systems Inc
"Ali Ozgun" <[email protected]> wrote in message
news:[email protected]..
is there a way to use COM objects from servlets or ejb's,
with JVM, not with JView.
thanks,
ali.
Similar Messages
-
How can I call a COM object from a PL/SQL CODE
Hi everyone,
Does anyone know how to call a COM object from a stored procedure in oracle.
a sample of code
please help,
HilaireAre you familiar with external procedures? Basically, you can expose functions exported by a shared library (i.e. a DLL on Windows) to the Oracle database. My assumption is that you'd probably need to write a wrapper DLL around the COM object, since I believe you can only pass fundamental data types back and forth (i.e. no object references). You'd expose the method(s) of that wrapper DLL to the database via external procedures.
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC -
Dynamic navigation from inside the java code within the project
I want to create dynamic navigation in my project.
On my first page I need to get to a second servlet page by the use of dynamic coding. In normal servlets I would use response.redirect() but I cant here in the creator world and I am stuck on this point.
Any ideas or directions on how to proceed?
I know how to use the navigation XML file and know how to modify the file in question.Well I sort of worked out what had to be done, and the references that everyone gave me was amazing and I am thankful...
The JNI does anyone have JNI experience???
Has anyone got the JNI functionally working within this IDE?? -
How to execute a Perl program from within a Java prog
How do I execute a Perl program from within a Java program.
Lets say the Perl program that I want to execute is 'abc'. Now, 'abc' requires some input that I want to give it from within the Java program. How do I do it?
And finally, how do I execute that Perl program from within the Java program.
If I execute the Perl program alone then I do it in the following way -
perl abc inp1 inp2 inp3
where inp1, inp2, inp3 are inputs to the Perl program. I will not be able to change or modify the coding of the Perl program - 'abc' as I do not have access to its code. Its a kind of an application whose usual method of execution is in the above shown way. So, how do I execute 'abc' from within a Java program.what part of don't crosspost, don't you understand?
http://forum.java.sun.com/thread.jsp?forum=4&thread=427193 -
Executing a Perl program from within a Java prog
How do I execute a Perl program from within a Java program.
Lets say that the Perl program that I want to execute is 'abc'.'abc' requires some input that I want to give from within the java program. How do I do that? Then I want to execute the Perl program from within the Java prog. How do I do it?don't crosspost.
http://forum.java.sun.com/thread.jsp?forum=31&thread=427211&tstart=0&trange=100 -
Instantiating Objects from the library from within the movie clip
Ive been Instantiating Library object from linked external
action script files and it works fine.
var PPEbtn1 = new btnPPE;
but when i try to do it from within the main swfs timeline it
fails to work and i recieve an error if anyone could please help it
would be most apreciated. thanksYou need to get the application domain of the external swf
and use its getDefinition method. Cast the result to a Class and
then you can instantiate the symbol.
Here's some example code where "library" is an externally
loaded swf: -
Pass the data back from the jsp page to the java code
Hi,
I have written an iView that receives an event using EPCF and extracts data from the client data bag.
I need this iView to pass the data back from the jsp page to the java code.
I am trying to do this using a hidden input field, but I cannot get the code to work.
Here is the code on the jsp page.
<%@ taglib uri="tagLib" prefix="hbj" %>
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId">
<hbj:inputField id="myInputField" type="string" maxlength="100" value="" jsObjectNeeded="true">
<% myInputField.setVisible(false);%>
</hbj:inputField>
</hbj:form>
</hbj:page>
</hbj:content>
<script language=JavaScript>
EPCM.subscribeEvent("urn:com.peter", "namedata", window, "eventReceiver");
function eventReceiver(eventObj) {
var url = eventObj.dataObject;
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
var ipField = eval(func("myInputField"));
ipField.setValue(url);
var form = document.all(htmlb_formid);
form.submit();
</script>
Here is my java code
package com.sap.training.portal;
import com.sapportals.htmlb.InputField;
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.JSPDynPage;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
public class ListSalesOrder extends PageProcessorComponent {
public DynPage getPage(){
return new ListSalesOrderDynPage();
public static class ListSalesOrderDynPage extends JSPDynPage{
private String merong;
public void doInitialization(){
public void doProcessAfterInput() throws PageException {
InputField reportfld = (InputField) getComponentByName("myInputField");
if (reportfld != null) merong = reportfld.getValueAsDataType().toString();
public void doProcessBeforeOutput() throws PageException {
if ( merong != null ) setJspName("merong.jsp");
else setJspName("ListSalesOrder.jsp");
Here is DD
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="SharingReference" value="com.sap.portal.htmlb"/>
<property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
</application-config>
<components>
<component name="SearchSalesOrder">
<component-config>
<property name="ComponentType" value="jspnative"/>
<property name="JSP" value="/pagelet/SearchSalesOrder.jsp"/>
</component-config>
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
</component-profile>
</component>
<component name="ListSalesOrder">
<component-config>
<property name="ClassName" value="com.sap.training.portal.ListSalesOrder"/>
</component-config>
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
</component-profile>
</component>
</components>
<services/>
</application>
After receive event, then call java script function "eventReceiver" and call "form.submit()".
But .. PAI Logic in Java code doesn't called ...
Where is my problme ?
Help me ...
Regards, Arnold.Hi Arnold,
you should not do a form.submit yourself. Instead you can put a component called ExternalSubmit to your page:
ExternalSubmit exSubmit = new ExternalSubmit("EX_SUBMIT"));
exSubmit.setServerEventName("MyEvent");
This results in a java script funtion on the page which is called "_htmlb_external_submit_". If you call this function the the form gets submitted and your event handler is called.
regards,
Martin -
Need to start JINI registrar instance from within the code
HI All,
I need to write JUnits for our app using JINI for which we need to start JINI registrar from within the code and then publish some services to it.
Any idea how we could be starting the JINI registrar from Java Code ? Any thoughts/suggestions/pointers would be highly appreciated.
Thanks in advance
VikramHi Senthil,
You can directly call the outer class method. Otherwise use the following way MyDialog.this.close(); (But there is no close() method in Dialog!!)
If this is not you expected, give me more details about problem.
(Siva E.) -
How do I get the java code from a class file ?
I want to know how to findout the java code from a .class file . Is there any utility or any way to get the java code from a .class file. If so , please let me know the step by step procedure .
Thanks
ShivaCheck out Mocha (http://www.brouhaha.com/~eric/computers/mocha.html)
It's free! -
How to register a dll from the java code
Hi,
We can use windows utility Regsv32.exe to register a the components. Is it possible to register the Dll from the java code. If possible please try to provide me the code for the registring the dll.
Thanks in adavance
Aswadif a try this variant it doesnt work
static {
System.loadLibrary("shellExec.dll");
but in this way it work (without .dll extension)
static {
System.loadLibrary("shellExec");
} -
Accessing java objects from within javascript
Hello,
Anyone with an idea of a useful toolkit for accessing java objects from within javascript will be much appreciated.
Thanks in advance,
Antana.What do you mean by accessing Java objects? Do you mean interacting with an applet via JavaScript? Something else?
-
Can we set a variable used inside the template from the java code.
Hi everybody,
I am uploading template,sub template and data xml fle to generate the preview using XDO API's. My main template is calling a sub template so it needs to import the sub template in the main template.since i am uploading my files on a particular server,my subtemplates has been put on different path as specified in the main template.
so i need to change the subtemplate path dynamically at run time.
is there any way i can pass this information to my main template at run time.
one solution could be,my rtf template has a variable 'i' inside it,which is setting the file path to include my subtemplate like this :
<?xdoxslt:set_variable($_XDOCTX, i ,"import:file:///c:/Temp/htmlmarkup.xsl")?>
<?xdoxslt:get_variable($_XDOCTX, i )?>
now is there any way i can set this variable at run time from my external java code.?
Thanks,
AnuradhaThanks for the response.
but i still am looking for the solution.
if both my template and subtemplate are in the same directory then atleast
<?import:file:../htmlmarkup.xsl?> should work.
but its not working...i m getting following error:
FOProcessor setData: C:\subtemplates\projects.xml
FOProcessor setLocale: en-us
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:514)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:192)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1535)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:925)
at RTF2PDF.runRTFto(RTF2PDF.java:590)
at RTF2PDF.runXDO(RTF2PDF.java:443)
at RTF2PDF.main(RTF2PDF.java:237)
Caused by: java.io.FileNotFoundException: C:\Documents and Settings\fusion\htmlmarkup.xsl (The system cannot find the file specified)
at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:782)
at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:564)
... 15 more
please suggest me what to do.. -
JavaScript is not from the same origin as the Java code
When trying to log into my school website with Safari, I get the following error from the console:
sun.plugin.liveconnect.OriginNotAllowedException: JavaScript is not from the same origin as the Java code, caller=http://tychousa3.umuc.edu/WebTycho.nsf/setJVMCookie?OpenPage, callee=https://tychousa3.umuc.edu/sys/
This keeps me from logging in. In order to get it to work, I have to disable Java, log in, then reenable Java after logging in.
I am able to log in successfully with Firefox but I really prefer to use Safari.
Does anyone else experience this problem and do you know how to fix it? Any help would be very much appreciated. Thanks.
iBook 933 - PPC Mac OS X (10.4.5)I'm reposting. No answer.
-
Test.jsp not able to display the output from the java code.
when i try to invoke http://localhost/papz/test.jsp
I dont see anything. The page is blank. And there are no error messages in any log files. When i click on view source in IE i get to see the entire source code, including the jave code.
<html>
<head>
<title>Test</title>
<body>
<%
out.println("Hello World");
%>
asdfasdfasdf
</body>
</html>
i added in the asdfasdf to see whehter it will be printed or not... It does print that stuff out.
when i try to invoke the login.jsp page, i get the dialog box "save this file to disk"
Any clues whats going on...?
I followed the instructions...over and over again... but it doesnt seem to help.
win nt 4.0
apache 1.3.12
jserv 1.1.1
Pls help. ThanksHi,
Have you solved your problem?
I4m trying to do the same, but I installed portal 30, then portal to go, and when I try to run test.jsp I get the following error:
Request URI:/papz/test.jsp
Exception:
java.lang.NoSuchMethodError: oracle.jsp.util.JspUtil: method
stripTarget(Ljava/lang/String;C)Ljava/lang/String; not found
Thanks
Pablo Lopera
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by NewBie:
when i try to invoke http://localhost/papz/test.jsp
I dont see anything. The page is blank. And there are no error messages in any log files. When i click on view source in IE i get to see the entire source code, including the jave code.
<html>
<head>
<title>Test</title>
<body>
<%
out.println("Hello World");
%>
asdfasdfasdf
</body>
</html>
i added in the asdfasdf to see whehter it will be printed or not... It does print that stuff out.
when i try to invoke the login.jsp page, i get the dialog box "save this file to disk"
Any clues whats going on...?
I followed the instructions...over and over again... but it doesnt seem to help.
win nt 4.0
apache 1.3.12
jserv 1.1.1
Pls help. Thanks<HR></BLOCKQUOTE>
null -
Start a WS application from within a java program
Hi,
I need to start a WebStart application from within a java program. Therefore I develeoped a class which starts javaws.exe within its main-method like this:
try {
Runtime.getRuntime().exec(
"c:\\java web start\\javaws.exe http://a.b/c.jnlp"
} catch (Exception e) {
e.printStackTrace();
And that did not work. Java Web Start tries to start the .jnlp program but returns with the message, that the app-desc|applet-desc|installer-desc|component-desc is missing. But it is there: It is an applet and thus I defined an applet-dec.
I tried to do it from a command line with the followinf command:
java -Djnlpx.home="C:\abc" -cp "C:\abc\javaws.jar" com.sun.javaws.Main http://a.b/c.jnlp
And that works. But using this command from within my jjava prog using the Runtime.exec() method does not work.
By the way, simply type "javaws http://a.b/c.jnlp" at the command line does not work.
Can anybody help me? How may I start a .jnlp program within another java program.
Kind Regards,
Tobias NeubertHi,
I recently had a quite similar problem. At least the error message by the Java Web Start application on Mac OS X complained about the same error (app-desc|applet-desc|installer-desc|component-desc). It turned out to be some bad invisible characters in the jnlp file. I copied some sample from a web page which for some reason contained some unicode chars that the parser doesn't like. Use a different text editor or the less command on unix to see if there are some strange characters in you jnlp file.
But it seems strange that it does work from the command line and not from your code.
-Stefan
Maybe you are looking for
-
Unable to open attachments(.pdf file , .eml file ) in iPad or iPhone
Hi, We are facing one critical issue that unable to open (few attachments ) .pdf or .eml on iPad or iPhone . But same file we could open using gmail or other account in a same iPhone or iPad. Please help me to resolve this. Thanks & Regards, Vinot
-
I just updated my iphone 4S & all apps are gone. How do I get them back.
I just updated my iphone 4S & all my apps are gone.
-
How to create a DLL in CVI which can be used in MFC?
I want to create a DLL in CVI and use the DLL in MFC. But even if I tried many ways, I cannot reach the objective. There are always link errors. Could you give me some instructions about it?
-
Scenario in which Conversation ID will not get generated
Hi all, I have a requirement wherein i need to capture the conversationID for logging purpose from my BPEL processes. However i have noticed that ora:getConversationId() is giving me NULL sometimes. Could anyone tell me what are the scenarios where c
-
Cocoa Binding: Connecting ObjectController
I've been trying to figure out how Cocoa Binding is supposed to work. The developer documents aren't Apple's best so I've been trying to learn by example. I've built my first demo following this article: http://www.cocoadevcentral.com/articles/000080