[JBoss-user] [Beginners Corner] - Re: How to get objects which is binded using NonSerializable

2004-04-08 Thread tiim
I 've walked around this problem by write a stateless session bean (in the same vm 
with the nonserializable object)to delegate the access to the nonserializable object. 
It works in Jboss now. However when I do the same thing in Websphere AS, when the 
session bean get the object out from jndi and cast it, there will be a exception 
ClassCastException: javax.naming.Reference. 
I know actually in NonSerializableFactory it actually bind a reference object to this 
name, but I don't know why in Jboss it could be cast to the class I desired directly, 
while in WAS I couldn't. Further How could I get the object in WAS ?
Thank you.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3829753#3829753

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3829753


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: How to get objects which is binded using NonSerializable

2004-04-08 Thread tiim
I look into the log , found messages like this:
A Reference object looked up from the context 
localhost/nodes/localhost/servers/server1 with the name quartz was sent to the 
JNDI Naming Manager and was returned unprocessed. Reference data follows:
Reference Factory Class Name: org.jboss.naming.NonSerializableFactory
Reference Factory Class Location URLs: 
Reference Class Name: org.quartz.impl.StdScheduler
Type: nns
Content: quartz

I think the problem is that the WAS classloader couldn't find the 
NonSerializableFactory(The Reference object created with an empty fourth argument 
which set the url for the location of factory to null). But after I putting the 
jboss.jar into the WAS 's lib path,and restart the Server it doesn't help. 
Could you give me some help ?
Or should I specify a url for the jboss.jar ? 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3829901#3829901

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3829901


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: How to get objects which is binded using NonSerializable

2004-04-07 Thread [EMAIL PROTECTED]
This question gets asked a lot. Frankly I'm tired of explaining it. :-)

NonSerializable means you cannot convert the object into a byte stream - one
of the requirements for remote access.
If you look at the implementation it is a cheat. It binds a serializable object
that knows how to get back to the object referenced (but only inside the same VM).

There are a number of ways to get remote access to an object:
1) RMI
2) EJBs
3) Corba
4) JBoss invokers over multiple protocols (see chapter 2 of the admin docs)
5) Servlets or JMS but you'll have to write your own plumbing code
6) Poor man's version - Just bind a serializable object into jndi - the client
gets a copy which when modified does not change the version on the server.

Regards,
Adrian

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3829721#3829721

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3829721


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: How to get objects which is binded using NonSerializable

2004-04-07 Thread tiim
Thank you for your reply. I'll try to use other methods to do my job. 


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3829722#3829722

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3829722


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user