[JBoss-user] [EJB 3.0] - Re: Re-obtaining a reference to an existing stateful EJB3 in

2005-12-27 Thread fschoning
It appears to work fine for me :-) and I successfully call business methods 
after deserialization. I have not tested it over a long session containing 
numerous calls and also not across different VM's for clustering.

Let me know how it works for you?

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Re-obtaining a reference to an existing stateful EJB3 in

2005-12-17 Thread fschoning
I have used the following successfully but have not tested it extensively or 
over a number of session calls. I have also not tested this across different 
VM's.

ChatMsgHandler ejbhandler = 
(ChatMsgHandler)ctx.lookup(ChatMsgHandler.class.getName());
  | 
To serialize the ejb3 proxy object:
ByteArrayOutputStream baos = new ByteArrayOutputStream();
  | ObjectOutputStream oos = new ObjectOutputStream(baos);
  | oos.writeObject(ejbhandler);
  | 
To deserialize the ejb proxy object:
ByteArrayInputStream file = new ByteArrayInputStream(baos.toByteArray());
  | ObjectInputStream input = new ObjectInputStream(file);
  | ChatMsgHandler ejbhandler2 = (ChatMsgHandler)input.readObject();
  | 

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Re-obtaining a reference to an existing stateful EJB3 in

2005-12-07 Thread fschoning
1. Does JNDI not serialize the references? I will try this out when I have a 
moment.

2. I have found that ejb2.1's can do this. From the home interface one can call 
getHandle(). This handle is serializable and can be used from different VM's. 
Do a search for getHandle() in these forums.

I have also found that there is a compatibility layer for ejb3's to behave like 
ejb2.1's. In this case a home interface must be defined and the getHandle() 
function is available. I don't know if it throws unimplemented exceptions but 
there is test code that uses it. I don't have the test class names handy, but 
do a search for getHandle() in the cvs code in the ejb3 directory. I wouldn't 
want to use this though as I might as well use ejb2.1's then.

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Re-obtaining a reference to an existing stateful EJB3 in

2005-12-05 Thread fschoning
Thanks for the suggestion. Can JNDI efficiently handle thousands of session 
objects like mine? I was thinking along the lines of a database and storing the 
serialized handle to the ejb. 

I also don't know if one can just store the reference to the ejb and get access 
to the ejb instance from another clustered server. I saw some ejb2.1 sample 
code where one can get a hold of a handle to the ejb from its home interface - 
getHandle(). This handle is apparently clusterable and serializable. Can one 
get a similar type of handle from a ejb3?

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: How do I get a reference to the WorkManager from a MBean

2005-12-01 Thread fschoning
Thanks for the tip. I have created a new ThreadPool of my own and all seems to 
work well. 

Please forgive the newbie question, but how do I obtain a reference to the 
jboss-service created system ThreadPool from my MBean?

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re-obtaining a reference to an existing stateful EJB3 instan

2005-12-01 Thread fschoning
Hi,

I have a proprietary communications protocol where clients come in over TCP 
sockets. I then create a stateful EJB3 per client. If my socket connection 
fails I would like to reattach the client back to the existing stateful EJB3 
instance using a sessionid of sorts. 

Does anyone know how I can re-obtain the reference to the existing stateful 
EJB3? The system eventually needs to be clustered and hence the client might 
reconnect to a socket on one server and the stateful EJB instance is on another 
server.

Thanks for the help.

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - How do I get a reference to the WorkManager from a MBean?

2005-11-23 Thread fschoning
I am trying to launch a number of managed threads for a communications MBean 
that I have written for EJB3. I do not wish to write a JCA implementation. From 
JCA one can get the WorkManager from the BootstrapContext but how can I do this 
from a MBean service?

Thanks

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

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


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Getting the BootstrapContext or WorkManager from a EJB3 MBea

2005-11-19 Thread fschoning
I am trying to launch a number of managed threads for a communications MBean 
that I have written for EJB3. I do not wish to write a JCA implementation. From 
JCA one can get the WorkManager from the BootstrapContext but how can I do this 
from a MBean service?

Thanks

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

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


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user