Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: How to call a EAR file from standalone java code

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to call a EAR file from standalone java code

    Hi,

    Can someone please help me with sample code for below scenario:

    I have a EAR file which has a java class file and EAR file is deployed in weblogic.
    I have to call the java class of EAR file from a standalone java code which is present inside a JAR.
    While making the call to EAR i have to pass a parameter from JAR to one of the methods of class file which is present in EAR.
    Please help me with sample code.

    Thanks & Regards,
    Enigma.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to call a EAR file from standalone java code

    Do you have a custom classloader that can read the EAR file and extract the class file?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Apr 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to call a EAR file from standalone java code

    Quote Originally Posted by Norm View Post
    Do you have a custom classloader that can read the EAR file and extract the class file?

    Hello Norm,

    No i don't have a custom classloader.Can you please tell me how is usefull to read EAR file and extract class file with an example.

    Thanks & Regards,
    Enigma.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to call a EAR file from standalone java code

    I do not know anything about EAR files.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 7
    Last Post: March 19th, 2013, 09:45 AM
  2. Lauching a standalone java application
    By jmweli in forum Java Theory & Questions
    Replies: 2
    Last Post: June 15th, 2012, 01:32 PM
  3. Tutorial how to call OSGI service from EAR package
    By rcbandit2 in forum Java Theory & Questions
    Replies: 0
    Last Post: January 4th, 2012, 10:15 AM
  4. How to compile OSGI bundle as EAR file in Netbeans
    By rcbandit in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: October 26th, 2011, 01:53 AM
  5. Error while deploying .ear file
    By urslalitha in forum Exceptions
    Replies: 1
    Last Post: August 18th, 2009, 02:56 AM