Calling a Remote EJBSession Facade from a Local EJBSession Facade
Hi, I'd like to understand the way of calling a remote ejb application from a local ejbsession facade using its methods (throught data control palette) without I have to generate a Java Client. To do this, where do I put the code to get the remote ejb facade instance?.
Thanks in advance.
My problem is to call a application server, using rmi/jndi from a local application which has been developed using ADF+JSF+Toplink.
Concretely, into a backing bean method I need to call a method that this available one in the facade of the other application, which resides in OAS.
Using simple clients,it works fine, but I don't know the way to do it within backing bean, since creating a remote interface of the facade with the declaration of the remote method, it does not allow me to declare this like abstract. Nevertheless, and since already I have commented using a simple client it works to me.
Help please.
Similar Messages
-
How to call a remote stored proc from a local stored proc using DB Link
Hi All,
I am trying to call a stored procedure residing in another data base from the local procedure of my local data base using DB link,I am using the following syntax to call the procedure
CREATE OR REPLACE PROCEDURE MYLOCALPROCEDURE(Input1 IN varchar2 ,Input2 IN varchar2) IS
BEGIN
RemoteStoredprocedurename(Input1,Input2)@DBLINK;
END;
END MYLOCALPROCEDURE;
Its giving a compilation error as @ not expected
If i try to execute this way
CREATE OR REPLACE PROCEDURE MYLOCALPROCEDURE(Input1 IN varchar2 ,Input2 IN varchar2) IS
BEGIN
RemoteStoredprocedurename(Input1,Input2);
END;
END MYLOCALPROCEDURE;
Its giving an error as stored procedure must be declared.
A public synonym is created at the Remote database to which DB link is created.
Can you please let me know on the exact syntax to call the procedure residing in other database through DB Link.
Thanks in advance,
KumarTry:
CREATE OR REPLACE PROCEDURE MYLOCALPROCEDURE(Input1 IN varchar2 ,Input2 IN varchar2) IS
BEGIN
RemoteStoredprocedurename@DBLINK(Input1,Input2);
END;
END MYLOCALPROCEDURE; Amiel -
Calling a remote SSH script from a local script
When I paste this in Terminal I get the expected output:
ssh -2 root@$SERVER /Library/WebServer/Sectrum.com/Sectrum/RSS/Update.py
However when I invoke the same command scriptomatically I get error:
: No such file or directoryctrum.com/Sectrum/RSS/Update.py
It looks like the command line is truncated by a control character? What's going on?
Are there special rules when calling an SSH remote script from inside a script on the local machine?Just tried a test with
#!/bin/sh
ssh [email protected] command
with a remote (non-Mac OS X) box, and it worked as expected. Can you post more of an example, or can you try (for instance) invoking a bash script on the remote box with, say, an echo command or two? Try to break down the problem space here.
And in no particular order...
The root user wouldn't be my choice for this sort of thing, given the sensitivity of that username.
Try (for testing) using localhost as the host name, or the full host name.
Confirm $SERVER (and I'd probably use the ${SERVER} notation for that) is working with an echo.
And as a completely different approach, it might work to add and use a CGI path into the web server for this operation, too; to use a path other than ssh for the operation. Or (depending on what you're really doing here) maybe a periodic script. (Or Xgrid, maybe ARD or such, or any of various available distributed command environments.) -
Call a remote Java API from PL/SQL
Hi
I want to call a remote Java API from my PL/SQL. Can someone please provide me the steps to do this?
Thanks in advance
-GHello
thanks for the link. But is not telling me what I want.
I dont have java in my computer. I will be supplied with a java API name which I have to call by connecting to remote server. I will be have the username and password to connect and call the remote API. I need to get the return value from the remote Java API in my PL/SQL. I hope I have explained the issue clearly.
Thanks again.
-G -
Java code to connect to remote windows machine from local machine
Hi,
I have developed a code to connecting remote windows M/C from local M/C by using SSH2 (ganymed-ssh2-build209.jar) API. when I run the code its giving below error. Can any one please help me how to resolve it. And also please let me know, is there any other way to connect remote windows system using java code.
Exception.
java.io.IOException: There was a problem while talking to <host name>:22
at ch.ethz.ssh2.Connection.connect(Connection.java:642)
at ch.ethz.ssh2.Connection.connect(Connection.java:460)
at Connect.RemoteServer.ConnectWindowsServer.runCommand(ConnectWindowsServer.java:55)
at Connect.RemoteServer.ConnectWindowsServer.main(ConnectWindowsServer.java:27)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at ch.ethz.ssh2.transport.TransportManager.initialize(TransportManager.java:299)
at ch.ethz.ssh2.Connection.connect(Connection.java:591)
... 3 more
JAVA Code
import ch.ethz.ssh2.Connection;
import ch.ethz.ssh2.Session;
public void setAuthenticationInfo(String hostname, String username,String password) {
this.host = hostname;
this.userid = username;
this.password = password;
this.recentCommand = "";
System.out.println("setting authentication info completed for host=" + host );
public void runCommand() throws Exception {
try{
// Setup ssh session with endpoint
System.out.println("starting connection with " + host);
Connection connection = new Connection(host);
System.out.println("connection object created..");
connection.connect();
System.out.println("Connect to connection");
connection.authenticateWithPassword(userid,password);
System.out.println(connection.isAuthenticationComplete());
Session session = connection.openSession();
System.out.println("connected");
}catch (Exception e) {
e.printStackTrace();
Regards,
PraveenHi baftos,
I tried to telnet remote windows machine from my local machine on port 23, its not connected and given error message like "Connect failed".
As your response, if we can telnet to remote windows machine from local machine then we can connect from Java. Is it correct ?.
Can you please help me to resolve this issue. And also please confirm the port (23) is correct, which I was used to connect remote machine from telnet.
Regards,
Praveen -
Tpinit error when call a remote service
i have to call a remote tuxedo service in my local service,and the remote
service need to be authenticated when use tpinit. when i use tpinit in my
service,it will be error, i think maybe the application does not know which
tuxedo service i will call(local or remote),so,it may think my tpinit was
for my local service,then some error here.
what shall i do when call a remote service which need to be authenticated at
tpinit???
fishit's ok now,i made a stupid mistake.:)
"Anthony Fryer" <[email protected]> дÈëÏûÏ¢ÐÂÎÅ
:[email protected]..
>
What you should do is configure DOMAIN gateways between the remote tuxedodomain
and your own local domain. Then you don't need to call tpinit at all fromthe
local service that calls the remote service.
"fish" <[email protected]> wrote:
i have to call a remote tuxedo service in my local service,and the remote
service need to be authenticated when use tpinit. when i use tpinit in
my
service,it will be error, i think maybe the application does not know
which
tuxedo service i will call(local or remote),so,it may think my tpinit
was
for my local service,then some error here.
what shall i do when call a remote service which need to be authenticated
at
tpinit???
fish -
Calling Remote Stored Procedure from Pocket PC
Hi all,
I have finished building an application based on IBM's SMF framework which conforms to the OSGI standards. Currently, I am having a problem with connecting to the main server DB which resides on a Websphere server. Basically, user will enter information on their pocket pc and then save it to a local DB2e database. I thought about going with the synchronization solution with the DB2 Sync server, but really all the user is trying to do is updating records in the main server database tables and there's really no need to sync anything back from the server to the pocket pc. So, I m thinking maybe I should try to invoke a stored procedure that resides on the main DB server from my device, passing in parameters through a WLAN connection.
My question now is:
1. user should be connecting through a WLAN connection and my company have set up a login that prompts the user to login everytime they try to access anything on the server. It won't be nice if the user will hv to do that every single time. Is there a way that I can log the user in programmatically so they do not have to do it with a separate log in window?
2. Is calling a remote stored procedure a bad idea?
3. If the network goes down, then there's no way the users can update anything to the main server DB. So, the changes will be saved locally and once the network goes back up, the user should be able to update those changes back to the server. I am just wondering if it's bad to do a loop and send those updates to the server by calling the stored procedures repeatedly passing in diff. parameters? what safeguards do I need to put in? like what exceptions should I expect to catch? also, I would like to be able to track those updates that failed, how do I do that?
Any help will be appreciated. I tried to find resources online, but to no avail. I am not sure if I am overly complicated things. Please advice! Thanks alot everyone!The error message is:
ORA-04067: not executed, stored procedure "schema.P$PROC@remote_db" does not exist -
Calling a remote bean from JCAPS 5.1.3 JCD
Hi all,
we have JCAPS 5.1.3.
From a JCD we want to call a remote bean that is running on a Glassfish domain.
Do call the remote bean from a NetBeans project (as a standalone client) I know you have to put the "org.omg.CORBA.ORBInitialHost" and "org.omg.CORBA.ORBInitialPort" in the InitialContext together with the factory. Doing this it works from NetBeans 6.5.1. So we know that our remote beans are accessible and working.
Doing the same it wont wrok from a JCAPS 5.1.3 JCD. I receive the message that the remote bean cant be found. I know for sure I have configured the ORBInitalHost and Port the same as in NetBeans. It looks like that JCAPS 5.1.3 may use some other InitialContext settings.
My questions are:
- which settings I have to put into the InitialContext (in the JCD code or in a local JCAPS 5.1.3 JNDI resource)?
- which jar files I have to use in JCAPS 5.1.3? The jar files from the remote Glassfish application server or from JCAPS 5.1.3 ( the jars like "appserv-rt.jar")
- any other thing I have to be aware of?
Thanks in advance.
Madere.Hi all,
we have JCAPS 5.1.3.
From a JCD we want to call a remote bean that is running on a Glassfish domain.
Do call the remote bean from a NetBeans project (as a standalone client) I know you have to put the "org.omg.CORBA.ORBInitialHost" and "org.omg.CORBA.ORBInitialPort" in the InitialContext together with the factory. Doing this it works from NetBeans 6.5.1. So we know that our remote beans are accessible and working.
Doing the same it wont wrok from a JCAPS 5.1.3 JCD. I receive the message that the remote bean cant be found. I know for sure I have configured the ORBInitalHost and Port the same as in NetBeans. It looks like that JCAPS 5.1.3 may use some other InitialContext settings.
My questions are:
- which settings I have to put into the InitialContext (in the JCD code or in a local JCAPS 5.1.3 JNDI resource)?
- which jar files I have to use in JCAPS 5.1.3? The jar files from the remote Glassfish application server or from JCAPS 5.1.3 ( the jars like "appserv-rt.jar")
- any other thing I have to be aware of?
Thanks in advance.
Madere. -
Testing a "Receiver SOAP Adapter" - Calling a remote webservice from PI
Hi ,
I am trying to call a remote webservice from PI 7.0.
The WSDL file is successfully imported to PI to create the required message types.
The "receiver SOAP adapter" is configured as the communication channel.
I would like to know the ways of testing the remote webservice from PI 7.0.
Thank you,
PandaHello there!
I think this link should help you
https://help.sap.com/saphelp_nwpi71/helpdata/en/46/793034608c0ad3e10000000a11466f/frameset.htm
Thanks and regards,
Caio Cagnani -
ORA-06553: PLS-908 when calling 10g remote procedure from 11g database
Hi,
I have 2 instances: 11g (11.1.0.7) and 10g (10.2.0.4). When I try to call 10g (remote) procedure from 11g database, there is errors:
ORA-04052: error occurred when looking up remote object CUSTOMER.PRL_PK2_GENERAL@CUSTOMER_LINK
ORA-06541: PL/SQL: compilation error - compilation aborted
ORA-06553: PLS-908: The stored format ofCUSTOMER.PRL_PK2_GENERAL@CUSTOMER_LINK is not supported...
But, if I call the same procedure from another 10g instance, it's OK.
How can I fix the problem?
Thx,
qtphamAs you can see ,it seems like the workaround that was mentioned there is currently the only way to remove this ORA.
Workaround: Remove the function call(s) from the called subroutine's
package's spec. -
Calling remote machine servlet from applet
I got an error when I calling a remote machines servlet. I am calling from applet which is downladed by pluggin.
can any body tell me what is the reason the applet is not calling this servlet ?
what do i do to solve this problem ?
DineshDinesh
Enable the Java console (Control Panel, Java Plug-In, Basic, Show Java Console, Apply)
The error message might give you some help.
Regards -
Calling a remote webservice from within a webservice
I am not sure what I need to do to be able to call a remote webservice (runs on
another weblogic server instance running on another machine in the same network)
from within a webservice. I have 2 wsdl files and I have created webservice controls
from them. I have successfully written code in the first webservice to instantiate
the parms to the 2nd webservice and invoked the 2nd webservice when both webservices
are deployed to the same weblogic server instance. So i can see the params being
marshalled and unmarshalled in the test browser.
Now how do I install the 2nd webservice on another weblogic server instance and
instruct the 1st web service to call the 2nd webservice residing on another weblogic
server instance? I presume some kind of lookup (url?) is needed and is it via
what is contained in the wsdl file?
Thanks in advance,
Stephen KurlowHi Stephen,
Using a registry, for example UDDI [1], would be one solution. WLS has
a complete UDDI implementation builtin [2] for this purpose.
You are correct, you need to pass the service address location found in
the <service> section of the WSDL.
Hope this helps,
Bruce
[1]
http://www.uddi.org/
[2]
http://e-docs.bea.com/wls/docs81/webserv/uddi.html
Stephen Kurlow wrote:
>
I am not sure what I need to do to be able to call a remote webservice (runs on
another weblogic server instance running on another machine in the same network)
from within a webservice. I have 2 wsdl files and I have created webservice controls
from them. I have successfully written code in the first webservice to instantiate
the parms to the 2nd webservice and invoked the 2nd webservice when both webservices
are deployed to the same weblogic server instance. So i can see the params being
marshalled and unmarshalled in the test browser.
Now how do I install the 2nd webservice on another weblogic server instance and
instruct the 1st web service to call the 2nd webservice residing on another weblogic
server instance? I presume some kind of lookup (url?) is needed and is it via
what is contained in the wsdl file?
Thanks in advance,
Stephen Kurlow -
Copying file from a local computer into mapped LAN share.
I tried to copy a file from a local computer into a Z: disc (a LAN share). I tried to use every method i found on the internet. Using io, nio.. nothing works. It works well on the local computer, but not through LAN. It says that there is not enough of system resources to go on (i'm talking about big files.. more than 200mb... small files are accepted).
Hi,
Flash itself has no filewriting capabilities other then the
SharedObject
stuff.
But why can't you call a php script? You could install
apache, PHP and
MYSQL on the computer running the Flash app and get it all
into the
database in one go.
Otherwise you either need to get going with AIR (Adobe
Integrated
Runtime), or use a wrapper application like Adobe Director
(which has
tons of ways to write to file through it's plethora of
Xtras.) Director
may be 'a bit' hard on your budget if you only use it for
this purpose
though.
The XMLSocket is for connections to some server, local or
remote, not to
a file.
Manno
graphic_pawn wrote:
> First, I'm using Flash CS3, and Actionscript3.
>
> I'm trying to set up a data collection form that will
save the results to a
> file that can later be imported into a database. This is
going to be in a Kiosk
> at a tradeshow and it won't have internet access, so I
can't send it to an
> online PHP or ASP, etc, script.
>
> The form also has several screens, so i thought I'd try
to use the Form
> Application (I know I can only have one frame on the
timeline when using this
> flash template with the data components). I want to try
and write the data to a
> XML file. All the information I've found is for
importing data from an XML file
> to a web server rather than sending data to an XML file
on a local computer.
>
> I'm trying to use the XML connector,and an XML file that
resides in the same
> folder as my Flash file, but so far I've had very little
luck writing to that
> XML file. Do I need to set up a dataset to send the form
data to that will then
> send the data to an XML Connector component that will
then send the data to the
> XML file. Should I use LoadVars instead, and if I do,
will I have to write to a
> script, or can it also write to an XML file.
>
> If any one has a better idea to do this, please let me
know.
>
> Thanks.
>
Manno Bult
http://www.aloft.nl -
Rebind invoked from non-local host (AccessException)
Hi all,
I have a simple RMI setup where a client class asks for a new object from a server class, however, I use this call to create the new object on the server and then attempt to register it with the rmiregistry before passing the remote reference back (ie UnicastRemoteObject). This is because I want the client to access a new remote object on the server (the new object may not be serializable).
The problem is after I tried it with a remote machine, I got an AccessException, Registry.rebind disallowed. This seems to be because you can't get a client (non-local) to affect the registry for security. Fair enough. Although I thought becuase it is a method on the server which does the actual object creation and registration that it IS local and it would work...
any comments...?
is there a way around this...?
Thanks in advance,
TobyHi...You can rebind a object only from the local machine...RMI does not allow remote binding of the objects because of security reasons and whenever you try to do so you get an Access Exception.
Hope this Helps. -
Flash Remoting not working from browser
Quick Problem:
I have a movie that connects and displays the data fine when
run by testing
the movie from within flash its fine however as soon as i try
to run it from
the html or by IIS link to the swf, or even by browsing to
the swf via file
manager it fails to connect.
Any ideas why?
Thanks,
Koop.
Full Description:
My code was connecting fine before or at least i think it
was.
Does anyone have a basic fla that works for them using the
methods below
that i could test on my machine?
the connection code is as follows:
code =============
import mx.remoting.*;
function Result()
//receives data returned from the method
this.onResult = function(result)
trace("Data received from server : " + result +
result.items.length + "
items were received" );
//this is where we put the data in the text field
for (i=0;i<results.items.length;i++){
dataField.text = dataField.text + result.items.length;
dataField.text = dataField.text + result.items.length;
this.onStatus = function(error)
trace("Error : " + error.description);
dataField.text = "Error : " + error.description;
NetServices.setDefaultGatewayUrl("<mygatewayurl>");
var gw = NetServices.createGatewayConnection();
var server =
gw.getService("flashservices.gateway.interaction", new
Result());
server.getLatestNews();
end code ================
A few things have flagged in my mind, they may be way off
track however;
- Recent security changes in browsers (click here to
activate...)
- My wildcard import on the first line however i'm not sure
which
dependancies i specifically need to compile this project.
- cross domain security restrictions.. i am currently
connecting to a
service at a remote server from my local machine/IIS
what confuses me is that good ol' CTRL+ENTER works fine but
obviously fails
on any parameter calls such as loading
"newsitem.swf?theID=<variableID>"
which requires that it be run via a webserver.
Any help would be appreciated.
Koop.I had a similar prob and found it was caused by recent
security changes
to the flash player.
I was using "127.0.0.1" as the address to my gateway but it
was being
ignored because it didnt match as being the same host which
was being
evaluated as "localhost". So I found that changing the
gateway address
to "localhost" fixed it!
Solution: on your server (local or remote), put a file
"crossdomain.xml"
in the webserver's root and fiddle with its contents so it
contains all
the possible varieties of the domains you want to allow
access from.
e.g.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="
http://www.yourdomain.co.uk"
/>
<allow-access-from domain="www.yourdomain.co.uk" />
<allow-access-from domain="yourdomain.co.uk" />
</cross-domain-policy>
That (I think) will solve your problem.
Joe
Koop wrote:
> Quick Problem:
>
> I have a movie that connects and displays the data fine
when run by testing
> the movie from within flash its fine however as soon as
i try to run it from
> the html or by IIS link to the swf, or even by browsing
to the swf via file
> manager it fails to connect.
>
> Any ideas why?
>
>
> Thanks,
> Koop.
>
>
>
>
>
> Full Description:
>
> My code was connecting fine before or at least i think
it was.
> Does anyone have a basic fla that works for them using
the methods below
> that i could test on my machine?
>
> the connection code is as follows:
>
>
> code =============
> import mx.remoting.*;
>
> function Result()
> {
> //receives data returned from the method
> this.onResult = function(result)
> {
> trace("Data received from server : " + result +
result.items.length + "
> items were received" );
> //this is where we put the data in the text field
> for (i=0;i<results.items.length;i++){
>
> dataField.text = dataField.text + result.items.length;
> }
> dataField.text = dataField.text + result.items.length;
> }
>
> this.onStatus = function(error)
> {
> trace("Error : " + error.description);
> dataField.text = "Error : " + error.description;
> }
> }
>
>
NetServices.setDefaultGatewayUrl("<mygatewayurl>");
> var gw = NetServices.createGatewayConnection();
> var server =
gw.getService("flashservices.gateway.interaction", new
> Result());
> server.getLatestNews();
>
> end code ================
>
> A few things have flagged in my mind, they may be way
off track however;
> - Recent security changes in browsers (click here to
activate...)
> - My wildcard import on the first line however i'm not
sure which
> dependancies i specifically need to compile this
project.
> - cross domain security restrictions.. i am currently
connecting to a
> service at a remote server from my local machine/IIS
>
> what confuses me is that good ol' CTRL+ENTER works fine
but obviously fails
> on any parameter calls such as loading
"newsitem.swf?theID=<variableID>"
> which requires that it be run via a webserver.
>
> Any help would be appreciated.
> Koop.
>
>
Maybe you are looking for
-
Callout tool using the adobe ipad app?
I mark up architectural drawings using Adobe Reader and use the callout tool a lot. But it appears this callout tool is not on the ipad app? Perhaps I am not seeing it. Does anyone know if there is the callout tool on the app? I understand that I co
-
When I installed my FCE 4 onto my PowerBook G4 last year, everything worked fine. I successfully edited a project over a six month period. After not using my Powerbook for a few months, I went back to it to edit something else and I now get an error
-
Firefox kept trying to update v. 3.5.?.?, usually failing. So, I went to the website, then downloaded and installed v. 4. But, when I restart my computer, it reverts back to the old version, loses bookmarks added while using v. 4, and again tries to
-
Question: Download from Adobe Site - Error Msg says copy appears to be counterfeit
Why am I getting an error message and unable to download a copy of Abobe Presenter 8 that I purchased from Adobe.com?
-
Hi Experts, Is sapcontrol alternative of startsap/stopsap? for which conditions sapcontrol -nr <> -function commands can be effectively used? Is it possible to start database with sapcontrol command? Thanks in advance