• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in linking java class with xml [need some advise]

 
Ranch Hand
Posts: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

i had given a task in my office, in which i need to write one utility class to create and load some data in our product, i wrote that one class which create huge amount of complex data, i just need to run that class and it creates and loads all the data.
now scenario is changed, we may need to load this when our product gets installed, but the problem is during product installation data can be loaded from xml loaders, but i created all data using java classes, and now i don't want to waste all my efforts, is there any way for this?

one way which hit my mind is, if i can call that java class in one xml file, and load data using that xml file, but i am not sure if this would be possible or not.

Thanks,
Punit
 
Punit Jain
Ranch Hand
Posts: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

please let me know if more information is needed, i really need to solve this issue.

Thanks,
Punit
 
Ranch Hand
Posts: 43
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you clarify more?

Am only getting bits and pieces of information. What is the complex data that you are generating?
 
Punit Jain
Ranch Hand
Posts: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well, that is data which we would need to use for performance testing, i can create that data with xml loaders as well, but the thing is it will again take lot of time of mine, and i just want to know, if i can use those java classes instead of xml's.

i wanted to know, if is there any way i can call that java file into xml.
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Punit Jain wrote:... if i can call that java class in one xml file, and load data using that xml file,...


XML is a markup language, not a language for executing code, so what you say in this statement makes no sense.

What exactly is your issue? It is not clear at all. Here is what I understand:
1) You have an application which stores data in XML
2) You wrote a class which loads data from XML into Java
3) You have an installer

After that I have no idea what you want or need. You talk about xml loaders, but what are those? What is the step that is missing? What exactly is supposed to happen at install time?
 
Punit Jain
Ranch Hand
Posts: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Steve Luke wrote:

Punit Jain wrote:... if i can call that java class in one xml file, and load data using that xml file,...


XML is a markup language, not a language for executing code, so what you say in this statement makes no sense.

What exactly is your issue? It is not clear at all. Here is what I understand:
1) You have an application which stores data in XML
2) You wrote a class which loads data from XML into Java
3) You have an installer

After that I have no idea what you want or need. You talk about xml loaders, but what are those? What is the step that is missing? What exactly is supposed to happen at install time?



well, sorry for the lack of information, i can't tell exactly what that data is.
but,

we have a product (a PLM software), usually we use loader(below example kind of loaders) to create data and load that data to our product, and if needed we can add that data at our product installation process, for that we have our own framework, which loads that data (Add those loader to our installation process).

And for creating that data using xml's we use our utility classes.
xml calls api's from those utility classes and create that data, for ex:
(suppose i need to create a user in our product, i call appropriate api in the xml, provide appropriate arguments and load that file, and it creates user to our product, something like this):

EX:


But the task which was given to me was to create a huge amount of data, for ex: 2000 user(just for example, but actual data was complex).
so if i created that using xml, they would get millions of lines, so instead of xml, i wrote a java class in which i used some loops, which create that data (for ex: 2000 users).

Now problem i am facing is, we can only load data using those loader (xml's), to our product, our framework allows them only, of course i can't change the framework, but if anything i could do from my side?

hope you got me, else let me know.

Thanks,
Punit











 
reply
    Bookmark Topic Watch Topic
  • New Topic