JNLP app using ejb - OutOfMemoryError

I have an application, fully signed, that connects to a
database on the same intranet, using ejb's.
When the user clicks on icons, the system loads data from the database into various tables. each data object type does a separate access to the database.
When the app is run in Oracle 9i JDeveloper it works fine but when I deploy over JNLP I get an out of mem error after the first access. This first access seems to work fine.
I have tried to increase the initial and max heap sizes in the jnlp file but all this does is take longer for the out of mem error to be thrown.
There doesnt seem to be any problem with loading up classes and Im stumped.
Below is some sample code used for one of the entity objects, used to access the ejb's.
  public Vector getArisingList(String aircraftID)
    try
      Vector v = getEjb().getArisingList(aircraftID);
      clearEjb();
      return v;
    catch (Throwable e)
      e.printStackTrace();
    return null;
  } and get/clearejb() go like this..  private ArisingService1 getEjb()
    if (ejb == null)
      try
         ejb = lookupHome().create();
      catch(Throwable e)
        e.printStackTrace();
    return ejb;
  private ArisingService1Home lookupHome()
    ArisingService1Home home = null;
    String ejbUrl = "ArisingService";
    try
      Context ctx = new nazca.NazcaRemoteContext().getContext();
      home = (ArisingService1Home)ctx.lookup(ejbUrl);
    catch (Throwable e)
      e.printStackTrace();
    return home;
  // for use after each call to getEjb so the session is cleared on the server
  private void clearEjb()
    try
      ejb.remove();
    catch(Throwable e)
      System.err.println("Cound not call ejb.remove()");
    ejb = null;
  }   Does anyone know what is going wrong?
Should I be clearing up some ejb stuff that im not?
Thanks in anticipation

Hello,
Dit you take a look at :
http://forum.java.sun.com/thread.jsp?forum=38&thread=181307
You also seem to be writing to the standard output.

Similar Messages

  • Two web apps using the same EJB client jar

    I am currently deploying two web apps on a server. Both web apps use an EJB client
    jar (the same jar) to access EJB's and both apps work when tested independently.
    The problem arises when I log into app A and then log into app B. As soon as
    I do app A loses it's references to the EJBHomes, and other classes.
    It seems a classloader is unloading the first classes and instances loaded by
    the first app and then loading them from app B's client.jar.
    If I put the client.jar in the system classpath everything is fine, but that's
    just a hack.
    Is it not possible to deploy two web apps on a server using the same client.jar's
    in their own WEB-INF/lib's?

    Joe,
    As Pravin mentions, the checking of those boxes in Workbench triggers scheduled jobs within the EAC that kicks off the scripts at the appropriate time/day. But as you've noticed, there's not a ton of flexibility and you don't get cron or Windows Scheduler-type capabilities.
    If you need to do something special, you can manually kick off the report generation scripts from your control directory using the runcommand.bat (or sh) script or place the command into a cron/Windows Scheduler job:
    For example, to kick off the WeeklyReports job, you would do this:
    runcommand.sh WeeklyReports runSo, assuming you go down the route of creating multiple ReportGenerators and scripts, you would create a job to kick off the new script you've created at the appropriate time.
    Hope that helps,
    Patrick
    http://branchbird.com

  • A Tip for using EJB 3.0 with WebLogic Ant Tasks

    I started out writing this up as a problem, but then I found the answer so I'm, posting a tip instead.
    When I tried to write an EJB [stateless] using EJB 3.0 in my legacy Weblogic ear project I started getting this error:
    <pre>
    No EJBs found in the ejb-jar file 'test'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
    </pre>
    This is why: wlcompile will put the class files in the App-Inf/classes directory unless it finds an ejb-jar.xml file in the META-INF directory for the module it is working on. With EJB 3.0, I wasn't using an ejb-jar.xml file because it was unnecessary. Later, Appc runs and it complains <b>because there are no classes module directory, they went into the shared ear folder instead.</b>
    Here's I how it working again: Use javac [not wlcompile] to compile the EJB 3.0 module and make sure that the class files go into the correct module directory. Then you can use wlappc to generate all the associated files for the EJB. I have sucessfully deployed an ear file that uses both EJB 2.x and EJB 3.0 with this approach.
    I wish Weblogic's own ejb3.0 sample application used their split directory deployment.
    Good Luck.
    John Aronson

    Hi John,
    I am working on development an enterprise application using EJB 3.0 on Weblogic 10.
    While developing, I am keeping all my classes (from ejb's as well as web) into APP-INF/classes directory. It is working fine for Web and ejb 2.0 packages, but ejb 3.0 packages, I get the following error when I keep my ejb 3.0 beans classes in APP-INF/classes directory.
    No EJBs found in the ejb-jar file 'customer'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
    One solution is to keep the classes under customer ejb directory, but I wan tto keep all the classes in APP-INF/classes directory so that when using Eclipse IDE I can output all compiled sources into APP-INF/classes directory.
    Has anyone faced this situation? Any suggestions to fix this issue?

  • Error during deployment of stateless session EJB using EJB 3.0

    having trouble deploying a stateless session bean to app server 10.1.3.1 oc4j container.
    deceided to go through oracles demo: How-To Develop a Stateless Session EJB using EJB 3.0 (http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-ejb30-stateless-ejb/doc/how-to-ejb30-stateless-ejb.html).
    the demo encounters the same issue. so i assume there is something wrong with the app server set up, and not my source code.
    here is the deployment log:
    [Jul 1, 2009 11:59:25 AM] Application Deployer for test_ws STARTS.
    [Jul 1, 2009 11:59:25 AM] Copy the archive to C:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\test_ws.ear
    [Jul 1, 2009 11:59:25 AM] Initialize C:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\test_ws.ear begins...
    [Jul 1, 2009 11:59:25 AM] Unpacking test_ws.ear
    [Jul 1, 2009 11:59:25 AM] Done unpacking test_ws.ear
    [Jul 1, 2009 11:59:25 AM] Initialize C:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\test_ws.ear ends...
    [Jul 1, 2009 11:59:25 AM] Starting application : test_ws
    [Jul 1, 2009 11:59:25 AM] Initializing ClassLoader(s)
    [Jul 1, 2009 11:59:25 AM] Initializing EJB container
    [Jul 1, 2009 11:59:25 AM] Loading connector(s)
    [Jul 1, 2009 11:59:26 AM] Starting up resource adapters
    [Jul 1, 2009 11:59:26 AM] Processing EJB module: ejb30ws-ejb.jar
    [Jul 1, 2009 11:59:26 AM] application : test_ws is in failed state
    [Jul 1, 2009 11:59:26 AM] Operation failed with error: java.lang.NoClassDefFoundError
    the opmn log reveals the same error, but no more detail.
    any ideas???
    /stuck

    I am having exactly the same issue. Was this issue resolved? If so, please share the resolution and if not can someone please suggest what could be wrong.
    Thanks

  • Java 6u24 won't launch signed JNLP app with classes compiled with JDK 1.4.2

    Anyone else having a problem launching a JNLP app compiled with Java 1.4 using Java 6u24 on the client? Anyone have a Java 1.4-compiled app that does launch with Java 6u24?
    I am, and I have isolated the problem to some change in 6u24's java web start launching logic. The splash screen appears and then javaws just quits with no error. Trace shows it is not getting past checking of the first .jar. My JNLP app, fully signed with CA-issued certificate, when compiled with Java 1.4.2 will not launch on JRE 6u24 (or 6u25-b03). The same exact app launches perfectly fine when it is compiled with JDK 1.5 or 1.6. It is not a signing problem, though it is related to certificate checking logic or a concurrency flaw in javaws' AppPolicy and TrustDecider classes. It is not a host server or network problem as those have been varied with same results. It is not a specific .jar problem as I have varied what is the first .jar with same results. I have eliminated all other variables to find the only difference is what Java version the app is compiled with. Well, all but one other variable - I have not tried with apps other than mine.
    My app is compiled with JDK 1.4.2 so I can still support older platforms. That requirement is going away soon but this is still a regression from 6u23 that is causing a big problem for at least this developer.

    You can try to use the version of the jarsigner JDK 1.5 or later.
    Has changed the management of files in META-INF.
    So compile with 1.4 but sign with 1.5 or later

  • Why use EJB?

    I am somewhat new to Enterprise Computing and I am a little unclear about these technologies.
    Could someone please let me know why should we use EJB classes in web applications instead of normal classes for executing business logic?
    Thanks and regards.
    Soham

    While I agree that most people using EJB's could have
    built a better solution, I think both of the above
    posters are completely wrong.
    Not at all... You just don't get the point...
    Most problems to which EJBs are applied are not problems to which EJBs should ever have been applied at all.
    Before answering your question though, keep in mind
    there are at least 3 types of EJB's, and all are
    completely different. So I can only answer your
    question at a high level. Here are the reasons people
    might use EJB's:
    And according to the specs you use them all or you don't use EJB...
    They are container managed.Granted
    They offer transactional awareness in your app.So can other solutions.
    They are secure.Only as secure as you make them.
    And you then tie yourself into a security system that may not be at all compatible with the ones you have already requiring expensive work to link several disparate systems together.
    They are pooled, which makes them fast and eliminates
    excessive object creation/deletion.There's many other things that are pooled.
    They scale well in clustered/distributed environments
    (as mentioned above).Clustered environments are indeed the only places where EJB have a definite advantage.
    They abstract you from database access (yeah!).So do other technologies
    They decouple you from the database so you can switch
    from Oracle to MySQL with little or no impact and/or
    changes to code (only driver changes).
    That's exactly the same reason as above.
    I've written my own abstraction layer once which worked faster and simpler than EJB.
    We're now using another abstraction layer which does the same.
    Use any ORM tool and you have an abstraction layer that's a lot easier to use than EJB, and a lot better performant.
    I could go on and on, but don't have time. :-)You don't have a clue you mean. You're just spouting the party line as presented by the EJB priests.

  • HowTo: deploy an j2ee app using "/" as context root on iAS 6.5

    Hi all iAS expert
    It is highly appreciated one can teach me how to get around below problem
    l deployed an app using "/" as context root. But the iAS could respond to any HTTP request.
    However, as l changed the context root to sth other than root. iAS responded properly.
    Can someone help me get around this problem ?
    thank you a lot
    fox

    I deployed the same EJB on WLS 6.1+sp3 and WLS 7.0.
    These both work. Looks like there is some problem with WLS6.0+sp2. I have opened
    a case with BEA customer support.
    --Latha

  • Does every web client and/or app use 'significant energy?'

    Brand new MacBook Pro (non-retina,) with upgraded 2.9 ghz Intel i7, and maxed 16GB 1600 DDR3 RAM.
    So far, I've attempted to use Safari, Firefox, and Chrome.  Upon using it for more than a few minutes, or having multiple tabs open, it shows under "Apps Using Significant Energy," with the battery icon.  If used constantly, I could probably squeeze 3-4 hours of battery life before charging the laptop, which seems quite low for a newer machine.  Certainly, it's no MacBook Air, but shouldn't it see a bit more juice than that?  Only occasional videos, no constant YouTube or streaming services.  Mostly searches, jobs, etc.  I've also noticed that my installed Adobe CC programs take a loooong time to startup, but didn't know if that issue is common, or if anything can be done.
    So:
      ** are all the web applications juice hogs?  I kinda like Firefox the most, and Chrome has some neat customization features, but they all end up like little piggies in a sloth.
      ** could it be the MBP?  Would resetting anything possibly positively affect the speed, battery longevity, programs on startup, etc?
    I'm decent at tinkering if I know the proper steps to ensure I'm doing everything just right.  Also, I have AppleCare on the expensive machine, so worst case, I can bring to an authorized store- but I don't want to waste their time if this is just nothing.  I've searched the discussions forums for previous advice, and nothing really, precisely answered the issue.
    Thanks, and cheers!

    The point is you are bound to do VB.Net for web services and it is not VB at all.
    The syntax surely resembles VB but wait till you see what you have instead of good old PRINT!
    VB.Net is not a continuation of VB, it is something radically different that you will have to learn. And if I had to choose between learning VB.Net and Java/Swing, I would go for the latter. I think the third choice, C#, is definitely the winner on all aspects of programming on the Windows platform. The GUI building gap is not as wide as it was with Visual C++ and VB, in fact, it is almost non-existant: .Net's Windows-forms can be developed rapidly either with C# or VB.Net; basically you get the same tool to develop GUIs.
    All things said, there is an excellent article at http://www.theserverside.com/resources/article.jsp?l=SOAP-And-EJB discussing when to opt for SOAP in an EJB environement.
    Hope it helps.

  • Threat of jnlp app startup failure in future java release

    I am the developer of a java jnlp app and have just upgraded to 1.7.0_45.  Web start is now threatening to block my app from starting in a future release because my jar file is missing the Permissions manifest attribute.
    It is easy enough to add the attribute to my main jar, where I get confused is with 3rd party jars.  For example, my application makes use of about a dozen libraries, one of which is commons-logging-1.0.4.jar.  I can see many warnings related to this in the java console.  To prevent the warning (and threatened blockage) do I need to alter all of my 3rd party jars?  Is it enough to just add the permission to my main jar?

    I used Ant to do this as well but had to loop through the many 3rd party jars we use so opted to use the (divisive?) Ant-Contrib Tasks
    i.e. foreach over 3rd party jars and then called the jar update manifest command.
    Seems to work fine - although I still have an issue with unsigned jjnlp file warning - and the template ioption in the main.jar does not work!

  • How to list installed (cached) JNLP apps

    Hi,
    Is there a way to list the cached jnlp apps programmatically or using javaws.exe or another application.
    Thanks

    You should focus your Google searches to the forum
    site:bbs.archlinux.org how to list installed AUR packages
    https://www.google.com/search?q=site%3A … 78&bih=977 (I used your title for the search)
    You can set the settings to pick only the hits from e..g the last year.

  • If an app uses JPA with a WAR, where does persistence.xml go?

    If I'm constructing an app using JPA entities, but just in a WAR file, not an EAR file, as I'm not using the other EJB components, where does the persistence.xml file get deployed to? Is it just WEB-INF/classes, or do I have to do something like WEB-INF/classes/META-INF (one resource i saw implied this)?

    david.karr wrote:If I'm constructing an app using JPA entities, but just in a WAR file, not an EAR file, as I'm not using the other EJB components, where does the persistence.xml file get deployed to? Is it just WEB-INF/classes, or do I have to do something like WEB-INF/classes/META-INF (one resource i saw implied this)?Yes, put it in WEB-INF/classes/META-INF. If you're using JDeveloper or Eclipse Webtools and you put the persistence.xml in src\META-INF compiling will put it into WEB-INF\classes\META-INF for you.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • New to j2ee...should i use ejbs?

    read on coz this can be interesting.....
    I am an inexperienced web developer. i am looking to develop a web application where tickets can be sold over the net.
    one of my immediate goals is to develop a web application where users can book tickets only not purchase them.currently the web app needs to facilitate for a max of 200 users-people who can book tickets, think of them as admin.
    in the long term the web app will evolve and cater for all users, internet users and admin.i think i need to use ejbs.i want to start with the immediate goal(facility for admin) and build on that to facilitate internet users.the web app will be huge when complete.
    now, the problem is that i have only developed a tiny j2ee project prior to this and that wasn't a web app-it was just a normal application. i don't have the experience(OBVIOUSLY).i don't even know how to deploy a web app or which app server to use(i have downloaded the sdk1.4)!
    i am thinking about developing the admin facility with just using javabeans,servlets,html,jsp and tomcat4.1.30-all of which i am comfortable with.
    what is a feasible solution to my problem considering that the longterm will only be achieved after a period of 2-3 years???(hopefully, by then i will have the experience :-)).
    How should i go about it?
    you know this can be a forum on its own!!!!
    Don't be shy to contribute....
    regards
    Ushanta

    EJB are certainly not needed.
    I've worked on creating an e-commerce site which runs successfully without any EJB and am now working on a very large web application (intranet style) which is selling well and doesn't use EJB (this app has over 500 JSPs and nearly a thousand classes by now and is still growing, to give an idea of scale).
    EJB are often overblown. There was a study (Gartner I think) in 2001 which calculated that in the US alone there had been $2 billion wasted on EJB projects that didn't need EJB (projects either failed because EJB were used or would have been cheaper implemented without them).
    That was before EJB REALLY took off as a hype...
    Start without. If you find yourself in a situation where you have a definite business requirement for them you can always implement some for the limited use you do find.

  • Problems in configuring deployment descriptors to use EJB in JSP

              Hello,
              I've been trying to use an EJB in a JSP on Weblogic 8.1. The relevent part of
              my web.xml and weblogic.xml look like this:
              =====================================
              web.xml -
              <ejb-ref>
              <description>Purchase order bean deployed</description>
              <ejb-ref-name>ejb/Purchaseorder</ejb-ref-name>
              <ejb-ref-type>Entity</ejb-ref-type>
              <home>mypackage2.PurchaseorderHome</home>
              <remote>mypackage2.Purchaseorder</remote>
              <ejb-link>/PO.jar#Purchaseorder</ejb-link>
              </ejb-ref>
              <ejb-local-ref>
              <description>purchase order</description>
              <ejb-ref-name>ejb/Purchaseorder</ejb-ref-name>
              <ejb-ref-type>Entity</ejb-ref-type>
              <local-home>mypackage2.PurchaseorderLocalHome</local-home>
              <local>mypackage2.PurchaseorderLocal</local>
              <ejb-link>/PO.jar#Purchaseorder</ejb-link>
              </ejb-local-ref>
              =====================================
              weblogic.xml -
              <ejb-reference-description>
              <ejb-ref-name>ejb/Purchaseorder</ejb-ref-name>
              <jndi-name>Purchaseorder</jndi-name>
              </ejb-reference-description>
              </reference-descriptor>
              =================================
              My ejb-jar.xml file looks like this (this EJB jar is already deployed on Weblogic):
              <description>Entity Bean ( CMP )</description>
              <display-name>Purchaseorder</display-name>
              <ejb-name>Purchaseorder</ejb-name>
              <home>mypackage2.PurchaseorderHome</home>
              <remote>mypackage2.Purchaseorder</remote>
              <local-home>mypackage2.PurchaseorderLocalHome</local-home>
              <local>mypackage2.PurchaseorderLocal</local>
              <ejb-class>mypackage2.PurchaseorderBean</ejb-class>
              ==============================================
              Finally, my weblogic-ejb-jar.xml looks like this:
              <weblogic-ejb-jar>
              <weblogic-enterprise-bean>
              <ejb-name>Purchaseorder</ejb-name>
              <jndi-name>Purchaseorder</jndi-name>
              </weblogic-enterprise-bean>
              </weblogic-ejb-jar>
              ===============================================
              But despite many many efforts, I keep getting the following error:
              Could not setup environment - with nested exception: [weblogic.deployment.EnvironmentException:
              [J2EE:160101]Error: The ejb-link '/PO.jar#Purchaseorder' declared in the ejb-ref
              or ejb-local-ref 'ejb/Purchaseorder' in the application module 'public_html' could
              not be resolved. The target EJB for the ejb-ref could not be found. Please ensure
              the link is correct.] weblogic.deployment.EnvironmentException: [J2EE:160101]Error:
              The ejb-link '/PO.jar#Purchaseorder' declared in the ejb-ref or ejb-local-ref
              'ejb/Purchaseorder' in the application module 'public_html' could not be resolved.
              The target EJB for the ejb-ref could not be found. Please ensure the link is correct.
              at
              I have changed around a lot of things. I've a classes directory under web-inf
              where I have mypackage2\all-the-class-files. I've also made available PO.jar file
              (which contains Purchaseorder) at various levels to ensure that the class can
              be found. I've changed the "/PO.jar#Purchaseorder" value of <ejb-link> tag accordingly
              to try various things. (e.g ejb/Purchaseorder, mypackage2.Purchaseorder, and a
              lot of other things) but of no avail. I keep getting the same error over and over
              again. (Do you think banging my head on the wall would do the trick?)
              Any help would be greatly appreciated. Thanks.
              

              Sam, thanks for the explanation. It makes sense now that why it's not working.
              But is this specific to Weblogic? I'm actually using JDevloper to develop my
              EJB (CMP) and JSP. Within JSP, I can use the tag library ejbtag provided by Oracle
              to specify home, create instance, and get collection back from an EJB. I've specify
              the tag lib URI in the web.xml but I kept getting the error message in Weblogi
              when running the test to load JSP saying that it could not find the EJB (Purchaseorder)
              specified. That led me to do some research and I came accross the <ejb-ref> and
              <ejb-link> tags.
              If it is a restriction only posed by Weblogic then I guess I'll have to create
              a JavaBean to interact with EJB first and then get the collection.
              Thanks.
              Sam Pullara <[email protected]> wrote:
              >You can only use ejb-links when connecting to EJBs that are in the same
              >
              >application (ear). If you want to have them separate you will have to
              >
              >use a global JNDI name for the EJB and look up that.
              >
              >Sam
              >
              >A Roman wrote:
              >> Michael,
              >>
              >> I'm not deploying EJB as an .ear application that'd include web app
              >and .jar.
              >> Instead I have deployed .jar as stand alone EJB and want to deploy
              >.war (exploded
              >> directory structure) as a seperate web app. Both .jar and .war will
              >be deployed
              >> on the same server. That's exactly why I cannot use the syntax that's
              >used in
              >> the samples.
              >>
              >> Thanks.
              >>
              >> "Michael Kovacs" <[email protected]> wrote:
              >>
              >>>I guess to start off with I'm making the assumption that your PO.jar
              >>>is your
              >>>EJB module
              >>>and that it is contained in the same EAR as your webapp module, looking
              >>>something like
              >>>this:
              >>>
              >>>myEAR.ear
              >>> |_ PO.jar
              >>> |_ webapp
              >>> |_ jspCallingEJB.jsp
              >>>
              >>>If this is correct, the first thing I'd suggest trying is to remove
              >your
              >>>"/"
              >>
              >>>from the front of your <ejb-link> and
              >>
              >>>just make the value <ejb-link>PO.jar#Purchaseorder</ejb-link>
              >>>
              >>>The EJB example that ships with 8.1 platform makes use of an EJB from
              >>>a jsp
              >>>page so you could
              >>>look to that example for some guidance, which references the EJB in
              >this
              >>>same way in the web.xml ejb-local-ref element.
              >>>hope that helps.
              >>>--
              >>>Michael Kovacs
              >>>Senior Software Engineer
              >>>BEA Systems
              >>>"ARoman" <[email protected]> wrote in message
              >>>news:[email protected]...
              >>>
              >>>>Hello,
              >>>>
              >>>>I've been trying to use an EJB in a JSP on Weblogic 8.1. The relevent
              >>>
              >>>part
              >>>of
              >>>
              >>>>my web.xml and weblogic.xml look like this:
              >>>>=====================================
              >>>>web.xml -
              >>>>
              >>>> <ejb-ref>
              >>>> <description>Purchase order bean deployed</description>
              >>>> <ejb-ref-name>ejb/Purchaseorder</ejb-ref-name>
              >>>> <ejb-ref-type>Entity</ejb-ref-type>
              >>>> <home>mypackage2.PurchaseorderHome</home>
              >>>> <remote>mypackage2.Purchaseorder</remote>
              >>>> <ejb-link>/PO.jar#Purchaseorder</ejb-link>
              >>>>
              >>>> </ejb-ref>
              >>>>
              >>>> <ejb-local-ref>
              >>>> <description>purchase order</description>
              >>>> <ejb-ref-name>ejb/Purchaseorder</ejb-ref-name>
              >>>> <ejb-ref-type>Entity</ejb-ref-type>
              >>>> <local-home>mypackage2.PurchaseorderLocalHome</local-home>
              >>>> <local>mypackage2.PurchaseorderLocal</local>
              >>>> <ejb-link>/PO.jar#Purchaseorder</ejb-link>
              >>>> </ejb-local-ref>
              >>>>=====================================
              >>>>
              >>>>weblogic.xml -
              >>>><ejb-reference-description>
              >>>><ejb-ref-name>ejb/Purchaseorder</ejb-ref-name>
              >>>><jndi-name>Purchaseorder</jndi-name>
              >>>></ejb-reference-description>
              >>>></reference-descriptor>
              >>>>=================================
              >>>>My ejb-jar.xml file looks like this (this EJB jar is already deployed
              >>>
              >>>on
              >>>Weblogic):
              >>>
              >>>>
              >>>> <description>Entity Bean ( CMP )</description>
              >>>> <display-name>Purchaseorder</display-name>
              >>>> <ejb-name>Purchaseorder</ejb-name>
              >>>> <home>mypackage2.PurchaseorderHome</home>
              >>>> <remote>mypackage2.Purchaseorder</remote>
              >>>> <local-home>mypackage2.PurchaseorderLocalHome</local-home>
              >>>> <local>mypackage2.PurchaseorderLocal</local>
              >>>> <ejb-class>mypackage2.PurchaseorderBean</ejb-class>
              >>>> ==============================================
              >>>>Finally, my weblogic-ejb-jar.xml looks like this:
              >>>>
              >>>><weblogic-ejb-jar>
              >>>> <weblogic-enterprise-bean>
              >>>> <ejb-name>Purchaseorder</ejb-name>
              >>>> <jndi-name>Purchaseorder</jndi-name>
              >>>> </weblogic-enterprise-bean>
              >>>></weblogic-ejb-jar>
              >>>>===============================================
              >>>>
              >>>>But despite many many efforts, I keep getting the following error:
              >>>>
              >>>>Could not setup environment - with nested exception:
              >>>
              >>>[weblogic.deployment.EnvironmentException:
              >>>
              >>>>[J2EE:160101]Error: The ejb-link '/PO.jar#Purchaseorder' declared
              >in
              >>>
              >>>the
              >>>ejb-ref
              >>>
              >>>>or ejb-local-ref 'ejb/Purchaseorder' in the application module
              >>>
              >>>'public_html' could
              >>>
              >>>>not be resolved. The target EJB for the ejb-ref could not be found.
              >>>
              >>>Please
              >>>ensure
              >>>
              >>>>the link is correct.] weblogic.deployment.EnvironmentException:
              >>>
              >>>[J2EE:160101]Error:
              >>>
              >>>>The ejb-link '/PO.jar#Purchaseorder' declared in the ejb-ref or
              >>>
              >>>ejb-local-ref
              >>>
              >>>>'ejb/Purchaseorder' in the application module 'public_html' could
              >not
              >>>
              >>>be
              >>>resolved.
              >>>
              >>>>The target EJB for the ejb-ref could not be found. Please ensure the
              >>>
              >>>link
              >>>is correct.
              >>>
              >>>>at
              >>>>
              >>>>I have changed around a lot of things. I've a classes directory under
              >>>
              >>>web-inf
              >>>
              >>>>where I have mypackage2\all-the-class-files. I've also made available
              >>>
              >>>PO.jar file
              >>>
              >>>>(which contains Purchaseorder) at various levels to ensure that the
              >>>
              >>>class
              >>>can
              >>>
              >>>>be found. I've changed the "/PO.jar#Purchaseorder" value of <ejb-link>
              >>>
              >>>tag
              >>>accordingly
              >>>
              >>>>to try various things. (e.g ejb/Purchaseorder, mypackage2.Purchaseorder,
              >>>
              >>>and a
              >>>
              >>>>lot of other things) but of no avail. I keep getting the same error
              >>>
              >>>over
              >>>and over
              >>>
              >>>>again. (Do you think banging my head on the wall would do the trick?)
              >>>>
              >>>>Any help would be greatly appreciated. Thanks.
              >>>>
              >>>
              >>>
              >>
              >
              >
              

  • Sending emails using ejb

    hi all,
    i was wondering if anyone can tell me how to use ejb 3.0 to send emails??! thnx alot

    Hi,
    I have worked on JBoss and Weblogic app servers and one can initialize java mail settings in the app server,.I am sorry, i don't know how its done in the app server you are using.
    I would suggest you to try the following :
    static {
    /* Setting Properties for STMP host */
    props = System.getProperties();
    props.put("mail.smtp.host", "PUT SMTP SERVER HERE");
    props.put("mail.smtp.auth", "true");
    session = Session.getDefaultInstance(props, null);
    try {
    MimeMessage message = new MimeMessage(session);
    message.setRecipient(Message.RecipientType.TO,
    new InternetAddress(this.to));
    message.setFrom(new InternetAddress(this.from));
    message.setSubject(this.subject);
    message.setText(this.message);
    Transport transport = session.getTransport("smtp");
    transport.connect("PUT SMTP SERVER HERE", "PUT USERNAME HERE", "PUT PASSWORD HERE");
    message.saveChanges();
    transport.sendMessage(message, message.getAllRecipients());
    transport.close();
    } catch (MessagingException e) {
    throw new Exception(e.getMessage());

  • SHOULD I USE EJBS?

    read on coz this can be interesting.....
    I am an inexperienced web developer. i am looking to develop a web application where tickets can be sold over the net.
    one of my immediate goals is to develop a web application where users can book tickets only not purchase them.currently the web app needs to facilitate for a max of 200 users-people who can book tickets, think of them as admin.
    in the long term the web app will evolve and cater for all users, internet users and admin.i think i need to use ejbs.i want to start with the immediate goal(facility for admin) and build on that to facilitate internet users.the web app will be huge when complete.
    now, the problem is that i have only developed a tiny j2ee project prior to this and that wasn't a web app-it was just a normal application. i don't have the experience(OBVIOUSLY).i don't even know how to deploy a web app or which app server to use(i have downloaded the sdk1.4)!
    i am thinking about developing the admin facility with just using javabeans,servlets,html,jsp and tomcat4.1.30-all of which i am comfortable with.
    what is a feasible solution to my problem considering that the longterm will only be achieved after a period of 2-3 years???(hopefully, by then i will have the experience :-)).
    How should i go about it?
    you know this can be a forum on its own!!!!
    Don't be shy to contribute....
    regards
    Ushanta

    There has been no rebuttal because I don't go looking
    for arguments on forums. As much as you detest people
    "hawking their wares" on forums, I detest people using
    developer forums as soapboxes.My dear, if I wanted to use fora as a soapbox, I'd certainly pick a better and more trafficked spot than this one. And, if you'd bother checking my posting history, you'd see that I do quite a bit more than beat up on poor defenseless vendors. Your posting history is quite easy to see: 1 - pitch a product, 2 - try to play bait-and-switch.
    The developer I was trying to help stated:
    I am an inexperienced web developer. i am lookingto develop a web application where tickets can be sold
    over the net.
    "Inexperienced" is the key word here. The developer
    can go out and try to learn EJB or whatever other
    technology they think they can use to solve the
    problem at hand. Then months later after they are
    capable of writing the scalable applications you
    describe, they can begin development. Or, they can
    download MyProduct and build their application in
    a week or two.See the post by PinkyDead. He/she sums it all up in the first senence. Quicker != better
    You are obviously unfamiliar with MyProduct but
    are arguing its usefulness and abilities. I suggest
    you try it before you criticize.I've used more RAD tools than I can even remember. Probably more than you can even name. And you know what? In every situation, in every circumstance, in every scenario, in every job, all those nice little point-and-click apps had to be fixed by hand because the RAD tool simply could not take all the variables of a given UseCase into account. I still use RAD tools, but I know what I'm doing and am able to overcome the short-comings of the tool. I use code generators, diagrammers, GUI builders, etc. -- but I am in no way fooled into thinking that just because I have some functionality working that my job is done.
    MyProduct does not eliminate the need for expert
    J2EE developers. Your job is safe.I'm not worried about my job - I'm worried that I may be trusting some portion of my private data to some "clever" CIO who has bought into the whole Silver Bullet concept and is using inexperienced programmers and NameOfProductHere to build the apps that keep my data safe. I cringe at the very thought that some of the infrastructure governing the world's business, both governmental and financial, is predicated on the exact premise you stated above. I would much rather believe that there was significant time, money, and expertise employed with a bit of foresight applied, not some quick-and-dirty approach that kinda sorta works like it's supposed to.
    I'm sure your product does exactly as advertised - what I'm saying is that it is not the "best" way to build a fully-capable Enterprise application that can handle thousands of transactions per hour. It might be a good place to start, but you have to know what you're doing to make it work good -- "good enough" is not enough.

Maybe you are looking for

  • Airplay disappeared off my iphone 6

    I'm using ios 8.3 on my iphone 6 and airplay has ceased functioning.  Airplay doesn't even appear in the control panel when I drag it up from the bottom of the screen.  I do a search for 'airplay' on the phone and it finds nothing except internet sit

  • Attachment Content Filter not working

    I am trying to use the Attachement Content Filter to prevent the distribution of a sensitive document outside of our orginization. I have a filter that matches on the filename that works fine. However when I try to filter based on attachment contents

  • Cannot open iPad numbers on mac

    I bought numbers for Ipad and Iphone. The app store wants to charge again for my Mac.

  • How can I hash with the MD5 for file

    I am a new learner in Java. Is there any useful code example or materials for me to learn how can i hash with MD5 for file.

  • Working with 30p or 60i

    Hey, so i just got an HF100 and supposedly it records in 30P which is really recording 30p in a 60i wrapper. Currently my capture preset is at Prores 422(HQ) and sequence preset are Prores 422 (HQ) in 1920x108030P. Since the hf100 isn't recording in