Dynamic creation of class objects?
I have a requirement where in at runtime I would know the class name, method name, properties, interface..and coding lines to be put into a method?
Can anyone suggest a way to create the consumable central class object with these details, activate it and without any manual intervention create this object in backend?
From other thread...use SEO* package
Similar Messages
-
Help with dynamic creation of class object names
Hi all
Wonder if you can help. I have a class player.java. I want to be able to create objects from this class depending on a int counter variable.
So, for example,
int counter = 1;
Player p+counter = new Player ("Sam","Smith");the counter increments by 1 each time the method this sits within is called. The syntax for Player name creation is incorrect. What I am looking to create is Player p1, Player p2, Player p3.... depending on value of i.
Basically I think this is just a question of syntax, but I can't quite get there.
Please help if you can.
Thanks.
Samhere is the method:
//add member
public void addMember() {
String output,firstName,secondName,address1,address2,phoneNumberAsString;
long phoneNumber;
boolean isMember=true;
this.memberCounter++;
Player temp;
//create HashMap
HashMap memberList = new HashMap();
output="Squash Court Booking System \n";
output=output+"Enter Details \n\n";
firstName=askUser("Enter First Name: ");
secondName=askUser("Enter Second Name: ");
address1=askUser("Enter Street Name and Number: ");
address2=askUser("Enter Town: ");
phoneNumberAsString=askUser("Enter Phone Number: ");
phoneNumber=Long.parseLong(phoneNumberAsString);
Player p = new Player(firstName,secondName,address1,address2,phoneNumber,isMember);
//place member into HashMap
memberList.put(new Integer(memberCounter),p);
//JOptionPane.showMessageDialog(null,"Membercounter="+memberCounter,"Test",JOptionPane.INFORMATION_MESSAGE);
//create iterator
Iterator members = memberList.values().iterator();
//create output
output="";
while(members.hasNext()) {
temp = (Player)members.next();
output=output + temp.getFirstName() + " ";
output=output + temp.getSecondName() + "\n";
output=output + temp.getAddress1() + "\n";
output=output + temp.getAddress2() + "\n";
output= output + temp.getPhoneNumber() + "\n";
output= output + temp.getIsMember();
//display message
JOptionPane.showMessageDialog(null,output,"Member Listings",JOptionPane.INFORMATION_MESSAGE);
}//end addMemberOn running this, no matter how many details are input, the HashMap only gives me the first one back....
Any ideas?
Sam -
Problem with Dynamically accessing EJB Class objects in WL 7.0 SP1
I am trying to build a component which has the ability to instantiate and execute
an known EJB method on the fly.
I have managed to build the component but when I try and execute it I get a ClassNotFoundException.
I know that the EJB I am trying to invoke is deployed and available on the server,
as I can see it in the console, I also seen to have been able to get the remote
interface of the object, my problem occurs when I try and access the class object
so I can perform a create on the object and then execute my method
The code I have written is below:
private Object getRemoteObject(Context pCtx, String pJNDIName, String pHomeBean)
throws Exception {
String homeCreate = "create";
Class []homeCreateParam = { };
Object []homeCreateParamValues = {};
try {
//This call seems to work and doesn't throw an exception
Object home = pCtx.lookup(pJNDIName);
//However this call throws a java.lang.ClassNotFoundException
Class homeBean = Class.forName(pHomeBean);
Method homeCreateMethod = homeBean.getMethod(homeCreate,homeCreateParam);
return homeCreateMethod.invoke(home, homeCreateParamValues);
} catch (NamingException ne) {
logStandardErrorMessage("The client was unable to lookup the EJBHome.
Please make sure ");
logStandardErrorMessage("that you have deployed the ejb with the JNDI
name "+pJNDIName+" on the WebLogic server ");
throw ne;
} catch (Exception e) {
logStandardErrorMessage(e.toString());
throw e;
Any advice would be really appreciated, I'm fast running out of ideas, I suspect
it has something to do with the class loader but I'm not sure how to resolve it
Regards
Jo CorlessHello Joanne,
Congratulations! I'm very happy that you've managed to fix your problem. It's
always essential to understand how to package applications when deploying on BEA
WebLogic. Usually, by throwing everything into an EAR file solves just about all
the class loader problems. :-) Let us know if you have any further problems that
we can assist you with.
Best regards,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
"Joanne Corless" <[email protected]> wrote:
>
>
I've fixed it!!!!!!!!
Thanks to everyone who gave me help!!!!
The class loader was the culprit which is what I suspected all along.
As soon
as I put the 2 jar files I was using into an EAR file the problem went
away!!!!!
Thanks again
Jo Corless
"Ryan LeCompte" <[email protected]> wrote:
Hello Joanne,
As Mr. Woollen mentioned, I also believe it's a problem with the class
loader.
You need to be careful how you arrange your EJBs, because WebLogic has
a specific
method in which it loads classes in an EAR, JAR, and WAR file(s). Please
refer
to http://dev2dev.bea.com/articles/musser.jsp for more information about
BEA WebLogic
class loading mechanisms and caveats. Also, try printing out the various
methods
that are available on the object that was returned to you via reflection.
For
example, use the getMethods() method, which returns an array of Method
objects
that you can subsequently cycle through and print out the various method
names.
This way you can discover if the class found/returned to you is indeed
the one
you intend to locate.
Hope this helps,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
Rob Woollen <[email protected]> wrote:
I believe the issue is the home interface class for this EJB is not
available in the class loader which is doing the reflection.
If you do:
getClass().getClassLoader().loadClass(homeInterfaceClassName)
I suspect it will fail. Reflection still requires that the class be
loadable.
-- Rob
Joanne Corless wrote:
Hi Slava,
If I make my code look like you describe below I get a compliationerror telling
me that
home.getMethod() is not recognised (no such method)
If I change it slightly and use
Method homeCreateMethod =
home.getClass().getMethod(homeCreate,homeCreateParam);
The code will compile OK but when executed it still throws a NoSuchMethodException
Any ideas ?
Thanks for your help so far
Regards
Jo Corless
Your code should look like
Object home = pCtx.lookup(pJNDIName);
Method homeCreateMethod =
home.getMethod(homeCreate,homeCreateParam);
return homeCreateMethod.invoke(home, homeCreateParamValues);
Regards,
Slava Imeshev
"Joanne Corless" <[email protected]> wrote in message
news:[email protected]...
Hi Ryan,
I also wanted to mention that if you do a "header search" in this
particular
newsgroup
with the search query as "reflection", you will see many previousmessages
regarding
reflection and EJBs. I believe you could learn a lot from thedifficulties
that
others have faced and solved.I tried that and although there was a number of similar cases noneof them
actually
seem to fix my issue. Thanks for the suggestion though
Are the EJBs that you are trying to access accessible via your
system
classpath?
Try to avoid having them accessible via the main system classpath,and
only bundle
them in your appropriate EJB jar files (contained in an EAR file,for
example).Maybe I should have laid the problem out a little clearer.
I have a number of EJB's bundled up in a JAR file which is hot deployedto
the
server. Within this first JAR file is an EJB (SSB) component that
needs
to
be
able to invoke a known method on another EJB. This second EJB may
or
may
not be
within the first JAR file but it also will be hot deployed.
The component trying to invoke the method on the 2nd EJB has to
be
able to
create
an instance of the 2nd EJB without actually knowing anything bar
a
JNDI
Name which
is passed in at runtime.
I can get as far as doing the
Object home = pCtx.lookup(pJNDIName);
This returned a class with the name
"com.csc.edc.projects.allders.httppostoffice.postman.PostmanBean_mp8qy2_Home
Impl_WLStub"
My problem seems to occur when I try and invoke the create method
Method homeCreate = home.getClass().getMethod("create", new Class[0]);
My code throws a java.lang.NoSuchMethodException at this point so
I
am
unable
to progress to the next step of :
Object bean = homeCreate.invoke(home, null);
So I can return the instantiated bean back to the calling client.
Why am I getting the NoSuchMethodException, is is because I am gettinga
stub
back rather than the home interface and if so how do I get the truehome
interface
from the bean
Thanks in advance
Jo Corless -
Dynamic Creation of Entity Objects (ADF Business Components)
Hi All,
We have a requirement to create Entity Objects for the dynamically generated tables in our application and at the same time bind them to different views.
Our product create multiple tables at runtime with some sort of naming convention, and we couldn't find a way in JDeveloper to generate entity objects for the tables created dynamically.
Please provide some pointers if you have experienced or worked on similar requirement.
Thanks,
NikhileshThanks for the help Sudipto.
The link which you have shared, describes the creation of an entity object and then modify the operations like Delete Update and Insert etc to be performed on the entity object by creating IMPL classes and implementing certain interfaces.
But I need to create Entity objects dynamically. My application creates new tables for some functionality at the run time and I have to create Entity objects for those new tables as soon as the new tables are created.
I was just wondering if, there is any API available for creating the entity object from Java code instead of invoking the wizard in the Jdeveloper. -
hi there
i was wondering if it was possible to create an instance of a
class (AS 2.0) at runtime, given just a string value for the class
name
eg, my first attempt was something like
var class_str:String = "MyClass1";
var inst
bject = new eval(class_str)();
now, "eval(class_str)" returns an object of type "function",
ie the function reference to the class constructor, and so all i
get is a new "function object"
any clues, or am i p***ing in the wind?
tia
bhuI'm afraid "eval()" can't be used this way:
LiveDocs -
Dynamic creation of class at runtime
I need to be able to dynamically create an instance of a
class that isn't known until runtime - actually based on the
filename
so in my fla:
var className:String="Test"; /* code to get a class name
derived from the filename */
var obj = new [className]();
trace(obj);
the code above only works if i put the literal directly in [
like so:
var obj = new ["Test"]();
is there a way to do this???
Any help much appreciated
cheers SteveThis might help you out:
http://dynamicflash.com/2005/03/class-finder/
"steveanson" <[email protected]> wrote in
message
news:e3fcnv$6c7$[email protected]..
> I need to be able to dynamically create an instance of a
class that isn't
known
> until runtime - actually based on the filename
>
> so in my fla:
> var className:String="Test"; /* code to get a class name
derived from
the
> filename */
> var obj = new ();
> trace(obj);
>
> the code above only works if i put the literal directly
in
> like so:
> var obj = new ();
>
> is there a way to do this???
> Any help much appreciated
> cheers Steve
>
>
> -
Dynamic Creation of Class Name
I just want to create the class name on the fly.
Look the example below.
String className = "gui.Header";
className header = new className;
Let's assume that there is a Header class somewhere.
Is this possible? or is there a way to do this?From what i understand, u wish to create an instance of a class whose name is known to you at runtime - correct me if i'm wrong - i'll answer based on my assumption. You can basically do that using Reflection in Java. I'm pasting sample code which shows how you do this:
The following sample program creates an instance of the Rectangle class using the no-argument constructor by calling the newInstance method:
import java.lang.reflect.*;
import java.awt.*;
class SampleNoArg {
public static void main(String[] args) {
Rectangle r = (Rectangle) createObject("java.awt.Rectangle");
System.out.println(r.toString());
static Object createObject(String className) {
Object object = null;
try {
Class classDefinition = Class.forName(className);
object = classDefinition.newInstance();
} catch (InstantiationException e) {
System.out.println(e);
} catch (IllegalAccessException e) {
System.out.println(e);
} catch (ClassNotFoundException e) {
System.out.println(e);
return object;
Hope the above helps.
John Morrison -
Dynamic creation of class and calling methods
I've got and interface called Transformation and then two implementations called TxA and TxB, where TxA and TxB have their own attribtues and setter and getters for these attributes.
The question is, I need to create instances of TxA and TxB and called the setter and getters where I at runtime I only know the attribute to set, how can I create and instance and call the right getters and setters methods?
Thanks in advanceSmart money says your design sucks and needs to be rethought entirely. Can we get specifics?
Drake -
Java Core Program :: Dynamic Object Creation for Classe & Invoking the same
Hi,
I need to create a dynamic object for a class & invoke it.
For eg: I have a table in my DB where all the names of my java classes are stored. I need to call name from the table of the DB and call that class dynamically in my java program.
ResultSet_01 = executeQuery("select classname from class_table where class_descrip = 'Sales Invoice' ");
while(ResultSet_01.next())
String class_name = ResultSet_01.getDouble("classname");
}Now using the string in class_name that is fetched from ResultSet_01, I need to create an object for the class_name & invoke the class that is been created with the same name.
Thank in advance.
Regards,
Haider ImaniWell for a start since a class name is a String, not a number you'd better start by getting the name with getString() not getDouble().
You need to work with fully qualified names, (FQNs) like "com.acme.myproject.MyDynamicClass", not just the bare MyDynamicClass.
The next question is where the .class files for the dynamically loaded classes are stored. If they are part of your normal program code, on the class path, then you can use Class.forName to load the class and return a Class object. If they are in some special place you'll need to create a URLClassLoader and get the Class from that.
Generally, when you load a class this way, it should implement some known interface, or extend some know abstract class. By placing objects of the dynamic class in a reference to that interface you can use the methods defined in the interface.
The usual way of getting an instance of a dynamic class is to call newInstance() on the Class object. -
How to automate the creation of Function Module & Class Object (SE24)
Experts,
I have the requirement to automate the creation of any type of programs: ie function module (like how we normally create in SE37 together with the parameters), class object (like how we normally create in SE24 together with attribute & method), normal report (like how we did in SE38), module pool and so on.
For example. I backuped my program into a flat file (the entire source code in txt formal or HTML) through a download program and I need to upload back this flat file into another installation of SAP.
Does SAP provide any predefined FM to cater for the above cases or better still, does anyone know of any upload program which I can use for the above requirement.
Thanks in advance.Hi Kris, I can't use the transport system as these are 2 separate SAP installation in a different place. The requirement came in the form of creation of program to be able to generate FM/Class/Report on the go.
-
How to typecast Object Class object dynamically
Hai every one
i have a object of any particular class , but i don't know the variables in that class object. But i have string variable contains value of variables in that class object.
So i use following method for get value of variables in that class object.
class ObjectCLass
Sub s=new Sub();
public static void main(String[] args)
ObjectCLass a=new ObjectCLass();
try
System.out.println(*a.getClass().getDeclaredField("s").get(a)*);
catch(Exception e)
System.out.println("Exception");
class Sub
int i=5;
public void print()
System.out.println("Hello World!");
}Here the bolder line give Object class object. By using this Object class object i need access the variable i and method print(). So i need to cast Object class object into sub class
so how can i typecast it
i try with following methods , but i cant succeed
1.( *(a.getClass().getDeclaredField("s").get(a).getClass)* a.getClass().getDeclaredField("s").get(a) ).print() ;
2.( (Class.forName(�Sub�) ) a.getClass().getDeclaredField("s").get(a) ).print();Please any one one help me how to typecast it dynamically
By
ThiaguIf you know you're going to invoke the "print" method on an object, then you also need to know the type of the class, or interface, which has that method.
It seems what you are looking for is a tutorial on interfaces.
http://java.sun.com/docs/books/tutorial/java/IandI/index.html
In a nutshell, you can set up an interface which defines a "print" method, and create class(es) which implement that interface. Then as long as you have an object which implements that interface, but do not know the exact type of that object, you can simply cast it to the interface type and invoke the method. -
Dynamic or Static Objects
It seems to me there is a big cliff at the point of deciding to instantiate your class at runtime or static load
on start-up.
My swf apps have a pent-up burst that happens a couple seconds into the run. I think I get this on most
web pages that have flash banners.
Flash apps that have a loader bar can take 60 secs. These ones usually come on with a bang with a lot of
high quality graphics.
Therer is a big processor spike at start-up with the browser loading http page. Flash seems to want a big spike
with its initial load. The javascript embed doesn't help either.
How to get a smooth start-up? Me English good.
This seems like a matter of correctness, only indirectly relating to speed.
The speed that a SWF loads from a web page is determined by many things, like server connection speed, client connection speed, browser cache size, client RAM, etc. Having static vs. dynamic classes would not impact this very much.
First of all, "static objects" is kind of an oxymoron because you can't instantiate (create an object) of a static class. I would say that having static variables/methods in a class is usually when you want some shared values/functionality without requiring an actual object (taking up memory) -- although static practices certainly extend beyond just this. I always try to think of a Math class. You wouldn't have to have to say m = new Math() just to use some common methods (square, sin, cos, etc.) or values (pi, e, etc.). They become kind of like "global constants/methods" in a sense (not to invoke the debate over correctness of that wording).
In short, it's more of a memory issue, which will like not have much influence over loading speed. If you want to improve your loading speed, you can try to delay the creation of your objects based on certain events instead of having them all load at startup.
How to get a smooth start-up? Me English good. -
Multidimensional array in jquery class/object
I'm trying to get into javascript and jquery for a hobby project of mine. Now I've used the last 4 hours trying to find a guide on how to create class objects that can contain the following information
Identification : id
Group : group
Persons : array(firstname : name, lastname : name)
Anyone know of a tutorial that can show me how to do this?
I found this page where I can see that an object can contain an array, but it doesn't state whether it is possible to use a multidimensional array.
And this page just describes the object with normal values.
Any pointers in the right direction are appreciated.There are no classes in JavaScript. It uses a different style of objects and what you found is indeed what you need.
Well, it might help to think about it as a dynamic, runtime-modifiable object system. An Object is not described by class, but by instructions for its creation.
Here you have your object. Note that you can use variables everywhere.
var id = 123;
var test = {"Identification": id,
"Group": "users",
"Persons": [{"firstname":"john", "lastname":"doe"},{"firstname":"jane","lastname":"doe"}]
This is identical to the following code. (The first one is a lot nicer, though.)
var id = 123;
var test = new Object();
test.Identification = id;
test["Group"] = "users;
test.Persons = new Array();
test.Persons.push({"lastname":"doe","lastname":"john"});
test.Persons.push({"lastname":"doe","lastname":"jane"});
As you can see, you can dynamically add new properties to an object. You can use both the dot-syntax (object.property) and the hash syntax (object["property"]) in JavaScript. -
Issues in persisting dynamic entity and view objects using MDS
Hi All,
I'm trying to create dynamic entity and view objects per user session and to persist these objects throughout the session, I'm trying to use MDS configurations(either file or Database) in adf-config.xml.
I'm facing following two errors while trying to run the app module:
1. MDS error (MetadataNotFoundException): MDS-00013: no metadata found for metadata object "/model/DynamicEntityGenModuleOperations.xml"
2. oracle.mds.exception.ReadOnlyStoreException: MDS-01273: The operation on the resource /sessiondef/dynamic/DynamicDeptEntityDef.xml failed because source metadata store mapped to the namespace / DEFAULT is read only.
I've gone through the following links which talks about the cause of the issue, but still can't figure out the issue in the code or the config file. Please help if, someone has faced a similar issue.
[http://docs.oracle.com/cd/E28271_01/doc.1111/e25450/mds_trouble.htm#BABIAGBG |http://docs.oracle.com/cd/E28271_01/doc.1111/e25450/mds_trouble.htm#BABIAGBG ]
[http://docs.oracle.com/cd/E16162_01/core.1112/e22506/chapter_mds_messages.htm|http://docs.oracle.com/cd/E16162_01/core.1112/e22506/chapter_mds_messages.htm]
Attached is the code for dynamic entity/view object generation and corresponding adf-config.xml used.
///////////App Module Implementation Class/////////////////////////
public class DynamicEntityGenModuleImpl extends ApplicationModuleImpl implements DynamicEntityGenModule {
private static final String DYNAMIC_DETP_VO_INSTANCE = "DynamicDeptVO";
* This is the default constructor (do not remove).
public DynamicEntityGenModuleImpl() {
public ViewObjectImpl getDepartmentsView1() {
return (ViewObjectImpl) findViewObject("DynamicDeptVO");
public void buildDynamicDeptComp() {
ViewObject internalDynamicVO = findViewObject(DYNAMIC_DETP_VO_INSTANCE);
if (internalDynamicVO != null) {
System.out.println("OK VO exists, return Defn- " + internalDynamicVO.getDefFullName());
return;
EntityDefImpl deptEntDef = buildDeptEntitySessionDef();
ViewDefImpl viewDef = buildDeptViewSessionDef(deptEntDef);
addViewToPdefApplicationModule(viewDef);
private EntityDefImpl buildDeptEntitySessionDef() {
try {
EntityDefImpl entDef = new EntityDefImpl(oracle.jbo.server.EntityDefImpl.DEF_SCOPE_SESSION, "DynamicDeptEntityDef");
entDef.setFullName(entDef.getBasePackage() + ".dynamic." + entDef.getName());
entDef.setName(entDef.getName());
System.out.println("Application Module Path name: " + getDefFullName());
System.out.println("EntDef :" + entDef.getFileName() + " : " + entDef.getBasePackage() + ".dynamic." + entDef.getName());
entDef.setAliasName(entDef.getName());
entDef.setSource("DEPT");
entDef.setSourceType("table");
entDef.addAttribute("ID", "ID", Integer.class, true, false, true);
entDef.addAttribute("Name", "NAME", String.class, false, false, true);
entDef.addAttribute("Location", "LOCATION", Integer.class, false, false, true);
entDef.resolveDefObject();
entDef.registerSessionDefObject();
entDef.writeXMLContents();
entDef.saveXMLContents();
return entDef;
} catch (Exception ex) {
System.out.println(ex.getLocalizedMessage());
return null;
private ViewDefImpl buildDeptViewSessionDef(EntityDefImpl entityDef) {
try {
ViewDefImpl viewDef = new oracle.jbo.server.ViewDefImpl(oracle.jbo.server.ViewDefImpl.DEF_SCOPE_SESSION, "DynamicDeptViewDef");
viewDef.setFullName(viewDef.getBasePackage() + ".dynamic." + viewDef.getName());
System.out.println("ViewDef :" + viewDef.getFileName());
viewDef.setUseGlueCode(false);
viewDef.setIterMode(RowIterator.ITER_MODE_LAST_PAGE_FULL);
viewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
viewDef.setSelectClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
viewDef.setFromClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
viewDef.addEntityUsage("DynamicDeptUsage", entityDef.getFullName(), false, false);
viewDef.addAllEntityAttributes("DynamicDeptUsage");
viewDef.resolveDefObject();
viewDef.registerSessionDefObject();
viewDef.writeXMLContents();
viewDef.saveXMLContents();
return viewDef;
} catch (Exception ex) {
System.out.println(ex.getLocalizedMessage());
return null;
private void addViewToPdefApplicationModule(ViewDefImpl viewDef) {
oracle.jbo.server.PDefApplicationModule pDefAM = oracle.jbo.server.PDefApplicationModule.findDefObject(getDefFullName());
if (pDefAM == null) {
pDefAM = new oracle.jbo.server.PDefApplicationModule();
pDefAM.setFullName(getDefFullName());
pDefAM.setEditable(true);
pDefAM.createViewObject(DYNAMIC_DETP_VO_INSTANCE, viewDef.getFullName());
pDefAM.applyPersonalization(this);
pDefAM.writeXMLContents();
pDefAM.saveXMLContents();
////////adf-config.xml//////////////////////
<?xml version="1.0" encoding="windows-1252" ?>
<adf-config xmlns="http://xmlns.oracle.com/adf/config" xmlns:config="http://xmlns.oracle.com/bc4j/configuration" xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
xmlns:sec="http://xmlns.oracle.com/adf/security/config">
<adf-adfm-config xmlns="http://xmlns.oracle.com/adfm/config">
<defaults useBindVarsForViewCriteriaLiterals="true"/>
<startup>
<amconfig-overrides>
<config:Database jbo.locking.mode="optimistic"/>
</amconfig-overrides>
</startup>
</adf-adfm-config>
<adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
<adf-property name="adfAppUID" value="TestDynamicEC-8827"/>
</adf:adf-properties-child>
<sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
<CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore" credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
</sec:adf-security-child>
<persistence-config>
<metadata-namespaces>
<namespace metadata-store-usage="mdsRepos" path="/sessiondef/"/>
<namespace path="/model/" metadata-store-usage="mdsRepos"/>
</metadata-namespaces>
<metadata-store-usages>
<metadata-store-usage default-cust-store="true" deploy-target="true" id="mdsRepos">
<metadata-store class-name="oracle.mds.persistence.stores.file.FileMetadataStore">
<property name="metadata-path" value="/tmp"/>
<!-- <metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
<property name="jndi-datasource" value="jdbc/TestDynamicEC"/>
<property name="repository-name" value="TestDynamicEC"/>
<property name="jdbc-userid" value="adfmay28"/>
<property name="jdbc-password" value="adfmay28"/>
<property name="jdbc-url" value="jdbc:oracle:thin:@localhost:1521:XE"/>-->
</metadata-store>
</metadata-store-usage>
</metadata-store-usages>
</persistence-config>
</adf-config>
//////////////////////////////////////////////////////////////////////////////////////////////////////////Hi Frank,
I m trying to save entity and view object xml by calling writeXMLContents() and saveXMLContents() so that these objects can be retrieved using the xmls later on.
These methods internally use MDS configuration in adf-config.xml, which is creating the issue.
Please share your thoughts on resolving this or if, there is any other way of creating dynamic entity/view objects for db tables created at runtime.
Nik -
Creation of login object failed
Hi all,
I've got a problem with the mobile client development.
We are using the mobile client for many years and we even develop a lot with it, but now i have a problem never seen.
After extending a bDoc and start testing the application, after the generation and login, system states "Creation of login object failed".
So i did a full generation. Result the same.
I debugged the ValidateLogin class and found out, that in the following statement is failing
BOLOGIN = BusinessRootObject.BusinessFactory.LoadBusinessObject("LOGIN", determineUser)
BOLOGIN is Nothing at the end. I tried out to create the Object via BOLOGIN = BusinessRootObject.BusinessFactory.CreateBusinessObject("LOGIN")
same result. Next i tried to create the BOACTIVITY and it failed as well. One day before everything was fine, even with changing business documents.
The error in the VB.ERR object says:
- err {Microsoft.VisualBasic.ErrObject} Microsoft.VisualBasic.ErrObject
Description "In der Methode BusinessFactoryCore.LoadBusinessObject ist eine System-Exception aufgetreten" String
Erl 0 Integer
HelpContext 0 Integer
HelpFile "" String
LastDllError 3 Integer
Number 5 Integer
Source "MTBLLFW" String
Can anybody please give a hint.
We are using CRM 5.0 SP7 and MSA SP7 on MS 2003 Server with local repository. DB is SQL2000.
Yesterday i was releasing a changelist and now its no longer working at all, what a mess.
Thanks to all,
Andreas RoseHi Andreas,
The problem may be incorrect or corrupt ARSREP.DAT file.
The reason may be that the BDOCs are not synched from MAS. Once you sync this through MAS you will find the *.bdoc files at the location
mentioned under the registry key HKLM\SOFTWARE\SAP\MSA\MW\TL\BDocPath
Usually this would be default as C:\Program Files\SAP\Mobile\tpsfiles.
After this when you generate the BusinessLibrary the Arsrep.dat file
will have the *.bdocs incorporated in the Arsrep.dat file.
Hope this helps.
Regards, Gervase
ps. For synching the BDocs refer to SAP Note 942942
Maybe you are looking for
-
Experts can you help me with: How to debug a transaction activating an event in FI-CA? Do you have a how to guide? About debugging a transaction using of the events in FI-CA? Rgs,
-
I am very disappointed about Creative customer sercice!
Hallo i'm writing from Italy just to tell you my adveture with Creative: -I bought a creative zen 30g on november, it was a REFURBISHED one; -After a couple of weeks it was....useless, always freezing - a coulpe of week of emails with the techician o
-
Every time I open a new Firefox window a dowload dialog box opens
Every time I open a new Firefox window, a download dialog box opens with the last youtube .flv file that I converted to an mp3 from www.flv2mp3.com and the box offers the options to open it or save it. I have to click cancel it every time (or try ope
-
Using AS to reference xml?
Can I use an ActionScript variable to reference in xml element? For example, I have an xml document that lists trees and their characteristics. In it's simplest form the xml looks generally like this: <trees> <tree id="1"> <commonName>Birch, Paper</c
-
When i turned on my new Macbook in the morning today, i was at 56gb's, out of 80gb. Now it states its a 53gb's. i obtained some music files but wish now to delete them off my computer. how do i do this? how can i get precious gb's back? isnt there so