Backup/Recovery from web application

Hello guys,
I am using Oracle 9i as DB and Oracle 9iAS for web application server. I want to provide Backup and Recovery functionality to the user via web. I don't know any thing in this regard.
Is it possible that we can take backup and recovery from web application?
Is there any alternative for this function.
any other comments will be appreciated.
Thank you,
Jawed Nazar Ali

Read this article in order to get an idea about Java Stored Procedures.
Oracle Developer JAVA STORED PROCEDURES
Simplify with Java Stored Procedures
By Kuassi Mensah
Use Java stored procedures to bridge SQL, XML, Java, and J2EE and Web Services.
Stored procedures allow a clean separation of persistence logic that runs in the database tier from business logic that runs in the middle tier. This separation reduces overall application complexity and increases reuse, security, performance, and scalability.
A major obstacle, however, for widespread adoption of stored procedures is the set of various proprietary, database-dependent implementation languages that different database vendors use. The use of Java-based stored procedures fixes this concern. Oracle has implemented ANSI standards that specify the ability to invoke static Java methods from SQL as procedures or functions. This implementation is called simply "Java stored procedures."
In this article, you will learn how Java stored procedures help simplify and increase the performance of your business logic and extend database functionality. I'll show how Oracle enables the use of Java stored procedures within the database. I'll also look at how Java stored procedures access data, and show how to create a basic Java stored procedure.
PL/SQL or Java
When you think of Oracle stored procedures, you probably think of PL/SQL. Oracle, however, has provided Java support in the database since Oracle8i, to offer an open and portable alternative to PL/SQL for stored procedures. I can hear the $64,000 question: "How do I choose between PL/SQL and Java? Should I forget all the things I've been told about PL/SQL and move on to the greener Java pastures?"
Both languages are suitable for database programming, and each has its strengths and weaknesses. In deciding which language to use, here's a general rule of thumb:
Use PL/SQL for database-centric logic that requires seamless integration with SQL and therefore complete access to database objects, types, and features.
Use Java as an open alternative to PL/SQL for database independence, but also for integrating and bridging the worlds of SQL, XML, J2EE, and Web services.
OracleJVM Lets You Run Java within the Database
Since Oracle8i, Release 1 (Oracle 8.1.5), Oracle has offered a tightly integrated Java virtual machine (JVM) that supports Oracle's database session architecture. Any database session may activate a virtually dedicated JVM during the first Java code invocation; subsequent users then benefit from this already Java-enabled session. In reality, all sessions share the same JVM code and statics—only private states are kept and garbage collected in an individual session space, to provide Java sessions the same session isolation and data integrity capabilities as SQL operations. There is no need for a separate Java-enabled process for data integrity. This session-based architecture provides a small memory footprint and gives OracleJVM the same linear SMP scalability as the Oracle database.
Creating Java Stored Procedures
There are a few steps involved in turning a Java method into a Java stored procedure. These include loading the Java class into the database using the loadjava utility, and publishing the Java methods using a call specification (Call Spec) to map Java methods, parameter types, and return types to their SQL counterparts. The following section shows how to do this.
I'll use a simple Hello class, with one method, Hello.world(), that returns the string "Hello world":
public class Hello
public static String world ()
return "Hello world";
The Loadjava Utility
Loadjava is a utility for loading Java source files, Java class files, and Java resource files; verifying bytecodes; and deploying Java classes and JAR files into the database. It is invoked either from the command line or through the loadjava() method contained within the DBMS_JAVA class. To load our Hello.class example, type:
loadjava -user scott/tiger Hello.class
As of Oracle9i Release 2, loadjava allows you to automatically publish Java classes as stored procedures by creating the corresponding Call Specs for methods contained in the processed classes. Oracle provides Oracle9i JDeveloper for developing, testing, debugging, and deploying Java stored procedures.
The Resolver Spec
The JDK-based JVM looks for and resolves class references within the directories listed in the CLASSPATH. Because Oracle database classes live in the database schema, the OracleJVM uses a database resolver to look for and resolve class references through the schemas listed in the Resolver Spec. Unlike the CLASSPATH, which applies to all classes, the Resolver Spec is applied on a per-class basis. The default resolver looks for classes first in the schema in which the class is loaded and then for classes with public synonyms.
loadjava -resolve <myclass>
You may need to specify different resolvers, and you can force resolution to occur when you use loadjava, to determine at deployment time any problems that may occur later at runtime.
loadjava -resolve -resolver "((* SCOTT) (foo/bar/* OTHERS)
(* PUBLIC))"
Call Spec and Stored Procedures Invocation
To invoke a Java method from SQL (as well as from PL/SQL and JDBC), you must first publish the public static method through a Call Spec, which defines for SQL the arguments the method takes and the SQL types it returns.
In our example, we'll use SQL*Plus to connect to the database and define a top-level Call Spec for Hello.world():
SQL> connect scott/tiger
SQL> create or replace function helloworld return
VARCHAR2 as language java name 'Hello.world () return
java.lang.String';
Function created.
You can then invoke the Java stored procedure as shown below:
SQL> variable myString varchar2[20];
SQL> call helloworld() into :myString;
Call completed.
SQL> print myString;
MYSTRING
Hello world
Java stored procedures are callable, through their Call Spec, from SQL DML statements (INSERT, UPDATE, DELETE, SELECT, CALL, EXPLAIN PLAN, LOCK TABLE, and MERGE), PL/SQL blocks, subprograms, and packages, as well as database triggers. The beauty of Call Spec is that stored procedure implementations can change over time from PL/SQL to Java or vice versa, transparently to the requesters.
Call Spec abstracts the call interface from the implementation language (PL/SQL or Java) and therefore enables sharing business logic between legacy applications and newer Java/J2EE-based applications. At times, however, when invoking a database-resident Java class from a Java client, you may not want to go through the PL/SQL wrapper. In a future release, Oracle plans to provide a mechanism that will allow developers to bypass the Call Spec.
Advanced Data-Access Control
Java stored procedures can be used to control and restrict access to Oracle data by allowing users to manipulate the data only through stored procedures that execute under their invoker's privileges while denying access to the table itself. For example, you can disable updates during certain hours or give managers the ability to query salary data but not update it, or log all access and notify a security service.
Sharing Data Logic Between Legacy and J2EE Applications
Because legacy applications and J2EE applications both invoke stored procedures through the Call Spec, the same data logic can be shared between J2EE and non-J2EE worlds. Thanks to Call Spec, this data logic can be shared regardless of the implementation language used (whether PL/SQL or Java).
Autogeneration of Primary Keys for BMP Entity Beans
When using BMP for EJB entity beans, a bean instance can be uniquely identified by the auto-generated primary key associated with the newly inserted data as a return value for ejbCreate(). You can retrieve this value within ejbCreate() in one database operation by using a stored procedure that inserts the corresponding data and retrieves or computes the primary key. Alternatively, you could insert the data and retrieve the corresponding key (or ROWID) in one SQL statement, using the RETURN_GENERATED_KEYS feature in JDBC 3.0. However, the stored procedure approach is more portable across JDBC driver versions and databases.
You can implement this pattern with these three steps:
Create the Java stored procedure, defining a public static Java method insertAccount() within a public GenPK class. This method will insert data, compute a unique key (by passing out a sequence number), and return the computed key as primary key.
Define the Call Spec.
CREATE OR REPLACE PROCEDURE insertAccount(owner IN
varchar, bal IN number, newid OUT number)
AS LANGUAGE JAVA NAME 'GenPK.insertAccount(
java.lang.String [])';
Invoke the stored procedure within ejbCreate().
Public AccountPK ejbCreate(String ownerName, int balance) throws CreateException
try {
CallableStatement call = conn.prepareCall{
"{call insertAccount(?, ?, ?)}"};          
return new AccountPK(accountID);
Custom Primary Key Finders for CMP Entity Beans
Finder methods are used for retrieving existing EJB entity bean instances. Primary key finders allow you to retrieve a uniquely identified EJB instance. For CMP entity beans, the EJB container automatically generates the primary key finder findByPrimaryKey() method, based on declarative description. In some situations, however, you might need more control; for example, you may need a specialized finder such as findByStoredProcKey(). In these situations, you can use Java stored procedures in conjunction with an object relational framework (such as Oracle9i Application Server [Oracle9iAS] TopLink) to implement a custom primary key finder method. After you define the EJB finder as a REDIRECT or NAMED finder, TopLink will generate the SQL query for retrieving the bean instance.
Data-Driven EJB Invocation
In a data-driven architecture, business logic invocation can be triggered as a result of database operations (such as inserts, updates, or deletes). A Java stored procedure implementing the data logic can be declared as a database trigger to invoke EJBs running in a middle-tier J2EE application server. You can make EJB calls by using either standard remote method invocation (RMI) over Interoperable Inter-ORB Protocol (IIOP), using a J2EE 1.3 compatible server, or RMI over a vendor-specific transport protocol (such as ORMI with Oracle9iAS/OC4J or RMI over T3 with BEA WebLogic). Each application server vendor has its own optimized protocol while providing RMI over IIOP for interoperability. Oracle9iAS supports both RMI calls over IIOP and ORMI protocols.
Data-Driven Messaging
Oracle9i Database embeds Advanced Queuing (AQ), which is an integrated, persistent, reliable, secure, scalable, and transactional message-queuing framework. Oracle exposes AQ features to Java developers through the standard Java Messaging System (JMS) API. Java stored procedures can invoke AQ operations through the JMS interface to allow fast, intra-session, scalable, data-driven messaging.
Java stored procedures can use JMS to invoke AQ operations. You can implement this pattern in four steps:
Create and start the JMS Queue (to do so, embed the following operations within a SQL script):
execute dbms_aqadm.create_queue_table(queue_table =>
'queue1', queue_payload_type =>
'SYS.AQ$_JMS_TEXT_MESSAGE', comment => 'a test queue',
multiple_consumers => false, compatible => '8.1.0');
execute dbms_aqadm.create_queue( queue_name => 'queue1',
queue_table => 'queue1' );
execute dbms_aqadm.start_queue(queue_name => 'queue1');
Create the Java stored procedure (a code snippet is shown):
public static void runTest(String msgBody)
try
// get database connection
ora_drv = new OracleDriver();
db_conn = ora_drv.defaultConnection();
// setup sender (cf online code sample)
// create message
s_msg = s_session.createTextMessage(msgBody);
// send message
sender.send(s_msg);
s_session.commit();
// receive message
r_msg = (TextMessage) receiver.receive();
r_session.commit();
// output message text
String body = r_msg.getText();
System.out.println("message was '"+body+"'");
Create the Call Spec:
create or replace procedure jmsproc (t1 IN VARCHAR)
as language java name 'jmsSample.main (java.lang.String[])';
Invoke the stored procedure:
call jmsproc('hello');
Database-Assisted Web Publishing (Cache Invalidation)
One of the common issues application architects must face is how to cache database information reliably to increase overall system performance. JCACHE is an upcoming standard specification (JSR 107) that addresses this problem. It specifies an approach for temporary, in-memory caching of Java objects, including object creation, shared access, spooling, invalidation, and consistency across JVMs. It can be used to cache read-mostly data such as product catalogs and price lists within JSP. Using JCACHE, most queries will have response times an order of magnitude faster because of cached data (in-house testing showed response times about 15 times faster).
In order to track all the changes to the origin data and refresh the cached data, a Java stored procedure is attached to a table as a trigger. Any change to this table will result in the automatic invocation of this stored procedure, which in turn will call out a defined JSP to invalidate the JCACHE object that maps its state to the database table. Upon invalidation, the very next query will force the cache to be refreshed from the database. Next Steps
READ MORE about Java Stored Procedures
This article is adapted from the white paper "Unleash the Power of Java Stored Procedures." You can find the white paper at:
/tech/java/java_db/pdf/
OW_30820_JAVA_STORED_PROC_paper.PDF
New PL/SQL features in Oracle9i Database, Release 2
/tech/pl_sql/pdf/
Paper_30720_Doc.pdf
Resolver Spec
/docs/products/oracle9i/
doc_library/release2/java.920/a96659.pdf
OracleJVM and Java 2 Security
/docs/products/oracle9i/
doc_library/release2/java.920/a96656.pdf
DOWNLOAD Code
Exercise code examples from this article:
/sample_code/tech/
java/jsp/Oracle9iJSPSamples.html
LEARN about stored procedures as Web services
/tech/webservices
Extending Database Functionality
One of the great things about running Java code directly in the database is the ability to implement new functionality by simply loading the code or library and using the Call Spec to make the entry points (public static methods) available to SQL, PL/SQL, Java, J2EE, and non-Java APIs. Oracle9i Database customers can easily extend database functionality. Oracle itself leverages this capability for new utilities and packages such as the XML Developer Kits (XDKs).
Bridging SQL, PL/SQL, Java, J2EE, .NET, and XML
The Oracle XDK is written in Java and exposes its public methods as Java stored procedures, extending the database's XML programmability. SQL, PL/SQL, Java, J2EE, and non-Java (.NET) business logic all have access to the XML parser, the XSLT processor, the XPath engine, and XML SQL Utility (XSU).
The XML parser is accessible through the xmlparser and xmldom packages. XSU is a Java utility that generates an XML document from SQL queries or a JDBC ResultSet, and writes data from an XML document into a database table or view. Using XSU, XML output can be produced as Text, DOM trees, or DTDs. XSU is exposed to PL/SQL through the dbms_xmlquery and dbms_xmlsave packages.
Conclusion
The integration of the Oracle database with a Java VM enables the creation of portable, powerful, database-independent data logic and persistence logic. The loose coupling of business logic that runs in the middle tier with data logic that runs in the database tier improves application scalability, performance, flexibility, and maintenance.
Kuassi Mensah ([email protected]) is a product manager in the Server Technologies division at Oracle.
http://otn.oracle.com/oramag/oracle/03-jan/o13java.html
Joel Pérez

Similar Messages

  • Issue with receiving response from web application

    Hi,
    I have configured B2B with business protocol as 'Custom document document over Internet', document exchange protocol as AS2-1.1 and transport protocol HTTPS1.1 to invoke a web application deployed in Oracle Application server. B2B is able to invoke the web application with HTTPS request which contains an xml.
    I have set the acknowledgment mode as 'Sync' and 'Is acknowledgement handled by B2B' as true. But while receiving the response from web application which is an xml, B2B is showing the error as
    Description: Unable to identify the document protocol of the message
    StackTrace:
    Error -: AIP-50083: Document protocol identification error
         at oracle.tip.adapter.b2b.engine.Engine.identifyDocument(Engine.java:3244)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1665)
         at oracle.tip.adapter.b2b.msgproc.Request.postTransmit(Request.java:2382)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1825)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:974)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1166)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:833)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
         at java.lang.Thread.run(Thread.java:534)
    I have added headers as present in the wire message of the request. In B2B, it is showing the wire message for response as follows.
    TO_PARTY=XXX
    AS2-To=XXX
    DOCTYPE_NAME=TestAS2DT
    DOCTYPE_REVISION=1.0
    Date=Tue, 03 Nov 2009 06:09:22 GMT
    AS2-Version=1.1
    AS2-From=YYY
    Content-Transfer-Encoding=binary
    [email protected]
    ACTION_NAME=TestAS2_BA
    Content-Type=application/xml
    Server=Oracle-Application-Server-10g/10.1.3.4.0 Oracle-HTTP-Server
    MIME-version=1.0
    User-Agent=AS2 Server
    FROM_PARTY=YYY
    Content-Disposition=attachment; filename=1.0
    Connection=Keep-Alive
    From=YYY
    Keep-Alive=timeout=15, max=100
    <?xml version="1.0" encoding="UTF-8"?>
    <Books>
    <Book>
    <BookTitle>Ajax Hacks</BookTitle>
    <Author>Bruce W. Perry</Author>
    <PubDate>March 2006</PubDate>
    </Book>
    </Books>
    I am able to see the xml sent as response from web application in Payload as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <Books>
    <Book>
    <BookTitle>Ajax Hacks</BookTitle>
    <Author>Bruce W. Perry</Author>
    <PubDate>March 2006</PubDate>
    </Book>
    </Books>
    I am able to see the HTTP response in b2b_dc_transport.log. In transport log it is not showing any error. Please help me to fix this issue.

    Hi,
    Request and Response should be part of same agreement. I hope you are not confused between Acknowledgement and Response. Acknowledgement can be received in the same session (sync mode) but Response will always come in a different session and will be treated as a different document. If, for request, party A is initiator and B is responder then for response party B will be initiator and party A will be responder (as Requset and Response are two docs in case of Custom Document)
    For configuring X-Path, please refer section 8.3.11 Configuring the XPath Expression for a Custom XML Document at below link -
    http://download.oracle.com/docs/cd/B14099_19/integrate.1012/b19370/busact_coll.htm#sthref784
    Please let us know whether you are trying to receive a response or Ack?
    Regards,
    Anuj

  • Call an ABAP Program from Web Application designer

    Hi Gurus,
    I have an requirement in which I need to fetch an CSV file from the server and place the file into an internal table in R/3.I got the function module and wrote the program for this,but now I need to call this ABAP program from Web Application designer.
    To make it more explicit ,I need to call an ABAP Program /function module from the WAD.I am new to WAD Please help.
    Ankit

    Hi Ankit,
    take a look:
    /thread/725385 [original link is broken]
    WAD and ABAP
    How to call a ABAP or ABAP Class from the WEB
    /people/kai.wachter/blog/2008/03/11/how-to-write-own-items-in-bi-70-java-runtime
    Regards
    Andreas

  • Not opening the excel workbook from web application

    I am trying the load excel work book from web application and have configured the http authentication while configuring the ADF Secutity. It is asking for the login (weblogic/weblogic1) while load excel workbook, but throws the following exception/error. Please let me know how to resolve this.
    ADFDI-05530: unable to initialize worksheet: Sheet1
    and details are:
    ADFDI-00108: user session required
    The remote server returned an error: (401) Unauthorized.
    ~~~~~~~~~~
    UserSessionRequiredException: ADFDI-00108: user session required
    Source: adfdi-datamanager
    Stack:
    at oracle.adf.client.windows.datamanager.servletrequest.SyncRequest.BeginResponse()
    at oracle.adf.client.windows.datamanager.servletrequest.TamperCheckRequest.InternalCallSyncServlet()
    at oracle.adf.client.windows.datamanager.servletrequest.SyncServletRequest.CallSyncServlet(Boolean retry)
    at oracle.adf.client.windows.datamanager.ADFBindingContext.SendSyncServletRequest(SyncServletRequest request)
    at oracle.adf.client.windows.datamanager.ADFBindingContext.CheckForTampering()
    at oracle.adf.client.windows.datamanager.ADFBindingContext.PreSyncServletTamperCheck()
    at oracle.adf.client.windows.datamanager.ADFBindingContext.SyncModel(BindingContainer bc, String contentType)
    at oracle.adf.client.windows.datamanager.BindingContainer.ReloadMetadata()
    at oracle.adf.client.windows.datamanager.BindingContainer.LoadMetadata()
    at oracle.adf.client.windows.excel.runtime.DIWorksheet.Initialize()
    Inner:
    WebException: The remote server returned an error: (401) Unauthorized.
    Source: System
    Stack:
    at System.Net.HttpWebRequest.GetResponse()
    at oracle.adf.client.windows.datamanager.servletrequest.http.ManagedHttpResponse..ctor(HttpWebRequest request)
    at oracle.adf.client.windows.datamanager.servletrequest.http.ManagedHttpRequest.GetResponse()
    at oracle.adf.client.windows.datamanager.servletrequest.SyncRequest.BeginResponse()

    Thanks for your quick reply. I have tried giving permission to all the page definition for the test-all role. But still I am getting the following error.
    [JpsAuth] Check Permission
    PolicyContext: [UI#V2.0]
    Resource/Target: [getSubjectFromDomainCombiner]
    Action: [null]
    Permission Class: [javax.security.auth.AuthPermission]
    Result: [SUCCEEDED]
    Subject: [null]
    Evaluator: [SM]
    [JpsAuth] Check Permission
    PolicyContext: [UI#V2.0]
    Resource/Target: [sessiondef._FDMApplicationVO_0_DynReg_com_hyperion_aif_gl_common_setup_userinterface_pageDefs_regFDMApplicationsPageDef]
    Action: [view]
    *Permission Class:     [oracle.adf.share.security.authorization.RegionPermission]*
    *Result:               [FAILED]* Evaluator: [ACC]
    Failed ProtectionDomain:ClassLoader=sun.misc.Launcher$AppClassLoader@47858e
    CodeSource=file:/C:/Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar Principals=total 3 of principals(
    1. JpsPrincipal: oracle.security.jps.internal.core.principals.JpsAnonymousUserImpl "anonymous" GUID=null DN=null
    2. JpsPrincipal: oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl "anonymous-role" GUID=null DN=null
    3. JpsPrincipal: oracle.security.jps.service.policystore.ApplicationRole "test-all" GUID=48AD91A06D7511DFBFDBE5A03915DD7D DN=null)
    Permissions=(
    oracle.adf.controller.security.TaskFlowPermission//data/data-task-flow-definition.xml#data-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//dim/dimension-task-flow-definition.xml#dimension-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//setup/Access-Denied-task-flow-definition.xml#Access-Denied-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//setup/setup-flow-definition.xml#setup-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//writeback/writeBack-task-flow-definition.xml#writeBack-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//setup/regApp-task-flow-definition.xml#regApp-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//writeback/valueMapping-task-flow-definition.xml#valueMapping-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//process/processDetails-task-flow-definition.xml#processDetails-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//setup/importProfile-task-flow-definition.xml#importProfile-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//setup/categoryMapping-task-flow-definition.xml#categoryMapping-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//setup/srcAcctEnties-task-flow-definition.xml#srcAcctEnties-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//hr/hr-task-flow-definition.xml#hr-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//setup/regSrcSystem-task-flow-definition.xml#regSrcSystem-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//setup/regFDMApps-task-flow-definition.xml#regFDMApps-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//setup/periodMapping-task-flow-definition.xml#periodMapping-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//setup/location-task-flow-definition.xml#location-task-flow-definition/customize,grant,personalize,view
    oracle.adf.controller.security.TaskFlowPermission//dim/memberMapping-task-flow-definition.xml#memberMapping-task-flow-definition/customize,grant,personalize,view
    (java.io.FilePermission \C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\adf-share-support.jar read)
    (java.net.SocketPermission localhost:1024- listen,resolve)
    (oracle.security.jps.service.credstore.CredentialAccessPermission context=SYSTEM,mapName=*,keyName=* *)
    (java.util.PropertyPermission line.separator read)
    (java.util.PropertyPermission java.vm.version read)
    (java.util.PropertyPermission java.vm.specification.version read)
    (java.util.PropertyPermission java.vm.specification.vendor read)
    (java.util.PropertyPermission java.vendor.url read)
    (java.util.PropertyPermission java.vm.name read)
    (java.util.PropertyPermission os.name read)
    (java.util.PropertyPermission java.vm.vendor read)
    (java.util.PropertyPermission path.separator read)
    (java.util.PropertyPermission java.specification.name read)
    (java.util.PropertyPermission os.version read)
    (java.util.PropertyPermission mds.store.filesystem.path read)
    (java.util.PropertyPermission os.arch read)
    (java.util.PropertyPermission java.class.version read)
    (java.util.PropertyPermission java.version read)
    (java.util.PropertyPermission file.separator read)
    (java.util.PropertyPermission java.vendor read)
    (java.util.PropertyPermission java.vm.specification.name read)
    (java.util.PropertyPermission java.specification.version read)
    (java.util.PropertyPermission java.specification.vendor read)
    (oracle.security.jps.service.policystore.PolicyStoreAccessPermission context=APPLICATION,name=* getApplicationPolicy)
    (java.lang.RuntimePermission stopThread)
    (java.lang.RuntimePermission exitVM)
    oracle.adf.share.security.authorization.RegionPermission/com.hyperion.aif.gl.drilldown.userinterface.pageDefs.drilldownPageDef/view
    oracle.adf.share.security.authorization.RegionPermission/com.hyperion.aif.gl.common.setup.userinterface.pageDefs.MainPageDef/grant,view
    Call Stack: java.security.AccessControlException: access denied oracle.adf.share.security.authorization.RegionPermission/sessiondef._FDMApplicationVO_0_DynReg_com_hyperion_aif_gl_common_setup_userinterface_pageDefs_regFDMApplicationsPageDef/view java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    java.security.AccessController.checkPermission(AccessController.java:546)

  • Calling form from web application

    i use the below url for calling form from web application.
    http://host51.yan.com/forms/frmservlet?form=test&width=700
    i would like to know about "frmservlet"
    if it's a servlet file then
    where its located in application server10g

    The servlet is part of the forms-installation on the application-server, on the local OC4J this is located in $ORACLE_HOME/forms/j2ee/formsapp.ear
    What exactly do you want to know about the servlet?

  • Customize OEM Grid Console screens to exclude "Backup/Recovery" from Maint

    We need to be able to exclude some features in the OEM Web Console.
    For example, the features such as:
    "Backup/Recovery" feature and also the "Patch" link in the "Deployments" feature.
    Help. How can I do this?

    Hi,
    you cannot remove those topics from the console. What an account can do and what it cannot do depends on the privileges of that account. Backup/Recovery needs the SYSDBA role, every action will fail started by a user not having this privilege. Someone who wants to patch needs OS access to the target machine. So don't give 'normal' users such access rights , they can see the features, but they cannot use them.
    Regards
    Werner

  • SSO from Web Application to EP

    Hi,
    We have a requirement where we have to provide SSO from some web application to Portal (EP6 SP15).
    This web application will be having link to portal on its pages.
    User store for Web Application and Portal is different.
    This Web Application can be accessed from Internet.
    We have not yet decided about accessing Portal from internet.
    Is there any solution to this? Is this doable??
    I have looked at thread
    SSO from .Net application to SAP Portal
    can anyone provide more information??
    Thanks in advance

    Hi Santosh,
    there is not much to explain. It your web app side, you must have some matching table between webAppUser and the portal users and their passwords, like:
    webAppUser1  portalUserA  xy56123
    webAppUser2  portalUserB  g6324s3
    Your own "integration" checks which user is logged on, takes the portal user name and password and calls the portal with the parameters "j_user" and "j_password" (and "login_submit=true"); for example via the client and a form where these values are put in and the target is requested per POST. And that's it. For the form (including the pwd) would be send to the client from your webApp server, you definitely should use https at least, as already stated.
    Hope it helps
    Detlev

  • Access USB from web application

    USB flash drive should take to me a web site.
    Documents in the website should sync with USB flash drive (Read Write to USB from web site)
    USB Flash drive should be in VIEW mode (no write permission)
    Authentication to USB Flash drive

    Hello,
     The application on the client could then use a WCF service to communicate with a server.
      More information please refer to links below:
      SerialPort Class
      http://msdn.microsoft.com/en-us/library/System.IO.Ports.SerialPort.aspx
     if the reply help you mark it as your answer.
     Free Managed .NET Excel, Word, PDF Component(Create,
    Modify, Convert & Print)

  • How to upload documents to DMS from web application externally

    We have a webdynpro based J2EE application. We want to create a SAP DMS ( KPRO ) document using this web application externally.
    Any inputs on this scenario ?
    I am able to create similar using an ABAP report which reads the client file and create the DMS document using BAPI_DOCUMENT_CREATE.
    How do we achieve this using external web application ..
    Please HELP in this.
    Thanks..

    Hi Divya,
    Good day...!
    A custom UI component will berrequired to upload the data from a Flat File into CRM WEBUI.
    The View in this UI Component can have 2 fields lets say u2013  ID and File to Upload and a button 'upload'.
    When the UPLOAD button is clicked , the event u2018ONFILEUPLOADu2019 is triggered.
    A Javascript function u2018fileUpload()u2019 reads the Excel file and formats the data in the form of a long string with Line Breaks corresponding to each row in the excel file. This string is stored in a Hidden HTML form element u2018Excel_Datau2019.
    In the Event Handler for u2018ONFILEUPLOADu2019, the hidden form element u2018EXCEL_DATAu2019 is read and retrived.
      lv_file_data = request->get_form_field( name = lv_excel_data ).
      me->lv_id = request->get_form_field( name = lv_schema_id ).

  • Accessing txt files in the App server from web application

    Hi All,
    We have a use case, where we need to access txt files from the ADF web application.
    We will display to the user the path of the file and whenever he/she clicks, it should be downloaded automatically to the users machine.
    Environments we need to develop: JDeveloper 10.1.3.4 and Oracle App Server 10.1.3.1
    And our server has credentials and only those who have access to the server can access the files.
    Point me or suggest me a good solution to this use case.
    Regards,
    Naga.

    Hi Joonas,
    i was able to download the files, thanks a lot for your guidance. i will mark your answer as correct.
    Can you let me know how to achieve the following usecase.
    1. there will be multiple text files in the server i.e., out of our web application context like in some folder
    2. And we need to give user a http link and if he clicks on the link that file should be downloaded automatically to his machine.
    and we are using oracle app server 10.1.3.4, please point me to some document or example.
    thank you.
    naga.

  • Reading XML file having various foreign languages from web application.

    Greeting..
    I'm dealing with a so-called serious problem where-in:
    I've to read one of the configuration files(XML files) having values in different foreign languages (like Chinese, Japanese, Arabic etc). I've to read that file contents, in as it is form, in such a way that user can read / change the data from the web application.
    I'm showing the XML file inside the TextArea (the HTML <textarea> tag. While reading this file, it got converted to junk values instead of actual ones. While saving this file it changes those original values to junk in file as well.
    I'm using SAX parser with DefaultHandler.
    Better suggestions are welcome.
    Thanks in advance
    Regards

    rikslovein wrote:
    Better suggestions are welcome.You have a number of places where data corruption could occur. You have not yet identified where it occurs. When you know where it occurs it would be much easier to determine a solution.
    Do NOT display the characters to determine the problem. Instead take a small sample and print the numeric values. And do that at each stage/layer until they do not match.

  • Problem displaying WebHelp in firefox called from web application

    We're using RoboHelp 7.03. When the WebHelp is generated, it seems that the navigation topics all immediately begin with a few illegal characters. This isn't a problem in IE -- it ignores these characters and displays our help pages fine. In Firefox, however, the WebHelp loops when trying to open the main topic page and does not display the "Show TOC" link for the sub-pages. (The navigation pages I'm referring to are the skin files, whgdata files, whdata, etc.)
    I should note, this occurs only for the project that we're calling from within a web-based application we offer our customers. Firefox displays the WebHelp correctly when opened regularly from the browser.
    I did a search-and-replace operation on the WebHelp published for the web application. Removing the illegal characters took care of the problem, but I'm wondering if there is any way to remove these characters from the output so we don't have to remember to do the search and replace each time we publish the project? (It's in beta stage right now; we're going to be republishing the help fairly often.)
    I'm not sure if these will display properly, but the illegal characters look like this: 
    Thank you,
    Sasha M.

    Those characters are known as the BOM characters. See item 22 in http://www.grainge.org/pages/authoring/rh7/using_rh7.htm.
    You say the behaviour is different when you run the help independently and when the developers call the help. Could it be that you are viewing it from a different location? What if the help is run from the location the developer's use but independently of the application?
    Visit www.grainge.org for RoboHelp and Authoring tips

  • Capturing data back to SAP from web application

    I have to call a java application from SAPGUI.For that I can use the methods in the class CL_GUI_HTML_VIEWER.
    In that Java application the user will be ordering the products and quantity.I have to capture this data back to SAP and update the order in SAP. How to capture the data from the called java application back to SAP ?

    Hi Gincy,
    if you just need to call the web applications and then parse the result (i.e. you do not need to display the output) you can user the CL_HTTP_CLIENT class.
    There is a sample program in the SAP Help at http://help.sap.com/saphelp_nw04/helpdata/en/1f/93163f9959a808e10000000a114084/frameset.htm
    Cheers
    Graham Robbo

  • Open OBIEE report from web application

    Experts, I want to open OBIEE report from a web application. I have a question regarding the security here. Say I login as 'USER1' in web application, I would have to pass 'USER1' in nquser parameter. Correct? Also, this report has access to 'Sales Group' users only. So, does 'USER1' in web application need to be assigned to 'Sales Group'? Or, any user in the web application can open this report as long as I pass nquser in the GOURL.
    thx,
    parag

    You don't need to specify group details.
    When the report hits OBIEE, it will determine the permissions based on the nquser.
    Hope it helps.

  • Looking up external JNDI (JBOSS Namely) from web applications.

    Hi,
    I am unable to look up names bound to JBOSS JNDI from external web apps.
    Dump of the JBOSS JNDI
    java: Namespace
    +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- DefaultDS (class: javax.sql.DataSource)
    +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory)
    +- ABTestDS (class: javax.sql.DataSource)
    +- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter)
    +- comp (class: javax.naming.Context)
    +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
    +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- jaas (class: javax.naming.Context)
    | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext)
    | +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext)
    | +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext)
    +- timedCacheFactory (class: javax.naming.Context)
    Failed to lookup: timedCacheFactory, errmsg=null
    +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory)
    +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
    +- Mail (class: javax.mail.Session)
    +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter)
    +- TransactionManager (class: org.jboss.tm.TxManager)
    +- hibernate (class: org.jnp.interfaces.NamingContext)
    | +- SessionFactory (class: org.hibernate.impl.SessionFactoryImpl)
    Global JNDI Namespace
    +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- UserTransactionSessionFactory (proxy: $Proxy11 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
    +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- console (class: org.jnp.interfaces.NamingContext)
    | +- PluginManager (proxy: $Proxy37 implements interface org.jboss.console.manager.PluginManagerMBean)
    +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
    +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- topic (class: org.jnp.interfaces.NamingContext)
    | +- testDurableTopic (class: org.jboss.mq.SpyTopic)
    | +- testTopic (class: org.jboss.mq.SpyTopic)
    | +- securedTopic (class: org.jboss.mq.SpyTopic)
    +- queue (class: org.jnp.interfaces.NamingContext)
    | +- A (class: org.jboss.mq.SpyQueue)
    | +- testQueue (class: org.jboss.mq.SpyQueue)
    | +- ex (class: org.jboss.mq.SpyQueue)
    | +- DLQ (class: org.jboss.mq.SpyQueue)
    | +- D (class: org.jboss.mq.SpyQueue)
    | +- C (class: org.jboss.mq.SpyQueue)
    | +- B (class: org.jboss.mq.SpyQueue)
    +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
    +- jmx (class: org.jnp.interfaces.NamingContext)
    | +- invoker (class: org.jnp.interfaces.NamingContext)
    | | +- RMIAdaptor (proxy: $Proxy36 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
    | +- rmi (class: org.jnp.interfaces.NamingContext)
    | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
    +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
    +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    I have an external web application that has
    jndi.properties in the classpath -- JBOSS is running on localhost
    java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
    java.naming.provider.url=jnp://localhost:1099
    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
    web.xml for my external webapp
    <resource-ref>
    <res-ref-name>jdbc/ABTestDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref >
    <res-ref-name>hibernate/SessionFactory</res-ref-name>
    <res-type>net.sf.hibernate.SessionFacory</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    Mycode:
    try {
    Context ctx = new InitialContext();
    sessionFactory = (SessionFactory) ctx.lookup("java:comp/env/hibernate/SessionFactory");
    } catch (ClassCastException cce) {
    throw new ServiceLocatorException(cce);
    } catch (NamingException ne) {
    throw new ServiceLocatorException(ne);
    I get a NamingException.
    Any hints would be really appreciated.
    thanks
    MH

    I have hte same question
    Hey DID you figure it out?
    let me know please
    maybe by email:
    [email protected]
    THANKS A LOT

Maybe you are looking for

  • Computer shuts off after Nvidia 8600M GT drivers installed

    Hello, I recently used the Toshiba Recovery to start anew (out-of-the-box state) on my Satellite X205-SLi4.  The problem is, after the Nvidia drivers (for dual Nvidia 8600M GT) were installed and I rebooted, the computer turns off during startup.  I

  • Credit Limit should be consumed in consignment fill up

    Hi We a consignment sale scenario. We send some goods to our consignment agent. These agents are created as customers in SAP. When i do consignment fill up (i.e. when i send goods from my stores to consignment agent), there is no FI accounting entry

  • Edit Parked Challan

    Hi all, im facing a problem in editing parked challans. i developed a function module which can edit already parked challans for whom GRs has not been prepared. it is editing the quantity accroding to parked quantity. there is  a condition that it sh

  • Batch process for Web & Devices possible??

    Hiya, Here's what I have going on.  I'm heavily involved with the DAZ3D community.  Over a year ago I create a huge and I mean huge texture pack for the Windy Wizard Robe and the Morphing Fantasy Robe found at Renderosity.  The pack, when zipped up i

  • MULTICLIP HELP NEEDED VIA iCHAT

    I have read topics about it online, and I have read the proper sections of the manual 900 times. I just can't get it all to work. I need one kind soul to chat with me on iChat, and help me to get a simple multiclip working in FCP. my screen name is: