How can I develop EJBs using JDeveloper?
Hi all.
How can I develop EJBs (entity beans) using JDeveloper and deploying them on WebLogic6x
server?
Oracle says that JDeveloper enables to build and deploy applications to the WebLogic
6x, but I can't do that with Entity Beans(CMP).
I established the connection to the WebLogic and to the DataBase and they work.
JDeveloper generate ejb-jar.xml and weblogic-ejb-jar.xml but not weblogic-cmp-rdbms-jar.xml.
How can I build all the necessary xml's files? What I have to do? Exist a pluging
to integrate JDeveloper with WebLogic?
Thanks, and I hope your answers.
Isra
hello,
in reports 6i the charts are created using oracle graphics which stores the chart definitions in a separate file (.OGD). there is not XML interface for graphics.
with reports 9i and the introduction of the BIgraphBean the definition of the chart-properties is also done in XML.
reports 9i will be available with iAS Release 2.
regards,
the oracle reports team
Similar Messages
-
How can i develop charts using only xml defination
how can i develop charts using only xml defination.can any one please let me know
mankshello,
in reports 6i the charts are created using oracle graphics which stores the chart definitions in a separate file (.OGD). there is not XML interface for graphics.
with reports 9i and the introduction of the BIgraphBean the definition of the chart-properties is also done in XML.
reports 9i will be available with iAS Release 2.
regards,
the oracle reports team -
How can i build application using Jdeveloper 10g for Weblogic server 10.3
Hi,
We have a requirement where in we want to build an SOA application using Jdeveloper 10g for Weblogic Server 10.3.
Is there any way to make a connection to Weblogic Server 10.3 from JDeveloper 10g? If there is any way please share it with me.
Thanks,
Amit KumarAmit,
SOA Suite is not yet certified for WLS 10.3. You have to wait for the certification of it.
At the moment you can't install the SOA Suite on WLS 10.3 nor connect from JDev 10.1.3 to it.
--olaf -
How can I develop application using multi-language UI?
Hi all.
Do you know how to develop a project which can have multi-language UI (user can switch between languages, for example: English or Franch).
Thanks.Bsaically by using resource bundles - more detail than that would depend on the actual technologies you are using and the type of application.
Struts for instance has specific Tags for displaying strings out of a resource bundle. JSTL has other tags and JSF does it another way - but they all use resource bundles as properties files or java classes. -
How can we develop SCA by using Jdevloper
Dear Friends,
I have Used WID(Websphare Integration developer for Devloping SCA- Service
Component Architecture),
but COuldyou PLease tell me how can we develop the SCA by Using Jdevloper.
Siddharth Singh
[email protected]Support for SCA is coming in JDeveloper 11g - keep an eye open for the next technology preview 3 version that should be out on OTN in the next few weeks.
Note that with 10.1.3 you can develop an SOA application today. -
How can you develop photo galleries with multiple pages using the web module?
Going through the web module I can see there are many options for developing a web page with a single collection of photos. How can you develop a web site with multiple pages containing different categories of photos using the Lightroom web module?
This thread will give you several ideas.
Re: How do you embed a gallery into an existing website? -
Developing reports using JDeveloper 3.0
Is it possible to develop reports using jdeveloper 3.0, so that the end users can print reports over the internet? Is that a feature in jdeveloper or do I have to buy a third party tool?
Thanks,Creating HTML/XML-XSL based reports in JDeveloper is completely doable.
To do this you can either create a Servlet or a JSP. This JSP/Servlet can use either either JDBC or BC4J to access a datasource in the database.
For further info on how to do this see the
Java Server Pages overview at: http://tooldemo.oracle.com/demos/tools/jdeveloper/
Hope this helps,
-Chris -
How can I make server use single class loader for several applications
I have several web/ejb applications. These applications use some common libraries and should share instances of classes from those libraries.
But applications are being deployed independently thus packaging all them to EAR is not acceptable.
I suppose the problem is that each application uses separate class loader.
How can I make AS use single class loader for a set of applications?
Different applications depend on different libraries so I need a way that will not share library for all applications on the domain but only for some exact applications.
When I placed common jar to *%domain%/lib* - all works. But that jar is shared between all applications on the domain.
When I tried to place common jar to *%domain%/lib/applibs* and specified --libraries* attribute on deploying I got exception
java.lang.ClassCastException: a.FirstDao cannot be cast to a.FirstDaoHere http://download.oracle.com/docs/cd/E19879-01/820-4336/6nfqd2b1t/index.html I read:
If multiple applications or modules refer to the same libraries, classes in those libraries are automatically shared.
This can reduce the memory footprint and allow sharing of static information.Does it mean that classes should be able to be casted ?You didn't specify which version of the application server you are using, but the config is similar as long as you know what to look for. Basically, you need to change the classloader delegation. Here's how it is done in 8.2
http://download.oracle.com/docs/cd/E19830-01/819-4721/beagb/index.html -
How can i develope a report for getting purchase requisition details
how can i develope a report for getting purchase requisition details like mrp controller release date unit of measure
Hi,
Go to Tcode ME53(Purchase requisition display). Give any preq number and click the item overview button..
in the next page click select one item and press item details button(or F2 button)..In the next page all your requiresd fields will be there.. put cursor in reqd field and press f1.. in the pop up box press techical details(hammer button) to get the field name as well as the transparent table.. Use those fields and table in ur program..
hope it helps
Award points if it helps -
HOW can I call EJB with JSP?
Hi, I'm working with JSP and want to include some EJB. I dont know how can I access EJB through JSP. I dont know if I use the right code in JSP for calling EJB. Did someone know how to use that? Can someone tell me if is the right code in JSP in my example?
Thanks, Kristjan
THIS IS THE JSP: (useejb.jsp)
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/ejbtaglib.tld" prefix="EJB" %>
<%@ page import="mypackage1.MySessionEJB" %>
<%@ page import="mypackage1.MySessionEJBHome" %>
<%@ page import="mypackage1.impl.MySessionEJBBean" %>
<HTML>
<head><TITLE>USEBEAN</TITLE></head>
<body>
<EJB:useHome id="mySessionEJBHome" type="mypackage1.MySessionEJBHome" location="java:comp/env/ejb/mySessionEJB" local="false" />
<EJB:useBean id="mySessionEJBBean" type="mypackage1.impl.MySessionEJBBean" local="false">
<EJB:createBean instance="<%=mySessionEJBHome.create() %>" />
</EJB:useBean>
<%= mySessionEJBBean.calc() %>
</body>
</html>
THIS IS THE EJB CODE:(MySessionEJBBean.java)
package mypackage1.impl;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import java.lang.String.*;
public class MySessionEJBBean implements SessionBean
public void ejbCreate(){}
public void ejbActivate(){}
public void ejbPassivate(){}
public void ejbRemove(){}
public void setSessionContext(SessionContext ctx){}
public String calc(String value)
return value + value;
public String zanka(String x)
return x;
(MySessionEJB.java)
package mypackage1;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
public interface MySessionEJB extends EJBObject
public String calc(String value) throws RemoteException;
String zanka(String x) throws RemoteException;
(MySessionEJBHome.java)
package mypackage1;
import javax.ejb.EJBHome;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
public interface MySessionEJBHome extends EJBHome
public MySessionEJB create() throws RemoteException, CreateException;
}You might want to look at using a Java Bean wrapper, this can be done automically using WebSphere. It creates what is called an access bean which the JSP imports.
HTH,
J.Clancey -
How can I enable session(using url) tracking in home page
i am developing bidding application. How can I enable session(using url) tracking in home page ?
for example :
http://mydomine.com/index.jsp;jsessionid=4A38A4496F6862681DFD09CD6D648485.tomcat75
please help me.Doubleposted. Please continue here: [http://forum.java.sun.com/thread.jspa?threadID=5308686&tstart=0]
In the future, do not use the back button to edit the message, but use the edit button instead. Otherwise you're reposting the form again. You should know that better as being a web developer. -
About how to build dynamic maps using jdeveloper 10g and mapviewer
i follow the guidance (about how to build dynamic maps using jdeveloper 10g and oracle application server mapviewer) to write a jsp file,but error take palce ,i get information "Project: D:\jdev1012\jdev\mywork\WebMap\ViewController\ViewController.jpr
D:\jdev1012\jdev\mywork\WebMap\ViewController\public_html\WebMap.jsp
Error(12,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(12,190): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(12,102): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(12,28): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
Error(12,40): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
Error(13,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(13,198): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(13,106): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(14,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(14,188): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(14,101): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(15,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
Error(15,200): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
Error(15,107): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found"
can you help?
greetingsI found a lot of information in document 133682.1 on metalink.
step by step example how to deploy a JSP business component application. -
How can I develop co-broswing on Windows platform with java language?
How can I develop co-broswing on Windows platform with java language?
The function will be realized
Now I want to develop a co-broswing system with java language on Windows platform.That is to say I will develop
a application run on client to track the present browser.Wheh the URL address of your present if changed(for example
when you click a link or submit a form),the application will capture the new URL address and send it to the other
client that make co-browsing connect with you.The browser on the other client side will catch the new URL and refesh
the page to show the page.
The question I fall across and want to ask you
(1)How to watch system process with java on the Windows platform?Because I want to get the process information of
the present broswer,and then get the URL address of the present broswer.
(2)Develop an application to watch the URL address of the present broswer continuance,If the URL address is changed,
then send the new URL address to the client on the other side,let his broswer to show the new page using the new URL.Paulc, A proxy server is not the right thing.
What our man here is looking for is a solution for two
users to kind of surf the net "in tandem" - when one
user navigates to a different web page, so does the
other user,
These are typically used in call center applications
where the advisor guides a caller through , say
filling in an insurance form or pointing him to the
right product specification pages.
Xing, why are you using Java for this ? You need
something that has better windows integration. If you
look on MSDN.microsoft.com and search for "explorer
bar" you will find solutions to the questions that you
raised.
There are also commercial products on the market that
already do this kind of stuff. there is one from
www.genesyslabs.com which is considered to be the best
of breed.
It is difficult or almost impossible to do this in
Java for a commercial application.
If you are developing this as an academic exercise,
give it a try. Post your email address here, and I
will contact and help you out if you like.my e-mail is below ,I want to contact you and need all of your help.
[email protected] -
How can i develop and implement an enhancement iw39?
how can i develop and implement an enhancement in standrad program . for example in iw39 in selection screen i have to add few moew fields . so any one guideme how to atchive it
thanks & regards
deepurdHi Deepu
1) Go to program RIAUFK20.
2) Press the spiral button (ENHANCE)
3) Right click on the enhancement point mentioned below (available at the end of selection details)
ENHANCEMENT-POINT riaufk20_25 SPOTS es_riaufk20 STATIC .
4) Go to Enhancement Implementation -> Create
5) Create a new implementation
6) Add your coding in the implementation created.
Please use the same implementation at all the places in the code where you use an enhancement point.
Hope it helps.
Refer Source Code Enhancements - Part 5 of the Series on the New Enhancement Framework for more...
Cheers
neer -
How can i inserts record using procedure in adf
how can i insert record using procedure
hi i have the following i what to insert record using store procedure, i try this
am in JDeveloper Studio 11.1.2.1.0
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
<!---->
<ViewObject
xmlns="http://xmlns.oracle.com/bc4j"
Name="SmsPartyAddressView"
Version="11.1.2.60.81"
BindingStyle="OracleName"
CustomQuery="true"
PageIterMode="Full"
UseGlueCode="false"
RowClass="sms1100.SmsPartyAddressViewRowImpl"
ComponentClass="sms1100.SmsPartyAddressViewImpl"
DefClass="sms1100.SmsPartyAddressViewDefImpl"
RowInterface="sms1100.common.SmsPartyAddressViewRow"
ClientRowProxyName="sms1100.client.SmsPartyAddressViewRowClient">
<DesignTime>
<Attr Name="_isExpertMode" Value="true"/>
<Attr Name="_codeGenFlag2" Value="Access|Def|Coll|Prog|VarAccess"/>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="sms1100.SmsPartyAddressView_LABEL"/>
</SchemaBasedProperties>
</Properties>
<ViewAccessor
Name="Sub_lov1"
ViewObjectName="sms1100.Sub_lov"
RowLevelBinds="true"/>
<ListBinding
Name="LOV_Town"
ListVOName="Sub_lov1"
ListRangeSize="-1"
ComboRowCountHint="10"
NullValueFlag="none"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="Town"/>
</AttrArray>
<AttrArray Name="DerivedAttrNames">
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="TowId"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="Town"/>
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="Id"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="Town"/>
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="DsdRegion"/>
<Item Value="ServiceDeliveryArea"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<SQLQuery><![CDATA[SELECT
SmsPartyAddress.ADDRESS_LINE1,
SmsPartyAddress.ID,
SmsPartyAddress.ADDRESS_LINE2,
SmsPartyAddress.ADDRESS_LINE3,
SmsPartyAddress.ADDRESS_LINE4,
SmsPartyAddress.ADDRESS_TYPE_IND,
SmsPartyAddress.PAR_ID,
SmsPartyAddress.PROP_ID,
SmsPartyAddress.START_DT,
SmsProperties.ERF_NO,
SmsProperties.ADDRESS_LINE,
SmsProperties.ZONE,
SmsProperties.GPS_LONGITUDE,
SmsProperties.GPS_LATITUDE,
SmsProperties.TOW_ID,
SmsProperties.WAR_ID,
DECODE(TOW1.TOWN,NULL,TOW.TOWN,TOW1.TOWN)TOWN ,
TOW.TOWN SUBURB,
POSTAL_CODE
FROM SMS_PARTY_ADDRESS SmsPartyAddress,
SMS_PROPERTIES SmsProperties,
SMS_TOWNS TOW
,SMS_TOWNS TOW1
,SMS_POSTAL_CODES PCOD
WHERE TOW.PCOD_ID = PCOD.ID
AND TOW.TOW_ID = TOW1.ID (+)
--and TOW1.ID = SMSPROPERTIES.TOW_ID(+)
and TOW.ID = SMSPROPERTIES.TOW_ID
and SMSPARTYADDRESS.PROP_ID = SMSPROPERTIES.ID
CONNECT BY PRIOR TOW.TOW_ID = TOW.ID]]></SQLQuery>
<EntityUsage
Name="SmsPartyAddress"
Entity="sms1100.SmsPartyAddress"/>
<ViewAttribute
Name="AddressLine1"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE1"
Expression="ADDRESS_LINE1"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Id"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="java.math.BigInteger"
ColumnType="NUMBER"
AliasName="ID"
Expression="ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="AddressLine2"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE2"
Expression="ADDRESS_LINE2"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine3"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE3"
Expression="ADDRESS_LINE3"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine4"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE4"
Expression="ADDRESS_LINE4"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressTypeInd"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="java.math.BigInteger"
ColumnType="NUMBER"
AliasName="ADDRESS_TYPE_IND"
Expression="ADDRESS_TYPE_IND"
SQLType="NUMERIC"/>
<ViewAttribute
Name="ParId"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="PAR_ID"
Expression="PAR_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="PropId"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="java.math.BigInteger"
ColumnType="NUMBER"
AliasName="PROP_ID"
Expression="PROP_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="StartDt"
IsPersistent="false"
PrecisionRule="true"
Type="java.sql.Timestamp"
ColumnType="DATE"
AliasName="START_DT"
Expression="START_DT"
SQLType="DATE"/>
<ViewAttribute
Name="ErfNo"
IsPersistent="false"
PrecisionRule="true"
Precision="80"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ERF_NO"
Expression="ERF_NO"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="80"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine"
IsPersistent="false"
PrecisionRule="true"
Precision="120"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE"
Expression="ADDRESS_LINE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="120"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Zone"
IsPersistent="false"
PrecisionRule="true"
Precision="20"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ZONE"
Expression="ZONE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="20"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="GpsLongitude"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="40"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="GPS_LONGITUDE"
Expression="GPS_LONGITUDE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="40"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="GpsLatitude"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="40"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="GPS_LATITUDE"
Expression="GPS_LATITUDE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="40"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="TowId"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="java.math.BigInteger"
ColumnType="NUMBER"
AliasName="TOW_ID"
Expression="TOW_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="WarId"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Type="java.lang.Integer"
ColumnType="NUMBER"
AliasName="WAR_ID"
Expression="WAR_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="Town"
IsPersistent="false"
PrecisionRule="true"
Precision="60"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="TOWN"
Expression="TOWN"
SQLType="VARCHAR"
LOVName="LOV_Town">
<DesignTime>
<Attr Name="_DisplaySize" Value="60"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="combo_lov"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Suburb"
IsPersistent="false"
PrecisionRule="true"
Precision="60"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="SUBURB"
Expression="SUBURB"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="60"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="PostalCode"
IsPersistent="false"
PrecisionRule="true"
Precision="4"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="POSTAL_CODE"
Expression="POSTAL_CODE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="4"/>
</DesignTime>
</ViewAttribute>
<ResourceBundle>
<PropertiesBundle
PropertiesFile="SmsFrontService.SmsFrontServiceBundle"/>
</ResourceBundle>
</ViewObject>my calling method is
public class SmsPartyAddressViewRowImpl extends ViewRowImpl implements SmsPartyAddressViewRow {
protected void callNewProperty(String stmt, Object[] bindVars) {
PreparedStatement st;
st = null;
try {
// 1. Create a JDBC PreparedStatement for
st = getDBTransaction().createPreparedStatement("begin " + stmt + ";end;", 0);
if (bindVars != null) {
// 2. Loop over values for the bind variables passed in, if any
for (int z = 0; z < bindVars.length; z++) {
// 3. Set the value of each bind variable in the statement
st.setObject(z + 1, bindVars[z]);
// 4. Execute the statement
st.executeUpdate();
} catch (SQLException e) {
throw new JboException(e);
} finally {
if (st != null) {
try {
// 5. Close the statement
st.close();
} catch (SQLException e) {
protected void callInsertProcedure(TransactionEvent e) {
// String Addressline = null;
String Zone = "UNDERF";
Date StartDt = null;
// EntityDefImpl SmsPropertiesDef = SmsPropertiesImpl.getDefinitionObject();
// SmsPropertiesImpl newSmsProperties = (SmsPropertiesImpl)SmsPropertiesDef.createInstance2(getDBTransaction(), null);
callNewProperty("Sms_Location.newProp(?,?,?,?,?,?,?,?,?,?,?,?)",
new Object[] { getParId(), getAddressTypeInd(), getAddressLine1(),
getAddressLine2(), getAddressLine3(), getAddressLine4(),getAddressLine(),getSuburb(),getTown(),getPostalCode(),getTowId(),Zone,StartDt });
Edited by: ADF007 on 2012/08/13 6:59 PMthat solution was based on the hr schema now am inserting using my schema
inserting record in a view using procedure
hi i have the folowing view, i what to insert record using procedure,this is what i what ,i what to insert record using the view but pass those view variable to procedure. my view is
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
<!---->
<ViewObject
xmlns="http://xmlns.oracle.com/bc4j"
Name="smsproppartyview"
Version="11.1.2.60.81"
BindingStyle="OracleName"
CustomQuery="true"
PageIterMode="Full"
UseGlueCode="false"
RowClass="sms1100.smsproppartyviewRowImpl"
ComponentClass="sms1100.smsproppartyviewImpl"
RowInterface="sms1100.common.smsproppartyviewRow"
ClientRowProxyName="sms1100.client.smsproppartyviewRowClient">
<DesignTime>
<Attr Name="_isExpertMode" Value="true"/>
<Attr Name="_codeGenFlag2" Value="Access|Coll|Prog|VarAccess"/>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="sms1100.smsproppartyview_LABEL"/>
</SchemaBasedProperties>
</Properties>
<ViewAccessor
Name="Sub_lov1"
ViewObjectName="sms1100.Sub_lov"
RowLevelBinds="true"/>
<ListBinding
Name="LOV_Town"
ListVOName="Sub_lov1"
ListRangeSize="-1"
ComboRowCountHint="10"
NullValueFlag="none"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="Town"/>
</AttrArray>
<AttrArray Name="DerivedAttrNames">
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="TowId"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="Town"/>
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="Id"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="Town"/>
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="DsdRegion"/>
<Item Value="ServiceDeliveryArea"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<SQLQuery><![CDATA[SELECT
SmsPartyAddress.ID,
SmsPartyAddress.ADDRESS_LINE2,
SmsPartyAddress.ADDRESS_LINE3,
SmsPartyAddress.ADDRESS_LINE4,
SmsPartyAddress.ADDRESS_LINE1,
SmsProperties.ADDRESS_LINE,
DECODE(TOW1.TOWN,NULL,TOW.TOWN,TOW1.TOWN)TOWN ,
TOW.TOWN SUBURB,
POSTAL_CODE,
SmsPartyAddress.PAR_ID,
SmsPartyAddress.PROP_ID,
SmsProperties.ID AS ID1,
SmsPartyAddress.ADDRESS_TYPE_IND,
SmsPartyAddress.START_DT,
SmsProperties.TOW_ID,
SmsProperties.ERF_NO,
SmsProperties.WAR_ID,
SmsProperties.ZONE
FROM SMS_PARTY_ADDRESS SmsPartyAddress, SMS_PROPERTIES SmsProperties,
SMS_TOWNS TOW
,SMS_TOWNS TOW1
,SMS_POSTAL_CODES PCOD
WHERE SmsPartyAddress.PROP_ID = SmsProperties.ID
and TOW.PCOD_ID = PCOD.ID
AND TOW.TOW_ID = TOW1.ID (+)
--and TOW1.ID = SMSPROPERTIES.TOW_ID(+)
and TOW.ID = SMSPROPERTIES.TOW_ID
and SmsPartyAddress.prop_id = SmsProperties.id
CONNECT BY PRIOR TOW.TOW_ID = TOW.ID]]></SQLQuery>
<ViewAttribute
Name="Id"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="ID"
SQLType="NUMERIC">
<RecalcCondition><![CDATA[true]]></RecalcCondition>
<TransientExpression><![CDATA[(new oracle.jbo.server.SequenceImpl("SMS_MAST1_SEQ",adf.object.getDBTransaction())).getSequenceNumber()]]></TransientExpression>
</ViewAttribute>
<ViewAttribute
Name="AddressLine2"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE2"
Expression="ADDRESS_LINE2"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine3"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE3"
Expression="ADDRESS_LINE3"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine4"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE4"
Expression="ADDRESS_LINE4"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine1"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE1"
Expression="ADDRESS_LINE1"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine"
IsPersistent="false"
PrecisionRule="true"
Precision="120"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE"
Expression="ADDRESS_LINE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="120"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Town"
IsPersistent="false"
PrecisionRule="true"
Precision="60"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="TOWN"
Expression="TOWN"
SQLType="VARCHAR"
LOVName="LOV_Town">
<DesignTime>
<Attr Name="_DisplaySize" Value="60"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="combo_lov"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Suburb"
IsPersistent="false"
PrecisionRule="true"
Precision="60"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="SUBURB"
Expression="SUBURB"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="60"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="PostalCode"
IsPersistent="false"
PrecisionRule="true"
Precision="4"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="POSTAL_CODE"
Expression="POSTAL_CODE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="4"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="ParId"
IsPersistent="false"
PrecisionRule="true"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="PAR_ID"
Expression="PAR_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="PropId"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="PROP_ID"
Expression="PROP_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="Id1"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="ID1"
SQLType="NUMERIC">
<RecalcCondition><![CDATA[true]]></RecalcCondition>
<TransientExpression><![CDATA[(new oracle.jbo.server.SequenceImpl("SMS_MAST1_SEQ",adf.object.getDBTransaction())).getSequenceNumber()]]></TransientExpression>
</ViewAttribute>
<ViewAttribute
Name="AddressTypeInd"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="ADDRESS_TYPE_IND"
Expression="ADDRESS_TYPE_IND"
SQLType="NUMERIC"/>
<ViewAttribute
Name="StartDt"
IsPersistent="false"
PrecisionRule="true"
Type="java.sql.Timestamp"
ColumnType="DATE"
AliasName="START_DT"
SQLType="DATE">
<RecalcCondition><![CDATA[true]]></RecalcCondition>
<TransientExpression><![CDATA[adf.currentDate]]></TransientExpression>
</ViewAttribute>
<ViewAttribute
Name="TowId"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="TOW_ID"
Expression="TOW_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="ErfNo"
IsPersistent="false"
PrecisionRule="true"
Precision="80"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ERF_NO"
Expression="ERF_NO"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="80"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="WarId"
IsPersistent="false"
PrecisionRule="true"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="WAR_ID"
Expression="WAR_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="Zone"
IsPersistent="false"
PrecisionRule="true"
Precision="20"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ZONE"
Expression="ZONE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="20"/>
</DesignTime>
</ViewAttribute>
<ResourceBundle>
<PropertiesBundle
PropertiesFile="SmsFrontService.SmsFrontServiceBundle"/>
</ResourceBundle>
</ViewObject>this is what i have try
public class smsproppartyviewImpl extends ViewObjectImpl {
protected void callNewProperty(String stmt, Object[] bindVars) {
PreparedStatement st;
st = null;
try {
// 1. Create a JDBC PreparedStatement for
st = getDBTransaction().createPreparedStatement("begin " + stmt + ";end;", 0);
if (bindVars != null) {
// 2. Loop over values for the bind variables passed in, if any
for (int z = 0; z < bindVars.length; z++) {
// 3. Set the value of each bind variable in the statement
st.setObject(z + 1, bindVars[z]);
// 4. Execute the statement
st.executeUpdate();
} catch (SQLException e) {
throw new JboException(e);
} finally {
if (st != null) {
try {
// 5. Close the statement
st.close();
} catch (SQLException e) {
protected void callInsertProcedure(TransactionEvent e) {
String Addressline = null;
String Zone = "UNDERF";
String Town = null;
String Suburb = null;
String PostalCode = null;
String Addressline1 = null;
String Addressline2 = null;
String Addressline3 = null;
String Addressline4 = null;
Integer AddressTypeInd = null;
Integer parid = null;
//Date StartDt = null;
Integer towid = null;
ApplicationModuleHandle handle = null;
handle = Configuration.createRootApplicationModuleHandle
("sms1100.sms1100Moduleold", "sms1100ModuleShared");
ApplicationModule sam = handle.useApplicationModule();
sam.processChangeNotifications();
ViewObject svo = sam.findViewObject("smsproppartyview1");
svo.executeQuery();
Row row = svo.first();
if (svo != null){
Addressline = (String)row.getAttribute("AddressLine");
Zone = (String)row.getAttribute("Zone");
Town = (String)row.getAttribute("Town");
Suburb = (String)row.getAttribute("Suburb");
PostalCode = (String)row.getAttribute("PostalCode");
towid = (Integer)row.getAttribute("TowId");
Addressline1 = (String)row.getAttribute("Addressline1");
Addressline2 = (String)row.getAttribute("Addressline2");
Addressline3 = (String)row.getAttribute("Addressline3");
Addressline4 = (String)row.getAttribute("Addressline4");
AddressTypeInd = (Integer)row.getAttribute("AddressTypeInd");
parid = (Integer)row.getAttribute("ParId");
//EntityDefImpl SmsPropertiesDef = SmsPropertiesImpl.getDefinitionObject();
//SmsPropertiesImpl newSmsProperties = (SmsPropertiesImpl)SmsPropertiesDef.createInstance2(getDBTransaction(), null);
//newSmsProperties.setAddressLine(Addressline);
//newSmsProperties.setTowId(towid);
callNewProperty("Sms_Location.newProp(?,?,?,?,?,?,?,?,?,?,?,?)",
new Object[] { parid, AddressTypeInd, Addressline1,
Addressline2, Addressline3, Addressline4,Addressline,Town,Suburb,PostalCode,towid,Town,Suburb,PostalCode,towid,Zone });
}am in Jdeveloper 11.1.2.1.0
Maybe you are looking for
-
How do you get your tv to act as a monitor using apple tv?
Can you get your television to act as a monitor using Apple TV?
-
Just upgraded to Lion, can't open any pdf file downloaded from the internet that was fine with Leopard before. I just got a black screen when I clicked on a pdf icon on a given internet site, and same happened with several sites that I visited. How c
-
Best event handling way making the code simple
Hi all, I want to develop a JFrame thats all the componets inside the JFrame have methods (that are owned by JFrame the class) like "compNameClicked", "compNameChanged", "compNameArranged". The JFrame would be like this below... class MyFrame extends
-
Connecting two computers with two routes?
Yes, can I hook up two computers, each with a different router on one phone line? I hope this makes sense. I have one main computer hooked up to a wireless/wired router and the one in another room I want to hook up to the internet also. Do I need
-
My ac adapter problem (plzzzz help)
I use my ibook g4 all the time for college work and for general use. Just recently I tripped on the ac adapter cable it came right out and then the ibook itself fell to the floor (from my bed) and landed on the dc side. it didnt look that bad until I