How to specify a base class for Remote Interface in Workshop 9.2? -- URGENT
Hi,
I am trying to create a UUP EJB in WebLogic 9.2 workshop. I am using @FileGeneration to create my home & remote interfaces. And the generated remote interface is extending javax.ejb.EJBObject;I want my remote interface to extend com.bea.p13n.property.EntityPropertyManager which in turn implements javax.ejb.EJBObject. Can someone tell how i can do it in Workshop?.
I came across Predefined Variable: remote.baseClass and as per docume
ntation..."If specified, the value of this variable will be used as the base class for all generated remote classes. Where i should specify it?. @FileGeneration does nt have any option for it. Any help is grtly appreciated.
Following are my code snippets:
IMPL Class
@FileGeneration(remoteClass = Constants.Bool.TRUE,remoteHome = Constants.Bool.TRUE, localClass = Constants.Bool.FALSE, localHome = Constants.Bool.FALSE,remoteClassName = "MyEntityPropertyManager",remoteHomeName = "MyEntityPropertyManagerHome")
public class MyEntityPropertyManagerImpl extends GenericSessionBean implements
SessionBean {
//code
}
This question was posted to both the bea.workshop.developer.general and weblogic.developer.interest.workshop (I had replied to the later on 10/19); after seeing an identical question today on this list want to include a reference to that reply here:
http://forums.bea.com/bea/message.jspa?messageID=600044925&tstart=0
-Rob
Similar Messages
-
AS3: How to create one base class for classes loaded in multiple swfs?
Our application have 3 different modules and all use
fscommand and ExternalInterface alot. Now the problem is we are
combining all those modules, but they all will reside in different
swfs. Is there any way that they extend to same base class and its
static members have only one instance accessible by all
three?Hi,
You can achieve this via Workshop 9.2 by using the exported Ant script for your project as follows:
-Ensure that all Jars needed to resolve com.bea.p13n.property.EntityPropertyManager (this particular class is found in weblogic92/common/p13n/lib/p13n_ejb.jar) and all referenced classes are added to the Java build path for your WebLogic EJB project (Properties->Java Build Path->Libraries)
-Export the "Workshop Ant Script" for your WebLogic EJB project (File->Export->Workshop Ant Script); this will generate a "build.xml" Ant script under your project root directory.
-Edit this default build script as follows: in the call to the "ejbgen" task within the "build" target, add the attribute: propertyFile="ejbgen.properties"
-Create a file "ejbgen.properties" under the root of your WebLogic EJB project and add the following entry:
YourSessionBeanClassName.remote.baseClass=com.bea.p13n.property.EntityPropertyManager
-Add a "<path refid="java.classpath"/>" within the "<classpath>" for the "java" task element that calls "weblogic.ejbc" (this will ensure that the p13n classes are resolved by EJBC)
Follow the instructions for executing the Ant build script found here: http://edocs.bea.com/workshop/docs92/ws_platform/ideuserguide/conUseCustomAntBuild.html
For more information on the EJBGen property file support, see: http://e-docs.bea.com/wls/docs92/ejb/EJBGen_reference.html -
How to find classtype and class for a material.
Hi,
How to find classtype and class for a material.
which table contains this data.
Thanks
KiranHi Kiran,
Check below sample code. Use this BAPI which will give all info about the class for the material.
DATA: l_objectkey_imp TYPE bapi1003_key-object
VALUE IS INITIAL.
CONSTANTS: lc_objecttable_imp TYPE bapi1003_key-objecttable
VALUE 'MARA',
lc_classtype_imp TYPE bapi1003_key-classtype
VALUE '001',
lc_freight_class TYPE bapi1003_alloc_list-classnum
VALUE 'FREIGHT_CLASS',
lc_e TYPE bapiret2-type VALUE 'E',
lc_p(1) TYPE c VALUE 'P',
lc_m(1) TYPE c VALUE 'M'.
SORT i_deliverydata BY vbeln posnr matnr.
CLEAR wa_deliverydata.
LOOP AT i_deliverydata INTO wa_deliverydata.
REFRESH: i_alloclist[],
i_return[].
CLEAR: l_objectkey_imp.
l_objectkey_imp = wa_deliverydata-matnr.
*Get classes and characteristics
CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'
EXPORTING
objectkey_imp = l_objectkey_imp
objecttable_imp = lc_objecttable_imp
classtype_imp = lc_classtype_imp
* READ_VALUATIONS =
keydate = sy-datum
language = sy-langu
TABLES
alloclist = i_alloclist
* ALLOCVALUESCHAR =
* ALLOCVALUESCURR =
* ALLOCVALUESNUM =
return = i_return
Thanks,
Vinod. -
How to use the different class for each screen as well as function.
Hi Experts,
How to use the different class for each screen as well as function.
With BestRegards,
M.Thippa Reddy.Hi ThippaReddy,
see this sample code
Public Class ClsMenInBlack
#Region "Declarations"
'Class objects
'UI and Di objects
Dim objForm As SAPbouiCOM.Form
'Variables
Dim strQuery As String
#End Region
#Region "Methods"
Private Function GeRate() As Double
Return Double
End Function
#End Region
Public Sub SBO_Appln_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
If pVal.BeforeAction = True Then
If pVal.MenuUID = "ENV_Menu_MIB" Then
End If
Else ' Before Action False
End If
End Sub
#End Region
End Class
End Class
Rgds
Micheal
Vasu Anna Regional Feeling a???? Just Kidding
Edited by: micheal willis on Jul 27, 2009 5:49 PM
Edited by: micheal willis on Jul 27, 2009 5:50 PM -
Hello,
Before to use remote assistance in windows 8.1, i need to configure my nat router freebox.
But remote assistance ( msra.exe ) use a dynamique port and never the same.
How to use a fixed port for remote assistance ini windows 8.1 ?
And why i can't use easy connect ?
i read that the router must implement the PNRP protocol. I think it's a propriatary microsoft's protocol unknow on my router.
ThanksHello,
Very good. It's a big range ( 255 mini from 49152 ) for a single port but if it's the only one possibility...
You are very helpfull ( i don't know if it's a good english but you make me very happy )
Merci beaucoup -
So how to specify different answer file for different install images in WDS snap-in?
hello
in WDS snap-in, in properties on server name, on client tab, we can define an answer file for unattended windows installation on WDS clients.
my question is, maybe we have added multiple images in WDS snap-in (win xp image, win 7 , win 2008,...)
now this one answer file applies to all of them ?
so how to specify different answer file for different install images in WDS snap-in?
thanks in advancedUnder the "Client" tab of WDS, you should only use an answer-file with settings relevant for the installation. This would be credentials for the WDS deployment share, international settings used during the setup and possibly also destination drive
details (if you want the installation to take care of partitioning the disk etc). The settings relevant for unattend-files used under "Client" would only be of those in phase 1 (WinPE).
However, if you would like to have specific unattend file for every installation, e.g. Win7, Server 2008, Win 8 etc, you can browse to the image under "Install Images" under the image Groups. There you can select properties for every image and
have a personal unattend-file.
hi Joel
very cool. thanks a lot, that really helped me.
best regards -
Error while extending a controller:not a valid base class for this operatn
Hi,
I tried to extend a controller. but the Jdev shows an error "oracle.apps.ar.Creditmgt.application.webui.OCMAddFinDataCO is not a valid base class for this operation. Can you please let me know why is Jdev not allowing me to create a new class.
Thanks,
PrakashYes I did. the class file exists in the Myclasses of Jdev in Jdevbin.Prakash myclasses folder is in \$JDEV_USER_HOME\jdevhome\jdev\myclasses.
Not in jdevbin.
Check this link
Re: Problem in creating Extended Class for Standard Controller
Thanks
AJ -
How to install knowledge base file for oracle text
how to install knowledge base file for oracle text?
there are couple of files droldUS.dat,.. which are required to generate gists and themes, where can i find them or install them.
please help!I checked the download page and it says:
"All Release 2 download pages contain Oracle Companion, Client, Clusterware, Gateways, and Application Express standalone downloads"
so you should already have it. Try searching for the filename that was in your error message. -
How to specify the XML Declaration for an XML variable
I need to set the XML declaration for my XML variable as
follows:
var employees:XML =
<?xml version="1.0" encoding="utf-8"?>
<employees>
<employee ssn="123-123-1234">
<name first="John" last="Doe"/>
<address>
<street>11 Main St.</street>
<city>San Francisco</city>
<state>CA</state>
<zip>98765</zip>
</address>
</employee>
<employee ssn="789-789-7890">
<name first="Mary" last="Roe"/>
<address>
<street>99 Broad St.</street>
<city>Newton</city>
<state>MA</state>
<zip>01234</zip>
</address>
</employee>
</employees>;
However, if I specify <?xml version="1.0"
encoding="utf-8"?>, I get a design time and compile error. If I
remove it it works fine. But the server to which I send this XML is
expecting the declaration. Can somebody help me with this?
ThanksI work mostly with the Java versions of the parser so you'll have to make the translation to C++. As far as I know, you can't use the SAX API to access to the encoding.
You need to use the DOM along with Oracle's extension to the basic DOM functionality. Oracle's package, oracle.xml.parser.v2 defines a class which implements the Document interface called XMLDocument. This class has a method, getEncoding(), which returns the encoding. You would use the method in getDocument() in the Parser base class inherited by DOMParser to retrive the XMLDocument.
Jeff -
Using base classes for common attributes
Can TopLink handle use of non-mapped abstract base classes? There are a number of fields that are common to each and every one of my domain objects which, following good OO design principals, are moved up to a common superclass. So I have:
public abstract class AbstractDomainObject
private Integer id;
private Date dateCreated;
private Integer creatorId;
private Date dateModified;
private Integer modifierId;
// ... appropriate attribute accessors
Then a concrete class which gets mappped in Workbench:
public class Address
extends AbstractDomainObject
... specific attributes
I tried mapping all the specific attributes explicitly defined in the Address class and then using "Map Inherited Fields > To SuperClass" in Workbench. However, when attempting to test my mappings in the SessionConsole, only the attributes explicitly defined on Address are present in the SELECT clause.
Can what I am trying be done? If so, how?Steve,
What you are trying to do is very common and the process you described is exactly how map the class. I will summarize a couple of points for mapping this scenario.
1. You only need to import Address in and map it. If AbstractDomainObject is imported into the Mapping Workbench make sure that it is disabled. The abstract class is only required on the project's CLASSPATH.
2. You should not enable inheritance for the Address class. Inheritance is for situations where the abstract base class has its own independent table. I am assuming that your Address class has its own table that contains fields for all of the attributes it needs along with those of the abstract base class.
Assuming these conditions are met then TopLink will work fine with you Address class just as if it had all of the inherited attributes directly.
If you are still having trouble take a look through your generated project (XML or Java) to ensure that mappings exist in Address for All attributes. If the project looks good then I am at a loss. Customers have been using this pattern of use for over 5 years with TopLink and Java inheritance.
Cheers,
Doug -
ClassFileTransformer and how to transform the base class first
Hello,
I've written a ClassFileTransformer that uses ASM to enhance classes at load time.
But some of the enhancements depends on possible enhancements to the super class.
Example: under some coditions a method doWork() is inserted. This method did not exist in any class (doWork is just an example, I use a name that is not accepted by the compiler but allowed by the JLS).
public class A {}
public class B extends A {}If the method doWork() was inserted into class A, then the doWork() of B has to call doWork() of class A:
super.doWork().Currently I try to load the base class by using
loader.loadClass(superName.replace('/', '.'));this loads the super class but without passing my transformer !
How can I solve this ?Looking at the comments in ClassFileTransformer.java and the code in ClassLoader, it seems the transformers are called only for class files that get a ClassFormatError. Transformers are intended to fix old broken/incompatible class files on the fly.
I guess the intended way to do what you are doing is to define a custom class loader. Read class into byte[], transform, call defineClass() on the transformed byte[]. Google for java custom class loader for examples. -
How to use inbound exit class for more than one workflow step
Hi All,
In Offline Workflow Approval Scenarios where the work items are sent to outlook of non sap users inbox through workitem exit of the respective workflow item. Based on the user reply from outlook email(either approve or reject) which sends an auto reply to Offline user . We configure an inbound exit class and assign the same in the SMICM transaction. Based on the code written using SAP_WAPI function modules in inbound class exit offline user gets the user approval result and performs the action in SAP.
My question now Is how can we use this inbound exit class for all the steps of a workflow.
For ex: In a workflow I have a decision step followed by an activity step. First I will write the work item exit for the user decision step and inbound exit code for the user decision step and offline user executed the user decision step with approve action.
followed by that I have an activity step for that I will code a work item exit for that activity level but how can I user the same inbound exit class for the activity step as well .
Quick reply would be of great help for me.
With Best Regards,
VeniFor the outbound processing you have the option of replacing the workflow exit by chancing the bsp application of the extended notification (see note 1448241 solution as an example of how to do the change) and replacing the standard links with a "mailto:...".
As far as the inbound processing, that depends on what should be done in the activity step, if for example you have a bapi which executes what the user does you can call it in the inbound class instead of the user and then the relevant wapi (complete the workitem/raise event etc.). -
How to get SDKODBC Wrapper class for indesign cs3
Hi,
I have to implement the mysql database with my indesign plugin. I didn't have a SDKODBC Wrapper class. Can any one say how to get SDKODBC Wrapper class from adobe.
Regards,
saravanan.I doubt if change documents are generated for SE78 transaction.
For list of change documents defined, please check table: TCDOB.
Hope this helps.
Kind Regards
Eswar -
How to create a container class for 2 object?
I use JDK to create 2 objects, one is Customer and one is Book. I need to enqueue these 2 objects, but they canot share the same queue class. Some one told me that I can create a container class for these 2 objects but I don't know how to create it. Can some one tell me how to create the container class?
I use JDK to create 2 objects, one is Customer and one
is Book. I need to enqueue these 2 objects, but they
canot share the same queue class. Some one told me
that I can create a container class for these 2
objects but I don't know how to create it. Can some
one tell me how to create the container class?
class CustomerBook{
Book m_book;
Customer m_customer;
pulbic CustomerBook (Customer customer, Book book){
m_book = book;
m_customer = customer;
}If you want to create a class that represents one customer and many books, do this:
class CustomerBooks{
Vector m_books;
Customer m_customer;
pulbic CustomerBook (Customer customer){
m_books = new Vector();
m_customer = customer;
public void addBook (Book book){
m_books.addElement (book);
public void displayBooks (){
//I assume the Book class has a toString method or something similar
for (int i = 0;i < m_books.size();i++){
System.out.println ("book: "+((Book)m_books.elementAt(i)).toString()); -
How to generate the trace files for remote db link session's?
User are complaining, the db link queries are performing slowness..
how to enable the sql trace session for db link's in remote database...
Is there any way to enable sqltrace for the dblink session ?
if not how to enable the sql trace for entire database level, rather than session based...An explain plan of the SQL being ran on the local database will review the SQL being passed to the remote db. You can then explain that SQL on the remote db.
I have had to tune a few distribued queries so more than likely the explain plan alone will be enough to allow you to tune the query to improve performance. If not then you can go to the trouble of trying to set up dual traces.
HTH -- Mark D Powell --
Maybe you are looking for
-
Pdf files not opening in Adobe Reader
As of 3weeks ago, all of my Pdf files are opening in Corel X3. How can I fix this?
-
Trying to create ringtones from music. Why does my itune page not show a ringtone tab?
Downloaded free app "ringtonemaker". instructions say to save it then select ringtone tab. My screen shows summary, info,apps, etc. but no ringtones tab.
-
After last update apps have been slower and crashing
whats wrong with this update that keeps crashing my apps for no reason. My iPad is now slower and sometimes just freezes
-
Burning CD's works fine, BUT when playing the cd, seconds are being skipped
Hi, Burning CD's works fine here, but when I play the completed CD, every 30 seconds a second of the song is being skipped. It's like it jumps one second forward. Any ideas for this problem? I already tried to solve it by rebooting and burning the pl
-
Visual Properties enhancement request
Hi, I'm using JDeveloper 9.0.3 preview to do some modelling. To keep my diagrams neat and clean, I always deselect 'show inner classes' from the visual properties context menu for java classes, as well as some other visual changes. The problem is, I