Does my code have EJB's

I have some java code i need to move to tomcat frm weblogic.
Is there a way to look at the code and see if uses EJb's ????

Unzip the jar files (or whatever) and look for a file called 'ejb-jar.xml' if that's not there then you probably don't have EJBs (they're not lice you know).
However, if your Web-App depends on EJBs, you are in a world of pain.
Why are you moving? Something wrong with the neighbours?

Similar Messages

  • Does this code have a timer?

    I want an animation to run the same on all computers (I got it off the net). Is there a timer in it so that it will run the same speed on most computers? (this is not all the code - just the main parts)
    public class Bla extends Applet implements Runnable
        Thread runner;
        private Image Buffer;
        private Graphics gBuffer;
        public void init()
            Buffer=createImage(size().width,size().height);
            gBuffer=Buffer.getGraphics();
        public void start()
            if (runner == null)
                runner = new Thread (this);
                runner.start();
        public void stop()
            if (runner != null)
                runner.stop();
                runner = null;
        public void run()
            while(true)
                 /* Is this what the timer looks like? */
                //Thread sleeps for 15 milliseconds here
                try {runner.sleep(15);}
                catch (Exception e) { }
               /* Animation code goes here */
    }

    Oh no, you should be fine. I meant like generating dynamic fractal zooming or complex color shifts. The calculation overhead would start to overwhelm the sleep period on slower computers.

  • Why does 9i AS have such lame EJB support? Where is this product going?

    I installed 9i AS and really became disgusted with the product.
    Oracle shows it's shameless corporate greed by hyping 9iAS as an EJB server -but 9iAS doesn't even support ejb 1.1 !! No entity beans! What a rip off...
    Where is this product going? ejb 1.2 is already comming into the market....www.orionserver.com... BUT oracle doesn't even have 1.1 down yet....
    What is the estimated development track for 9iAS?
    As for me, I am ready to return my 9iAS copy...

    Which version was giving you problems?
    The latest version of O9iAS does in fact support EJB 1.1 (Session & Entity Beans with both Container Managed Persistence and Bean Managed Persistence). As well as Servlet 2.2, and JSP 1.1.
    It does this through Oracle's Enterprise Java Engine, a highly scaleable reliable and available Java virtual machine. Unlike other JVMs, the EJE provides built in session isolation so programmers don't need to worry about thread collisions, concurrent garbage collection, or any of those things. Plus, you can compile the bytecode to native code before runtime for better performance.
    That said... I agree the install could be a little simpler, but if you look at everything it's trying to install... you'll realize it's not trivial. Reading the documention is highly recommended.
    -=< Nick >=

  • I have just tried to sync my iphone. Error message saying it cannot be synced has popped up quoting error code (-50). I have just removed old iphone backups from itunes but was very careful to not delete the current one. What does this code mean?

    Hi there,
    I have just tried to sync my iphone.
    Worryingly an error message saying it cannot be synced has popped up quoting error code (-50)
    I have just removed old iphone backups from itunes but was very careful to not delete the current one
    What does this code mean?

    http://support.apple.com/kb/TS1583

  • Does PLX file have any compiled code

    What exactly is a plx file. I created a plx file giving the COMPILE_ALL option as
    NO. I saved the plx and the pll in the libraries directory .
    When i run my form i can see the changes. Does the plx have any code or is it just
    a referece to the pll file.
    thanks

    the point with the security is a good point. I appended it in my blog:
    our projects are normally applications for customers and never standard-software. So we have no problem with security. The application server with the deployed forms and libraries is secured as strong as the database, so that only admins have access.
    ### this is added in the blog - try the example on your machine ###
    Other developer say: plx is only the compiled code, so nobody can steal my sourcecode or something valuable from within the code - in that case try this example:
    Create a library with a package and this variable:
    <pre>
    PACKAGE Const IS
    HiddenPW CONSTANT Varchar2 (100) := 'HiddenPW';
    END Const;
    </pre>
    Generate the plx and open it in an editor. Search for "HiddenPW". You'll find the name of the variable and the string associated to the var. That's not save in my eyes. Only the sourcecode is hidden. I think, that a pll on an Application Server is secure enough.
    If the application is standard software and is not for free, then you can use the plx-technique :-)
    ###

  • Unable to load the EJB module. DeploymentContext does not contain any EJB.

    I'm writing an enterprise application to familiarize myself with Glassfish 3.1.2 and EJB 3.1. I've created several local, stateless beans, and injected one into a JSF managed bean. The ejb and web modules compile fine, but when I launch the application with Glassfish I get the following startup error and the application does not deploy. I don't understand what it means, can someone ellaborate?
    SEVERE: Exception while invoking class org.glassfish.ejb.startup.EjbDeployer prepare method
    SEVERE: Exception while invoking class org.glassfish.javaee.full.deployment.EarDeployer prepare method
    SEVERE: Exception while preparing the app
    SEVERE: Unable to load the EJB module. DeploymentContext does not contain any EJB. Check the archive to ensure correct packaging for D:\Documents\NetBeansProjects\Test\dist\gfdeploy\Test\Test-war_war.
    If you use EJB component annotations to define the EJB, and an ejb or web deployment descriptor is also used, please make sure that the deployment descriptor references a Java EE 5 or higher version schema, and that the metadata-complete attribute is not set to true, so the component annotations can be processed as expected
    org.glassfish.deployment.common.DeploymentException: Unable to load the EJB module. DeploymentContext does not contain any EJB. Check the archive to ensure correct packaging for D:\Documents\NetBeansProjects\Test\dist\gfdeploy\Test\Test-war_war.
    If you use EJB component annotations to define the EJB, and an ejb or web deployment descriptor is also used, please make sure that the deployment descriptor references a Java EE 5 or higher version schema, and that the metadata-complete attribute is not set to true, so the component annotations can be processed as expected
         at org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:166)
         at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:871)
         at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:410)
         at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
         at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
         at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
         at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
         at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
         at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
         at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
         at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
         at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
         at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
         at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
         at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
         at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
         at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
         at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
         at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
         at java.lang.Thread.run(Thread.java:722)

    My guess is that you deployed an ejb without bean in it. when you have an ejb module, be sure you have at least one bean present.
    Are you sure you have implementend some beans? Or did you do this only in the web module?
    Try adding an @Stateless bean doing nothing in you ejb module, redeploy and let me know if that works

  • Patch for Macromedia Director 6.0 Upgrade for Windows - DOES ANYBODY STILL HAVE IT?

    Hello, I am a collector of 1990's multimedia who likes seeking out older, pre-Adobe versions of Director. I have the upgrade version of Director 6.0 for Windows, and it's unfortunately part of an early batch that comes with a corrupted copy of the Projec32.skl stub projector file, rendering 32-bit projectors made with the upgrade version of Director 6 for Windows unusable (only 16-bit projectors will work).
    Macromedia released a patch on their old website to address this issue shortly after the release of Director 6 back in 1997, but I can't find it anywhere on the Internet these days. Does anyone still have this patch, and if so, can you share it with me? (FYI, the filename for the patch is "D6wpatch.exe") Or, alternatively, if any of you still have the full, non-upgrade version of Director 6 for Windows, can you share the Projec32.skl with me? (it can be found in Director's installation directory, normally "C:\Program Files\Macromedia\Director 6")
    Thanks if you can provide any help,
    Ryan
    (EDIT 10/26/2012: addendum about alternative sharing method was added to the above text, since Director 6 and prior versions are getting harder and harder to find on eBay these days)
    UPDATE 11/23/2012: I finally found the solution... after calling Adobe tech support to no avail (they searched, but didn't find it - they said that all the old Macromedia files got lost after they purchased Macromedia a few years back), I managed to solve the problem myself! I manually extracted the projector stub code from a working 32-bit Director 6 projector executable in a hex editor, and saved that code as a separate projec32.skl file. I replaced the corrupted projector stub, and I proceeded to make a 32-bit projector with a small test movie I made. And guess what - it worked! Thanks, everyone, for viewing this post. I hope that helps!

    After countless hours of reading I finally discovered what the problem was. I did not read thoroughly through the support documentation which allows a person to update their IPOD video very easily simply follow the directions "and I mean the entire directions" within the following link. I would also strongly suggets following the area which state to d/l Quicktime separately from Itunes. This completely rveresed my problems, and now I have a great functioning IPOD once more.
    http://docs.info.apple.com/article.html?artnum=93976

  • Multiple dispatch and Symmetric methods - Where Does That Code Live?

    Hi all.
    I am stuck with the above problem, which looks to be a very common and fundamental one. Supposing I have some sort of relation or operation to be performed on various different pairs (or n-tuples) of classes of object. Where does this code belong, given that it is not sole property of any one of the classes, but a kind of property of the collection of classes?
    An bad example for me to bring up, but one that neatly illustrates the point, is the equals method. In order to retain the symmetric and transitive properties of the equals method, and object can only make judgement calls about it being equal to another object of it's own type. This prevents the concept of equivalency from crossing between types.
    In order to compare a with b (if a and b are of different types), b must supply some sort of representation of itself as an a, then the comparison statement a.equals(b.asA()); must be called.
    This of course means b must supply an 'asXXX()' method for each class XXX it wishes to equate itself to. Furthermore, by an extension of the equals contract for symmetricality, the method AsB() in class A (if it exists) must be such that, if a.AsB() .equals (b), then b.AsA.equals( a ).
    This sort of design is unfeasible for obvious reasons, the main reason being that it is impossible to anticipate evey case where an instance of class A could reasonably be compared to an instance of some other class X.
    The other annoyance is all that hard work of providing methods to equate A with something else, would go unused for 99% of the time.
    With this in mind, I was thinking. Suppose in some program environment, we have only 3 classes, A, B, and C, such that:
    {A,B} can be meaningfully compared
    {B, C} and {A, C} cannot.
    It would be OK to supply code (somewhere) for comparing A's with B's. We also know that under no circumstances will an A or a B, and a C, ever need to be compared for equality.
    Supposing an extension of this environment were created, introducing class D.
    {D, A} and {D, B} can be meaningfully compared.
    Now, neither A nor C knows what a D is, or how to compare themselves to it. But D was developed with A, B and C in mind, and contains logic for the various comparisons (with A and with B). An obvious idea for this is to let D bring it's new code into play, by registering these new comparison functions in the environment somehow.
    Supposing instead that equality comparison was delegated to some third party, instead. This third party contains a table of pairs of classes, which act as keys to look up a comparison object.
    So, when class A is loaded, something of the sort happens:
    public class A {
        static {
            Equals.comparer.addEntry(A.class, B.class, new EqualsMethod() {
               // details of the EqualsMethod interface implementation go here
    public class B {
        static {
            // since equals is symmetric, this method clashes with the above in A
            // This could happen...
            Equals.comparer.addEntry(B.class, A.class, new EqualsMethod() {
               // ... different approach to the above
    public class D {
        static {
            Equals.comparer.addEntry(D.class, A.class, new EqualsMethod() {
            Equals.comparer.addEntry(D.class, B.class, new EqualsMethod() {
        } // Ds can now be compared with Bs and As. They can now be compared with Ds
    }There is a problem with the above. As can clearly be seen, there are 3 unique situations that might occur between two classes (call them X and Y).
    o One of X or Y contains code to compare them both.
    o Neither X nor Y contain code to compare the two. X equals Y is always false
    o Both X and Y contain code to compare the two.
    The third causes the problem. What if X and Y disagree on how to compare themselves? Which method gets chosen? The only solution would be to let whosever static initialiser gets called first be the one to supply the code.
    I said before that equals was a bad example to bring up. this is because the usage of equals and the concept of equality in java is already well defined, and works just fine. However, in my own pet project at the moment, I have run into the same problems as outlined above.
    I am currently assembling a generic pattern API for use in various other applications I am writing (I was finding that I was writing code for matching objects to patterns, in different guises, quite frequently, so I made the decision to refactor it into its own package). An important part of the API is the section that handles the logic for combining patterns, ie with AND, OR and NOT operations.
    The Pattern interface is this:
    interface Pattern<E> {
         public boolean match(E toMatch);
         public Pattern<E> not();
         public Pattern<E> or(Pattern<E> other);
         public Pattern<E> and(Pattern<E> other);
    }There are a few basic Patterns:
    TruePattern<E> - a pattern that always returns true no matter what E is passed for it toMatch
    FalsePattern<E> - self-explanatory.
    ExactValuePattern<E> - true if and only if the E that it is passed toMatch is .equal to the E that this pattern was constructed with.
    NotPattern<E> - a pattern that contains another pattern, and returns true for any E that returns does not match it's contained pattern. Used for when the contained pattern cannot be logically reduced to one pattern under the NOT method in the Pattern interface
    AndPattern<E> - a pattern that contains 2 other patterns, and returns true for some E iff both contained patterns return true for that E. Used for when the 2 patterns cannot be logically reduced into one pattern via the AND method in the Pattern interface
    OrPattern<E> - self explanatory
    RangePattern<E extends Comparable <E>> - a pattern for comparing if some Comparable lies between two other comparables.
    Every pattern has the opportunity to provide a reduction, when combined with another pattern through And or Or. For example, any pattern AND a FalsePattern can be reduced just the FalsePattern. any pattern OR a TruePattern can be reduced to just the TruePattern.
    The methods AND and OR from the Pattern interface present the same problems as the .equals() example I was using before.
    o AND and OR are symmetric operations
    o There exist situations where two patterns of unrelated class could be meaningfully combined (and reduced) under these two operations.
    Example: The pattern on Integers '0 < X < 3' and 'X is 5' can be reduce to the FalsePattern
    Example: The pattern on Doubles '0 < X <= 10' or 'X is 5.5' or 'X is 7.2' can be reduced to '0 < X <= 10'.
    Example: The pattern on Integers ('0 <= X <= 5' and 'X is not 0') or ('X is 6') or ('x is 7') can be reduced to '1<=X<=7'.
    So the question is, where does the code belong? a.and(b) should return the same as b.and(a), but both b and a may well disagree as to what happens when they are combined under and. At present, both a and b need to supply their own separate implementations. Clearly though, the code for combining patterns A and B belongs to neither A alone, not B alone, but to A and B as a whole.
    Thanks in advance, and sorry for this overlong post.

    So the equivalent thing in my scenario would be an
    AndAnator, and an OrAnator? :)
    The thing is, it would be nice for comparison between
    A and B to take place automatically, without the poor
    coder having to maintain a reference to a Comparator
    and invoke the comparison method each time. Likewise
    in my situation, it'd be nice to say A.or(B) instead
    of andAnator.and(A,B), yet have all the goodness of a
    third party doing the comparison (or in this case,
    the anding).
    I am going to go and test this all out, but do you
    have any suggestions on a good structure? I think it
    would involve pulling the and/or/not methods from the
    interface (this appeals, as many implementors may not
    wish to supply logic for running these methods
    anyhow), and then putting them... somewhere else.I didn't consider your speicifc problem very deeply because after such a long detailed explanation I figured you'd be up for kicking around the idea for a while.
    In your case, I see that you would want to be able to call the and and or methods on the Objects themselves. Luckily, in this case, I think you can have your cake and eat it too.
    You can make your and and or methods fa�ades to the third party 'referee'. This way you can enfore symmetry. It's difficult (if not impossible) to enoforce transitivity with this design but I think you don't even need that in this case. That is if a == b and b == c then a == c should be true but if a and b and b and c then a and c is not necessarily true. In your case, it may not even make sense.

  • Does this code effect performance.

    I am doing some code now :) and I did a method like this, however I do not know if it effects performance for the whole application when the method is being called, or weather it is a good coding standard.
    The code in question is the following:
    public void myMethid(){
       class c{
          public c(String s){
              System.out.println(s);
       c myC = new c("Hello");
    }I know this is a stupid example, however would such a think effect performance, or be wrong? ... would it be better to just declare c as an external class?
    regards,
    sim085

    I have seen ppl complaining about cross posts, but what I am going to do here is cross post my answer, which I feel might be helpful in this situation, and considering that it still lies in the grey area:-
    "I smell a very interesting discussion stemming out of it, but your question is as open ended as it could be, what kind of web application and what performance. performance is the most misused word I have come across in a lot of design considerations. It is not one parameter you could measure but a combination of different considerations, which would be as follows:-
    1) Response time
    2) Responsivesness
    3) Latency
    4) Thoroughput
    5) Load
    6) Load sensitivity
    7) Efficiency
    8) capacity
    9) scalabilty
    You might want to look on the web as to what they mean since I am not going to go into that detail. But these attributes are independent of each other, an application with good latency might be poor in scalability or other way around, so it depends as to whats the nature and requirements of the app you are looking at then deciding which way you would want to go. Its not that simple.
    Secondly I would quote Martin Fowler from his book "Patterns of Enterprise Application Architecture":-
    "Too often I have seen designs used or rejected because of performance considerations, which turn out to be bogus once somebody actually does some measurements on the real setup used for the application."
    So please go back to the requirements and try to figure out what you are actually looking for."

  • What does error code 150:30 mean and why can i not access my elements site

    what does error code 150:30 mean I cannot access my element equipment

    ok then so what is the problem I have with this error code

  • Why does Verizon not provide 3G coverage in Western Maryland (Garrett County) and why does it not have an agreement with US Cellular for such coverage?

    Why does Verizon not provide 3G coverage in Western Maryland (Garrett County) and why does it not have an agreement with US Cellular for such coverage?

        Thanks for the zip code pfekete. I looked into the coverage in your area and I do see you are in an extended 1X data coverage which explains why you're not connecting to 3G. What phone do you have? We may be able to advise you on how to adjust the settings so it picks up the strongest signal. I apologize for the inconvenience.
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

  • What does error code 4sns/1/40000001: IDOR-0.000 mean?

    I have a MacBook Pro modWhat does error code 4sns/1/40000001: IDOR-0.000 mean? My video display is partially striated and I ran the self test a few minutes ago.el 10,1 with an NVIDIA Ge ForceGT 650M graphics card with 1GB of VRAM.  When I turned on my laptop this morning the right 1/3 of the screen was black with red and multicolored lines, I had to reduce my window view to see the document I was looking at.  I rebooted several times and ran the hardware test recommended.  The results indicated an error, the code: 4sns/1/40000001: IDOR-0.000.  Can anyone decipher the code and tell me what is wrong?
    thanks

    That error code indicates a DC current anomaly.  A visit to an Apple store genius bar is your best option.  They should be able to specifically isolate the problem and and advise you of your options.
    Ciao.

  • Why does error code 4005 pop up when i try to restore my ipod 5?

    why does error code 4005 pop up when i try to restore my ipod 5?

    Have you tried this support article ?      http://support.apple.com/kb/ts3074

  • HT5485 what does error code 2330 mean?

    Every time I try to update my itunes it says it twas interrupted and shows the error code 2330. What does the code mean and how can I fix it??

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • The current project does not contain an EJB Module to deploy

    Im trying to deploy the VSM sample app to a external oc4j.
    After creating the deploy profiles and trying to deploy to the connection i created to the oc4j the deploy window says the project "**The current project does not contain an EJB Module to deploy" and start to deploy the war file.
    have i made something wrong?
    thnks.

    We have no idea what the "VSM sample app" is. The problem is probably
    in the sample app. The warning message just says that the EJB profile
    has nothing to deploy, because the project doesn't have any EJBs.

Maybe you are looking for

  • Additonal Customs ADC on Domestic Procurement

    Dear All, I checked the SAP note: 964190 which is related to the ADC scenario on domestic purchase of Imported goods. Please explain me what is use of the following points in this scenario 1. What will be effect in the AED tax condition in the above

  • Nokia 6500s1 (6500 Slide) RM-240 Firmware v10.00

    Hi, I've noticed that the new firmware version 10.00 for the Nokia 6500s1 (6500 Slide) RM-240 is out. Does anyone have an idea what is new in this version and they've fixed in this version?

  • Iphoto recovery

    Lost entire iPhoto  library while downloading new update.  Thoughts please...

  • Printing web page at client side

    i want to print web page at client side . Page & printer settings are through coding. i tried using DocFlavor myFormat = new DocFlavor("text/plain; charset=utf-16be","java.net.URL"); i found exception invalid flavor

  • Why cant I see "On this Iphone" tab in Itunes with 5s?

    I have just purchased a new iphone 5s and backed it up with a previous iphones data, but when i go to manually manage my music in itunes i cannot see the "On This Iphone" tab which would show me the music list on the iphone. I have plugged in a brand