Problem in using context param for storing database connection information

Hello Friends,
I am new to struts & jsp.I am developing a project in struts.I have 1 jsp page called editProfile.jsp.On submitting this page it will call 1 action class.The action class in turn will call the Plain old java class where I have written the logic for updating User Profile.
I have created context-param in web.xml for database connection information like dbURL , dbUserName , dbPassword , jdbcDriver.Now I want to use these connection information in my Business logic(Plain Old Java Class).As we can use context parameter only in jsp & servlets , I am setting the variables of my business logic class with these context param in jsp itself.
now when I am calling the updateProfile method of Business logic class from Action class it is giving error as all the connection variables which I set in jsp for my business logic class has become null again.
I am not getting.If once I have set those variables how come they are becoming null again???Please help me.Any Help will be highly appreciated.Thanx in advance.

This is the code I have written
web.xml file
<context-param>
<param-name>jdbcDriver</param-name>
<param-value>oracle.jdbc.driver.OracleDriver</param-value>
</context-param>
<context-param>
<param-name>dbUrl</param-name>
<param-value>jdbc:oracle:thin:@localhost:1521:gd</param-value>
</context-param>
<context-param>
<param-name>dbUserName</param-name>
<param-value>system</param-value>
</context-param>
<context-param>
<param-name>dbPassword</param-name>
<param-value>password</param-value>
</context-param>
EditProfile.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>
<jsp:useBean id="EditProfile" scope="application"
class="com.myapp.struts.EditProfile"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Edit My Profile</title>
</head>
<body>
<form action="submitEditProfileForm.do" focus="txt_FirstName" method="post">
<%
EditProfile.setjdbcDriver(application.getInitParameter("jdbcDriver"));
EditProfile.setdbURL(application.getInitParameter("dbURL"));
EditProfile.setdbUserName(application.getInitParameter("dbUserName"));
EditProfile.setdbPassword(application.getInitParameter("dbPassword"));
-----------more code goes here------------
EditActionProfile.java
package com.myapp.struts;
import javax.servlet.jsp.jstl.core.Config;
import org.apache.struts.action.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
public class EditProfileAction extends Action {
public EditProfileAction()
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws Exception
try
if (isCancelled(request))
return mapping.findForward("mainpage");
EditProfileForm epf = (EditProfileForm)form;
EditProfile ep = new EditProfile();
String temp = ep.updateProfile(epf.getTxt_FirstName(),epf.getTxt_MiddleName() , epf.getTxt_LastName() , epf.getTxt_Address() , epf.getTxt_Email() );
if(temp.equals("SUCCESS"))
return mapping.findForward("success");
else
return mapping.findForward("failure");
catch(SQLException e)
System.out.println("error" + e.getMessage());
return mapping.findForward("failure");
EditProfile.java class (My Business Logic Class)
package com.myapp.struts;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.*;
public class EditProfile {
private String dbURL;
private String dbUserName , jdbcDriver;
private String dbPassword;
private Connection con;
private Statement stmt;
public EditProfile()
public void setdbURL(String s )
this.dbURL = s;
public void setdbUserName(String s )
this.dbUserName = s;
public void setdbPassword(String s )
this.dbPassword = s;
public void setjdbcDriver(String s )
this.jdbcDriver = s;
public String updateProfile(String firstname , String middlename , String lastname , String address , String email)
throws SQLException, ClassNotFoundException , java.lang.InstantiationException , IllegalAccessException
try
String s1 = new String("update usr set first_name='" + firstname + "' , middle_name='" + middlename + "' , last_name='" + lastname +"' , address='" + address + "' , email_id='" + email + "' where usr_key=1" );
con = this.init();
System.out.println("after init");
stmt = con.createStatement();
int rslt = stmt.executeUpdate(s1);
System.out.println("after excute update");
stmt.close();
if(rslt>=1)
return "SUCCESS";
else
return "Failure";
finally
if (null != con)
con.close();
public Connection init() throws SQLException, ClassNotFoundException
Class.forName(jdbcDriver);
con = DriverManager.getConnection(dbURL, dbUserName, dbPassword);
return con;
public void close(Connection connection) throws SQLException
if (!connection.isClosed())
connection.close();
}

Similar Messages

  • Advantage of using RAW devices for storing database

    Hi,
    Marry Christmas to all.
    Oracle 10g version 10.2.0.1.0 (rac)
    OS : HP-UX 11i
    I am new to this enviornment. We are using raw devices for storig the database.
    Please tell what are the advantages for using raw devices for storing the database?
    Thanks.

    http://www.fors.com/orasupp/unix/37914_1.HTM
    The above link explains the raw devices and advantages.

  • Database Connection Information for OAS SOA suite 10.1.3.1.0

    Hi!
    I'm having a bit of trouble that I hope you can please help with...
    I've just installed oracle database and am now attempting to install oracle application server.
    Unfortunately everytime I attempt the install I receive a:
    "Install cannot connect to the database located at:
    localhost:1522
    Please ensure tha tthe hostname, port and service name are correct and that the database and its listener at this location are up and running."
    I have tried every possible combination I can think of for the Database Connection Information, including:
    127.0.0.1:1522:orasusdb
    localhost:1522:orasusdb
    127.0.0.1:1521:orasusdb
    localhost:1521.orasusdb
    127.0.0.1:1522:orasusdb.DOMAIN
    localhost:1522:orasusdb.DOMAIN
    127.0.0.1:1521:orasusdb.DOMAIN
    localhost:1521.orasusdb.DOMAIN
    and even all the combinations above with "10.6.0.74" in place of 'localhost' as when I compelted the database installation I was given the following url to access isqlplus:
    http://10.6.0.74:5560/isqlplus
    Which doesn't work...
    But this address:
    http://localhost:5560/isqlplus/
    does work...
    My tnsnames.ora file:
    ORASUSDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orasusdb)
    LISTENER_ORASUSDB =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    My Listener.ora file:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/product/10.2/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
    The results of tnsping localhost:1522:
    Used parameter files:
    /opt/oracle/product/10.2/db_1/network/admin/sqlnet.ora
    Used EZCONNECT adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=localhost.domain))(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1522)))
    OK (0 msec)
    The results of lsnrctl start:
    TNS-01106: Listener using listener name LISTENER has already been started
    Edited by: user11150264 on 23-Aug-2009 22:16

    Okay, I updated everything but it's still not working:
    Database Connect Information: 10.6.0.138:1522:PLSExtProc
    /etc/hosts/
    127.0.0.1 localhost
    ::1 localhost ipv6-localhost ipv6-loopback
    fe00::0 ipv6-localnet
    ff00::0 ipv6-mcastprefix
    ff02::1 ipv6-allnodes
    ff02::2 ipv6-allrouters
    ff02::3 ipv6-allhosts
    10.6.0.138 asw082.DOMAIN
    127.0.0.1 localhost
    10.6.0.74 asw082.DOMAIN asw082
    Listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/product/10.2/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = 1522))
    tnsnames.ora
    ORASUSDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orasusdb)
    #LISTENER_ORASUSDB =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = null))
    LISTENER_ORASUSDB =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = 1522))
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

  • ORA-04054 : using variable substitution for the database link name

    Hi,
    I need to use variable substitution for the database link name.
    Here is my command :
    declare
    GET VARCHAR2(50);
    begin
    select OIA_GET_DESIGNATION into GET from INFODRI.OMA_IN_ARTICLES;
    for rec in (select * from [email protected]_GET_DESIGNATION)
    LOOP
    dbms_output.put_line('TEN_CODE vaut : '||rec.ten_code);
    END LOOP;
    exception
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERREUR ORACLE DETECTEE : '||rec.OIR_CUR);
    DBMS_OUTPUT.PUT_LINE('Message Erreur : '||SUBSTR(SQLERRM,1,245));
    :crd := -1;
    end;
    When I run this programm, I receive the error :
    ORA-04054: database link REC.OIA_GET_DESIGNATION does not exist
    When I replace :
    for rec in (select * from [email protected]_GET_DESIGNATION)
    by :
    for rec in (execute immediate 'select * from tensions@'||rec.OIA_GET_DESIGNATION)
    I receive the error :
    PLS-00103 : Encountered the symbol "IMMEDIATE" while parsing.
    What can I do to resolv my problem ?
    Regards,
    Rachel

    What is the name of the DB Link and the name of the object you are selecting
    from?
    I find it easier to create a view on the remote object then use that in selects.
    e.g,
    Link Name = MyLink
    Object_name = Addr_Loc
    create or replace VIEW Rem_Addr_Loc AS
    select * from addr_loc@mylink;
    In the code I then use the view
    begin
      for C_Rec in (select * from Rem_Addr_loc)
      loop
         dbms_output.put_line('Rec: '|| C_Rec.Col1);
      end loop;
    end;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem on using HD media for SD broadcasting in premiere CC

    Hi
    I've got a problem in using HD media for SD broadcasting. I use to get HD media from all sort & with differnt size. But we are broadcasting in SD, but I don't know how to keep a maximum quality. I've got a blackmagic card. We are brodcasting on SD 720-576 (Widescreen 16-9)
    Could you please tell me on what sort of sequence should I work & what should I do when exporting my files to keep the maximum quality possible?
    Is that better to work on an HD sequence & then to export in SD or is that preferable to make your own sequence (with the broadcast settings) and then resize the clips &...
    Jim

    Perhaps too much Christmas Cheer?
    Not enough more like it.   Making up for it now.
    PAR  = pixwel spect ratio
    - seemed ok to me when I typed it. I knew what I meant despite what I typed.
    An SD Sequence from HD footage for Broadcast  ( such as a TVC) would be difficult in how one would work graphics (design placement and aspect) and also be very dissapointing for the client thru preview and approval process.
    I have just been working on 9 TVCs for a Pacific Island country  who only broadcast widescreen from SD media.
    I can assure you that out puting sd for this purpose is heartbreaking.

  • Is there a way to turn the wireless capabilities off on an AirPort Express?  I have an AirPort Extreme as my main router and use the express to just extend it. I only really want to you use the express for hard ethernet connections

    Is there a way to turn the wireless capabilities off on an AirPort Express?  I have an AirPort Extreme as my main router and use the express to just extend it. I only really want to you use the express for hard ethernet connections. For whatever reason when I have my express extend my wifi at home the download speed from just the express is absolutely terrible, drops to about 1.5 mb compared to when it's on the extremes part of the network the speed goes up to 50-75mb. These terrible download speed really only affects the iPhones as my MacBook Pro usually gets the good speed no matter where it is. I don't believe there is anything wrong with my phone because if I am in the part of the house that uses just the extreme the download speeds on the iphone goes up to 50-75mb. As a note I have an AirPort Extreme on the top floor of my house (second floor) that's where my modem is located. On the first floor that's where one airport express is located. I also have another airport express in the basement that is accessed by my landlord. Any thoughts on how to fix this would be helpful.

    Is there a way to turn the wireless capabilities off on an AirPort Express?  I have an AirPort Extreme as my main router and use the express to just extend it. I only really want to you use the express for hard ethernet connections.
    It appears that your networking goals with the AirPort Express is to use it as a wireless Ethernet bridge instead of using it to extend the wireless range of your AirPort Extreme. The latter requires that the Express Wi-Fi radios be enabled.
    If you intended to use the Express as a wireless bridge, you just need to reconfigure it to "Join a wireless" network instead of "Extend a wireless network."
    For whatever reason when I have my express extend my wifi at home the download speed from just the express is absolutely terrible, drops to about 1.5 mb compared to when it's on the extremes part of the network the speed goes up to 50-75mb.
    In an extended network, the placement of the extending base station is critical as it can only extend the wireless network at the bandwidth at which it receives it.
    Please check out the following AirPort User Tip for details on optimal base station placement.

  • Win7 and now Server Error [2007]: "Database connection information not acce

    I support a 8.3.x server with Insight plugin in use. This has worked for some time now with WinXP. The issue comes into play when the company is upgrading users to Win7 stations. First, the zero-admin (download and install setup launch) is failing. The Install window opens but doesn't seem to be able to complete. Then, when we do get the plugin installed via the manual download and install, we then reach a point where the bqy will not connect with the Server Error [2007]: "Database connection information not accessible. Processing is disabled." If we proceed from there, we'll get Server Error [6] PUB_NullArgument errors and empty "Show Values" limit boxes. So it's like the .oce information is not received on the Win7 platform - it still works fine on WinXP installations.
    And, I know it can work, as the PC Support personnel were able to get this working on one PC.
    Any suggestions?
    Thanks,
    Keith

    I assume that there has been no reply to this thread. The problem still persists, with intermittent success. I hope that someone can shed some light onto the Server Error [2007]: "Database connection information not accessible. Processing is disables." message.
    Thanks again,
    Keith

  • IR web client server(0):Database connection information not accessible.

    Hi,
    We upgraded our system from Hyperion 9.3 to EPM 11.1.2.2. We mainly use the reporting tools SQR production and Interactive reporting.
    Using workspace as an admin if I run a BQY everything works fine but when I try to do the same as other users I get the error "server(0):Database connection information not accessible. Processing is disabled" from the
    I have migrated everything form the old version and haven't changes anything since. It looks like a provisioning issue and I tried looking and comparing everything from the present production(old 9.3 system).
    Did anyone else face the same issue before? Any suggestions on where to look into.
    Thank you in advance.

    Hi ,
    You have to go to my oracle support website link is : https://support.oracle.com/epmos/faces/MosIndex.jspx?_afrLoop=7929796452543&_afrWindowMode=0&_adf.ctrl-state=113hdvh7xd_4
    login with your oracle ID and password you have for your company and search for the document number in the "search knowledge base" which will show up on the top right corner of the page.
    The search will show you the document and you can access it.
    Hope this helps.

  • Trouble using asm instance for new database

    I have an asm instance and am trying to create a new database that will use the asm storage. I'm using dbca to create the new database. This is a test system on windows so I'm using the asmtool -create flatfiles for disks with the asmallow_only_raw_disks parameter set to false.
    If I have #SQLNET.AUTHENTICATION_SERVICES = (NTS) commented out in my sqlnet.ora, then I can't get into asmcmd:
    ORA-01031: insufficient privileges (DBD ERROR: OCISessionBegin)
    and dbca won't create the new database that uses asm because the dbca gets the same 01031 error when trying to create the control files for that database.
    If I have SQLNET.AUTHENTICATION_SERVICES = (NTS) NOT commented out, the I can get into asmcmd, but I can't startup the databases using sys, even though I am sitting at the server,
    AND, dbca won't create the new database that uses asm becuase the dbca can't start the instance
    credential retrieval failure.
    I'm in a catch 22. Something is not right with my system but I just can't seem to figure out what it is.
    The asm instance does have a password file.

    I let the dbca create scripts and am currently walking through the scripts. I think it's my asm database that is actually creating the problem. I did the orapwd and oradim manually and can startup nomount the instance just fine. The create database statement fails on creating the controlfile but it's saying it already exists. I suspected the dbca form wasn't giving me all the errors like it should.
    Thanks for your suggestion on the password file.

  • May i use context-param in jax-ws?

    I have a web service with jax-ws & jaxb. after deploied it to glassfish. i found it exposed to a servlet.
    so, may i read the context-param elements from web.xml to jax-ws classes? if i can , how wil i do?
    Edited by: Kepeng on Jan 14, 2008 7:44 AM

    Yes, you can configure database acceess information in property file and read using [java.util.Properties|http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html] Or [Apache commons configuration|http://commons.apache.org/configuration/]

  • Use 1 listener for multiple database in a server

    hi guys,
    just want to check whether this is the right way to configure my Listener.ORA . I am using 1 listener.ora to listen for incoming request connection from remote client. There are multiple databases installed in a server.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora03)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O11R2)
    (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
    (SID_NAME = O11R2)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O10G)
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
    (SID_NAME = O10G)
    )sorry i am reading about it so did not install another database to test out. Just thinking in the line that it mention that the list of SID is refering to the multiple database that is installed in a server and i am using 1 listener.
    Please further advice.

    Shivananda Rao wrote:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora03)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O11R2)
    (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
    (SID_NAME = O11R2)
    (SID_DESC =
    (GLOBAL_DBNAME = O10G)
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
    (SID_NAME = O10G)
    )Please use as above. You can have one listener for multiple databases.right right so it the pattern goes like this:
    SID_LIST_LISTENER =
         (SID_LIST =
              (SID_DESC =
              (GLOBAL_DBNAME = AAAA)
              (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
              (SID_NAME = AAAA)
              (SID_DESC =
              (GLOBAL_DBNAME = BBBB)
              (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
              (SID_NAME = BBBB)
         )thanks !

  • Performance problems when using Premiere Elements for photo slideshows

    Hello,
    I had been using Premiere Elements 9 (PE9) to make a simple slideshow for my parents from their vacation trip and I ran into some serious performance problems.  I had used it to create similar projects before, but not nearly as big.  This one is like 260 photos, so basically it is 260 seperate clips.  I have a POWERHOUSE workstation (see below) so it isn't my PC.  Even when PE9 crashes, looking at my performance monitor my CPU and RAM aren't even halfway being utilized.  I finally switched to Windows Movie Maker of all things and it worked seemlessly, amazing really.  I'm wondering if I was just using PE9 for something other than what it was designed for since there weren't really any video clips, just a ton of photos that I made into video clips, if that makes sense.  Based upon my experience with this so far, I can't imagine using PE9 anymore for anything really.  I might have the need for a more professional video editing program in the near future, although it does seem like PE has a lot of features.  How can I make sure it utilizes my workstation to its full potential?  Here are my specs:
    PC
    Intel Core i7-2600K 4.6 GHz Overclocked
    ASUS P8P67 Deluxe Motherboard
    AMD Firepro V8800 Video Card
    Crucial 128 GB SATA 6Gb/s Solid State Drive (Operating System)
    Corsair Vengeance 16GB (4x4GB) Memory
    Corsair H60 Liquid CPU Cooler
    Corsair Professional Series Gold AX850 Power Supply
    Graphite Series 600T Mid-Tower Case
    Western Digital Caviar Black 1 TB SATA III Hard Drive
    Western Digital Caviar Black 2 TB SATA III Hard Drive
    Western Digital Green 3 TB SATA III Hard Drive
    Logitech Wireless Gaming Mouse G700
    I don’t play any games but it’s a great productivity mouse with 13 customizable buttons
    Wacom Intuos5 Pen Tablet
    Yes, this system is blazingly fast.  I have yet to feel it slow down, even with Photoshop, Lightroom, InDesign, Illustrator and numerous other apps running at the same time.  HOWEVER, Premiere Elements 9 has crashed NUMERUOS times, every time my system wasn't even close to being fully taxed. 
    Monitors – All run on the ATI V8800
    Dell Ultra Sharp 30 inch
    Samsung 27 Inch
    HAANS-G 28 Inch
    Herman Miller Embody Ergonomic Chair (one of my favorite items)

    Andy,
    There ARE some differences between PrE and PrPro w/ an approved CUDA-capable and MPE hardware acceleration-enabled nVidia video card, but those differences show up ONLY in the quality of the Scaling. The processing overhead is almost exactly the same, when it comes to handling the extra pixels.
    As of PrPro CS 5, two things changed:
    The max. size of Still Images went up from 4096 x 4096 pixels, to quite a bit larger (cannot recall the numbers now).
    The Scaling algorithms have been improved, though ONLY with the correct nVidia cards, with MPE hardware support enabled.
    Now, there CAN be another consideration, between the two programs, in that PrPro CS 5 - CS 6, are 64-bit ONLY, so one benefits from the computer and OS to run it. PrE can be either 32-bit, or 64-bit, so one might, or might not, be taking advantage of the 64-bit program and OS. Still, the processing overhead will be almost identical, it's just that the 64-bit OS can spread it around a bit.
    I still recommend Scaling the large Still Images in PS, prior to Import, to keep that processing overhead as low as is possible. Scaled Still Images work just fine, and I have one Project with 3000+ Scaled Still Images, that edits just fine in PrPro, even on my older 32-bit workstation. Testing that same machine, and PrPro some years ago, I could ONLY work with up to 5 - 4096 x 4096 Stills, before things ground to a crawl.
    Now, Adobe AfterEffects handles large Still Images differently, so I just moved that test Project to AE, and added another 20 large Images, which edited just fine. IIRC, AE can handle Still Images up to 10K x 10K pixels, and that might have gone up, as of CS 5.
    Good luck, and hope that helps,
    Hunt

  • Problem in using different format for Image files

    We are generating a report wherein the logo (Image File) is changed with respect to the company's location.
    Here, we are making use of a Text field using a formula column as its source for getting the file path.
    When the Size is kept as "Expand" or "Variable", then, when the image size changes considerably, it gives problem, wherein the logo is not displayed.
    Then we increased the size of the logo field and kept thte size type as Fixed. But the probnlem which we face is because of the .bmp format which the report accepts.
    This is because, when the format type is bmp, upon increasing the resolution or size of the bmp increases the size by several folds( say from 70kb to almost 1000 or 1500kb) which leads to the error "Memory cannot be read" and leads to abrupt application termination.
    Is their any way by which i can make use of GIF format for the image file and at the same time change the file name at runtime.
    Eagarly waiting for an early solution.
    Thanking you in Advance,
    Ramnath Balasubramanian

    Hi,
    You can only use one Apple ID with iTunes match. Purchasing another match subscription using wife's Apple ID is not a solution. I can only suggest that you use your ID for match and all iTunes music purchases.
    Jim

  • Problem in using View Object for validation

    Hi,
    I have defined a simple swing form to practice. It has one Entity Object and two View objects. One of these view objects is an updatable VO based on the EO and the other one has a simple "select count(*)" from a table. I defined a method validation on one of the EO attributes to see how can i use the VO for validation. On the other hand i defined the Application Module to use both of my views. As far as i undrestood, when i define a VO for AM, the AM will instantiate it the first time it starts running. Here is the code inside the method validation for FirstName attribute:
    /**Validation method for FirstName
    public boolean validateFirstName(String data) {
    ViewObject vo = getDBTransaction().getRootApplicationModule().findViewObject("CountEmployeeInstance");
    if (vo == null) {
    System.out.println("vo is null");
    else {
    vo.executeQuery();
    if (vo.hasNext()){
    System.out.println("count = " + ((CountEmployeeRowImpl) vo.next()).getCount());
    else {
    System.out.println("vo has no next");
    return true;
    The problem is that vo.executeQuery() does not return any record. In fact the vo.hasNext() returns false and i get the message "vo has no next" on the console. Please pay attention that the VO's sql statement is SELECT COUNT(*) and it always returns a record. I found that if i use vo.closeRowSet() before vo.executeQuery() everything works fine.
    Please tell me that what is my problem and why is it working like this?
    Best Regards,
    Alireza Vali

    Chris,
    1- Every thing is fine with the ADF model layer in this practice. I have tested it by using Test option on AM and it works. It works exactly the same as how it works throug swing UI that i use for it.
    2- The VO is beeing found and as you see in the code, i have tested it by "if (vo == null)" just after the statement which finds it and vo is not null which means it has been instantiated by AM as it was supposed to.
    3- The VO's SQL statement is "SELECT COUNT(*) FROM EMPLOYEE" with no where clause. I have 14 records in this table.
    Every thing is OK with swing form. It runs and shows the records and all the binded operations like "next record", "previous record" and so on work perfectly on the records.
    4- The code i used is a combination of two examples. Example 9-7 and 9-8 in pages 9-12 and 9-13 of mentioned document.
    Now my findings:
    I changed the code to the following:
        /**Validation method for FirstName
        public boolean validateFirstName(String  data) {
            ViewObject vo = getDBTransaction().getRootApplicationModule().findViewObject("MaxEmployeeIdInstance");
            if (vo == null) {
                System.out.println("vo is null");
            else {
                //vo.closeRowSet();
                vo.executeQuery();
                System.out.println("Row Count = " + vo.getRowCount());
                System.out.println("Default Slot = " + vo.getCurrentRowSlot());
                vo.next();
                System.out.println("Slot after next() = " + vo.getCurrentRowSlot());
                vo.reset();
                System.out.println("Slot after reset() = " + vo.getCurrentRowSlot());
                vo.first();
                System.out.println("Slot after first() = " + vo.getCurrentRowSlot());
                vo.last();
                System.out.println("Slot after last() = " + vo.getCurrentRowSlot());
                System.out.println("----------------------");
                vo.executeQuery();
                System.out.println("Deafault index = " + vo.getCurrentRowIndex());
                vo.next();
                System.out.println("Index after next() = " + vo.getCurrentRowIndex());
                vo.reset();
                System.out.println("Index after reset() = " + vo.getCurrentRowIndex());
                vo.first();
                System.out.println("Index after first() = " + vo.getCurrentRowIndex());
                vo.last();
                System.out.println("Index after last() = " + vo.getCurrentRowIndex());
                System.out.println("Slot Before First = " + vo.SLOT_BEFORE_FIRST);
                System.out.println("Slot Beyound Last = " + vo.SLOT_BEYOND_LAST);
            return true;
        }Here are the results :
    Row Count = 1
    Default Slot = 0
    Slot after next() = 3
    Slot after reset() = 0
    Slot after first() = 0
    Slot after last() = 0
    Deafault index = 0
    Index after next() = -1
    Index after reset() = 0
    Index after first() = 0
    Index after last() = 0
    Slot Before First = 2
    Slot Beyound Last = 3
    As you see, after the execution of the statement "vo.executeQuery()" the The RowIterrator pointer is not pointing to the slot before the first record but it is pointing to the first record itself. And that is why the statement "if (vo.hasNext()" returns false because we just have one record and RowIterrator Index is standing on that record and there is no next record present. The very important thing is that even reset() method does not set the index to the slot before the first record and it sends it to the first record.
    After that, i took the statemet "vo.closeRowSet()" out of the comment and here are the results:
    Row Count = 1
    Default Slot = 2
    Slot after next() = 0
    Slot after reset() = 2
    Slot after first() = 0
    Slot after last() = 0
    Deafault index = -1
    Index after next() = 0
    Index after reset() = -1
    Index after first() = 0
    Index after last() = 0
    Slot Before First = 2
    Slot Beyond Last = 3
    These are the exact things that we expected from the first. After query execution, the pointer is set to the slot before first record and the reset() method does its defined job which is sending the pointer to the slot before the the first record.
    My Assumptions:
    The Rowset which is created by AM is somehow different from the RowSet which you create in your program. I am absolutely sure that this functionality is not a bug but a design decission. I look at my simple program and see that when it runs, the data is queried and shown on the screen which is all done by AM by instantiating my VO and executing the query on it. AM reasonably must put the RowSet pointer on the first record and not the slot before first record. And i am sure that if i use reset() method on the shown RowSet, the pointer goes to the first record and the data on the screen does not get cleared. Whe we use vo.closeRowSet() and execute the query again, the AM made RowSet is closed and a new one is created and the new RowSet is your's not AM's so it functions as you expect.
    Best Regards,
    Alireza Vali

  • Shoudl I use ESB services for every database interaction

    I have an orchestrated business process that interacts with an internal database multiple times. Shoudl I use an ESB between the BPEL process and the database or is it better to use ESB's only for volatile or external services.
    The database is unlikely to change and most of the calls are going to be static with little or no change therefore I cannot decide whether or not to use ESB's for these calls or not. does anyone have any opinions?

    BPEL Orchestration provides the ability to update a number of employee details through a set process. The services called from the BPEL process are non-agnostic services that are specific to this process only. This means they are not going to be reused within the business and therefore I cannot decided whether I can justify the use of ESB services within this process.
    I disagree with the comment that ESB services shoudl be used for all services, because if this was the case why have database adaptors available as BPEL partner links?

Maybe you are looking for