Results 1 to 2 of 2

Thread: How to access an instance loaded by the other classloader except using reflection?

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Location
    BeiJing
    Posts
    13

    Exclamation How to access an instance loaded by the other classloader except using reflection?

    An instance which is loaded by the other classloader, how can we access it without ClassCastException being thrown?
    As far as I know, we can use reflection.But it seems that using org.springframework.jndi.JndiObjectFactoryBean is a better idea.
    I'm confused how JndiObjectFactoryBean can avoid the ClassCastException being thrown?
    Is anyone can make me clear?

  2. #2
    Join Date
    Aug 2010
    Location
    BeiJing
    Posts
    13

    Default

    I'm waiting for 3 days.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •