EJB problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: EJB problem

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Posts
    15

    EJB problem

    HI
    i found some problem in EJB can any one help me to solve that problem it
    i use CMP EJB on OC4J server and when i make EJB QL then it creates problem with rownum and with like statements so can any one try this

    thanks

  2. #2
    Join Date
    Jul 2005
    Posts
    1

    More Info Reqd.

    Can U Give Me Some More Details?
    I Can Give You Neccessary Ejb-ql
    Shrinivas

  3. #3
    Join Date
    Jun 2005
    Posts
    15

    java.lang.ClasscastException

    hello
    i need some help in EJB

    DodAuthorisationHome dodAuthHome = (DodAuthorisationHome)PortableRemoteObject.narrow(context.lookup("DodAuthorisation"), DodAuthorisationHome.class);
    DodAuthorisation dodAuthorisation;

    now the first line shows the java.lang.ClassCastException
    why it occurs tell me plsssssssssssss

  4. #4
    Join Date
    Jun 2004
    Posts
    199
    Try the following and see what class you are actually returning.

    Object object = PortableRemoteObject.narrow( context.lookup("DodAuthorisation"), DodAuthorisationHome.class);
    System.out.println(object.getClass().getName().toString());

  5. #5
    Join Date
    Jun 2005
    Posts
    15

    java.lang.ClasscastException

    Hello sir

    problem is in the :
    DodAuthorisationHome dodAuthHome = (DodAuthorisationHome)PortableRemoteObject.narrow(ctx.lookup("DodAuthorisation"), DodAuthorisationHome.class);


    line thats why nothing is printed
    bcz the flow stops when it gets error message
    so it will not run

    System.out.println(dodAuthHome.getClass().getName().toString());

    so tell me how to solve it and why this comes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center