(Servlet/JSP based): How to secure calling of one apps from another
I am having two different web application(Servlet/JSP based) on two different servers. For example,
AppsA is on '*http://IP1:PORT1:AppsA*' and AppsB is on '*http://IP2:PORT2:AppsB*'
I am sending a request from AppsA to AppsB for the PDF (ONLY THIS, No more interaction). Which is working fine. But the URL of AppsB i.e. 'http://IP2:PORT2:AppsB' appears in the browser.
But i don't want to show the interaction of AppsB. I have tried to FORWARD the request to AppsB but it only allows relative path.
So how can i make it secured..?
Thanks.
Now it's secured...
Thanks BalusC
--Kunal Dav
Similar Messages
-
How to refresh components of one jsf from another jsf (partialTriggers)
This thread begins here:
How to refresh components of one jsf from another jsf (partialTriggers)
My apologies for post in other forum and thanks Frank for reply.
I found a solution before read your post. I'm newbie and I ignore the use of colons. So, for do the problem that I explain in my post I must to change this code:
public backing_home () {
content = new RichPanelGroupLayout();
content.setRendered (true);
String[] partialTriggers = {"menu:menuItem1", "menu:menuItem2", "menu:menuItem3", "menu:menuItem4"}; //All id's of menuItems of the menuBar in menu.jsp
this.content.setPartialTriggers(partialTriggers);
Note that now I don't pass the item ID only. I add "menu:" before the ID. This allows to acces to name container ('menu' is de ID of subview). And that's all. This works!!
Anyway, I test your propuse Frank. Thank you!
WesthWesth,
Yes this code appears to be correct. Was that your question?
--Ric -
How I can call controller's functions from another component?
Hi again!
I make a few web Dynpro components, for example first for user-data processing, second - for project-data processing. In the controller of 1-st controller there is a function getUserById(). In the controller of 2-nd component I need such function. And I don't want to make a dublicate for this function in the controller of 2-nd component. Is there a way to call function in one component from another?Hi,
Yes, you can reuse the component. There are two basic types of component communication. 1. Intra Component communication 2.Inter Component communication.
1. Intra Component communication: The two components must be in same DC(project).
Procedure:Say there are C1,C2 components in a DC.
Open C2, Open interface controller, create a similar (_parameters and return type_) method to the method C2. Call C2's method in this Interface method.
Open C1, select and right click Used Web Dynpro Components -> Add Used Component. In the wizard, you can browse and select the C2 component,and enter a name to the usage. Then the usage of the interface <b>must </b>be added in properties required controllers of a view/component controller.
Now we can use the method that is available in the C1 interface controller.
You must define method before declaring usage
<b>2.Inter Component communication:</b> The two components are in different DCs
Open DC metadata of C2. Right click on Public part-> create new Public Part.Enter name-> Next -> Select entity type as Web Dynpro Component in wizard,in Select Entities select the component ,Finish.
A structure for public part is created.
Open C1, Open DC metadata of C1. Right click on Used Dcs-> AddUsed DC. Browse to C2's public part.
Select Finish.
regards,
Siva
Edited by: Siva Rama Krushna on Dec 19, 2007 10:07 AM -
How to defer constraint of one schema from another schema
Hi All,
I am having a requirement of migrating data from one schema(SCHEMA_A) to another schema(SCHEMA_B). So I tried to implement the same using PL/SQL.
Because of foreign key contraint while migrating child table, Oracle throws an error message like parent key not available.
So I tried to set the all contraints to deferred and after completion of migration i planned to set all the contraints to immediate.
But Here I am executing the procedure from schema(SCHEMA_C) which has rights to access SCHEMA_A and SCHEMA_B.
How could I able to defer all the constraint in SCHEMA_B from SCHEMA_C?
Thanks in Advance,
Antany.Yes,
You could run something like this, for foreign keys:
BEGIN
FOR cur_rec IN (SELECT table_name, constraint_name FROM DBA_CONSTRAINTS WHERE OWNER = <owner> AND CONSTRAINT_TYPE = 'R' )
LOOP
EXECUTE IMMEDIATE 'ALTER TABLE <owner>.' || cur_rec.table_name || ' DISABLE CONSTRAINT ' || cur_rec.constraint_name;
END LOOP;
END;
/ -
How do I transfer only one app from my old 3GS to my new 4S?
I've already sync'd my old 3GS iPhone with iTunes and then sync'd my new iPhone 4S with iTunes, so all my old stuff transferred to my new iPhone. Now I want the old version of a certain app (Sleep Cycle) that's on my old phone. I do not like the new version of Sleep Cycle.
Is it possible to just transfer that app from old phone to new phone?
I tried plugging my old phone into my computer (Dell desktop), chose do not automatically sync, went to devices, apps, and unchecked all apps except Sleep Cycle. When I then clicked "apply," I got a warning that all my apps except Sleep Cycle were going to be deleted. I don't want to delete them.
Any help is greatly appreciated.Delete the app from your phone by tapping and holding the app icon until it wiggles, tap the black "X", then tap the home button. Now sync the phone with iTunes, leaving all the apps checked that you want on your phone, including Sleep Cycle. (Any that are unchecked will be deleted.) If you have apps on your phone that are not in your iTunes library, first right-click on the name of your phone on the left side of iTunes and choose Transfer Purchases, then go back and check all the apps you want on your phone and sync.
-
How to rename AW of one schema from another schema?
Hi Folks,
I am trying to rename an Analytical workspace which is in Schema1 from the SYSTEM schema as given below but getting the error "ORA-03001: unimplemented feature"
Enter user-name: system
Enter password:
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> alter session set current_schema = Schema1 ;
Session altered.
SQL> execute dbms_aw.aw_rename('AWNAME','AWNAME_BKP');
BEGIN dbms_aw.aw_rename('AWNAME','AWNAME_BKP'); END;
ERROR at line 1:
ORA-03001: unimplemented feature
ORA-06512: at "SYS.DBMS_AW", line 1050
ORA-06512: at "SYS.DBMS_AW", line 1073
ORA-06512: at line 1Any solutions for this?
Thanks,
PrabhuWesth,
Yes this code appears to be correct. Was that your question?
--Ric -
Call an Startup-Plug from another WDA
Hello.
How can I call a Startup-Plug from another WDApplication with a table-Parameters.
I get the URL from the Method cl_wd_utilities=>constuct_wd_url.
thanks for helping
Edited by: Marcus Ventur on Dec 2, 2008 11:33 AMHi,
Try to start your secondary application with a URL Parameter,
then fire any plug you want by checking the parameter,
hope it helps,
regards -
How to call a rtf template from another rtf template by passing a value
Hi Gurus,
Its about calling a rtf template from another rtf template by passing a value.
My requirement is like:
I got a quote report from Siebel, based on the product PartNumber I need to pull product description or literature from another database database.
My approach is something like; get a partnumber from quote report pass it to another rtf template which uses the partnumber and get the data from table using DataSource. When user pull a quote report from siebel this new rtf template should attach to the quote at the end.
I've gone through all available blogs about sub-reports and white papers from Oracle they are not much helpful since I need step-by-step.
http://www.adivaconsulting.com/adiva-blog/item/36-working-with-rtf-sub-templates.html
bip-subtemplate-1-132933.pdf
I'm using 10g obiee integrated with Siebel.
Just started learning BIP.
Thanks in advance.
Edited by: 911927 on Apr 2, 2013 8:56 AM
Edited by: 911927 on Apr 2, 2013 8:57 AMHow to call a rtf template from another rtf template by passing a value try in main template create hyperlink of url with parameters for another template
http://bipconsulting.blogspot.ru/2010/02/drill-down-to-detail-or-another-report.html
When user pull a quote report from siebel this new rtf template should attach to the quote at the end.it'll be only another report
IMHO you can not attach it to main. it'll be second independent report
you can try subtemplate but it's not about rtf from rtf by click
it's about call automatically rtf subtemplate from main rtf based on some conditions
for example, main template contain some data and if some condition is true then call subtemplate and place it instead of its condition -
How do I unlink my Apple ID from another persons I tunes account? I keep getting their security questions and one of my emails can't be used. It keeps telling me I its linked to another account but it shouldn't anymore. Plus my security questions belong to the other person and it has no reset option
depend on the version of itunes and if it's OS X or windows i suppose
in itunes on ny computer in the upper right corner left of the search bar there is a circle with a black siloet and my name beside it
if I click on the v beside it I can a menu with logout as an option -
How to Call one EJB from another
Hi all
I am trying to call one EJB in one system from another EJB residing on diferent system...
Both are Stateless session beans ...
I can't use No-args Intialcontext() as i need to specify the Ip address of other system to be looked up.....
So i am using properties Dorg.omg.CORBA.ORBInitlalHost....
But its not looking up..Its telling not bound...But i called it from standalone client remotely...
Am i wrong..?
I hope I am in right path....
I hope ill get reply as fast as possible...
Gopal VHi ken Thanks for replying....
Ya i packed it as a jar (using Export tool in Eclipse3.2)....
I am using SUN AS 9.....
I packed bean1 and bean2 as two different jars in the same domain...
Here is my code...
Bean1:
@Stateless(mappedName="ejb/Second")
public class SecondIMPL implements SecondRemote {
public FirstRemote obj;
public String connect() {
try{
InitialContext ctx= new InitialContext();
FirstRemote obj =(FirstRemote)ctx.lookup("ejb/First");
System.out.println("Client :"+obj.bMethod());
}catch(Exception e){
e.printStackTrace();
return "Check server Log";
}Bean2 :
@Stateless(mappedName="ejb/First")
public class FirstIMPL implements FirstRemote {
public String bMethod() {
return "From First Bean";
Client:
public static void main(String[] args) {
try{
InitialContext ctx= new InitialContext();
SecondRemote obj =(SecondRemote)ctx.lookup("ejb/Second");
System.out.println("Client :"+obj.connect());
}catch(Exception e){
e.printStackTrace();
Here is my Stack Trace...
[#|2007-05-24T18:35:17.214+0530|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=18;_ThreadName=p: thread-pool-1; w: 19;_RequestID=bb4848e7-829a-421d-a560-93659898eb02;|
javax.naming.NamingException: ejb ref resolution error for remote business interfacecom.SecondRemote[Root exception is java.lang.ClassNotFoundException: com.SecondRemote]
at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:350)
at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:61)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:314)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.FirstBean.rediff(FirstBean.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:110)
at $Proxy36.rediff(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)
Caused by: java.lang.ClassNotFoundException: com.Second
at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:701)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:614)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.sun.ejb.EJBUtils.getBusinessIntfClassLoader(EJBUtils.java:568)
at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:320)
... 31 more
|#] -
How to call one .SWF from another?
How do I call one .SWF from another. I built a very beefy
base .SWF, and want to add music overlay, and an intro slide show
to the exsting Flash animation, but put it in a second .FLA/.SWF
file. How do I call one from the other?
This will be embedded in an HTML file but I assume this is
superfluous to my question.
F.Z.I think you should open that Another SWF (FLA),
and add some actionscript..
For example, you could create a movie clip, and write
actionscript in the
first keyframe:
loadMovie("
http://www.somewebpage.com/movie.swf",
this);
"FredZimmerman" <[email protected]> wrote in
message
news:ftnjas$mj5$[email protected]..
> How do I call one .SWF from another. I built a very
beefy base .SWF, and
> want
> to add music overlay, and an intro slide show to the
exsting Flash
> animation,
> but put it in a second .FLA/.SWF file. How do I call one
from the other?
>
> This will be embedded in an HTML file but I assume this
is superfluous to
> my
> question.
>
> F.Z.
> -
How can I call a java class from within my program?
I was wondering if there's a platform independent way to call a java class from my program.
Here's my scenario. I'm working on a platform independent, feature rich, object-oriented command prompt program. The way I'm designing it is that users can drop classes they write into my bin directory and gain access to the class through my program. For example, they drop a class named Network.class in the bin directory. They would type Network network at my command prompt and gain access to all the methods available in that class. They can then type system.echo network.ipaddress() at my prompt and get the system's ip address. I have it designed that there's a server running in the background and the clients connect to my port. Once connected the end-user can enter their user name and password and gain access to the system. When they type a command they actually call another java program which connects to my server using a seperate thread. They can then communicate back and forth. I have it set that everything has a process id and it's used to keep track of who called what program. Once the program is done it disconnects and closes. Rather than getting into the nitty gritty (I didn't want to get into heavy detail, I know how everything will work) I'm really interested in finding out how I can call a java program from my program. I don't want it to be part of the app in any way.
-
How can I call a plsql function from an attribute?
I have an attribute defined in an element. I want execute a PLSQL function from the attribute, and display the returne value with an HTML template.
I've defined the attribute's type like PLSQL, and I've put the called of the function in the value of the attribute, but it doesn't work. The only value I obtain is an URL (I think that is the URL of the function or someting like this).
How can I call to my function from the attribute and display the returnes value in the page?
Thanks.Thanks, but it doesn't work. I have an attribute called ID_BOL and I want to associate a sequence to that attribute. I've created a function, with the sequence. This function return de value of the sequence. I want taht the attribute takes the value of the sequenece dinamically.
I've tried it, creating the type attribute like PLSQL, and calling the function from the attribute, but it doesn't work.
How can I return the sequence value to my attribute?
Thanks. -
Can any one tell me how can i call a shell script from pl/sql
i like to call shell script from pl/sql procedure.
can any one suggest how can i do thisHave you not mastered in asking the same kind of question ?
First do write a script...
no one will spoon feed you.
How can i call a shell script from procedure
How to call Shell Script from pl/sql block
-Sk -
How can i call a shell script from procedure
I have a shell script.now i am i a situation to call that shell script from one of my procedures and need to get a value from that script.
can u suggest me that how can a call the shell script from pl/sql?Is the same question you asked here
How to call Shell Script from pl/sql block
-SK
Maybe you are looking for
-
How to use open data set in SAP
Hi SAP Gurus, Could anyone help, how to use open data set in SAP. I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL). Thanks & Regards, Krishnau2026
-
Am installing voice plug in ..for calling google telephone
-
Hello world, am I the only one with this problem? I just purchased and installed Tiger 10.4.3. (Yes, I'm an idiot.) Well, Final Cut Express 2.0.3 -- which ran so well with Panther -- is now useless with Tiger. I also just downloaded and installed the
-
I try to configure ipf to block incoming connections to port 111. Unfortunately I am not able to complete this task. To begin with I tried to block any traffic at all. Here are my settings: bash-3.00# svcs -l pfil fmri svc:/network/pfil:defau
-
Activation date almost passed, no dial tone or bro...
Hi. After waiting a month for an engineer appointment, I woke up this morning to a text from BT saying that it turns out I didnt need an engineer, my phone line and broadband were activated and I could start using them immediately. My order status on