Re: Geronimo 2 EJB3 Remote Access Example

2008-01-24 Thread xypher

Hi,

I tried this example and it works. But this is example is with a web client.
I'd like to have a fat  client and wants to access the session bean (over
RMI-IIOP ? I'm not sure). 

But I don't know the right JNDI lookup string? This is my problem. Any
solutions?

Thanks



vhnguy2 wrote:
 
 There are some sample applications on our wiki. For a session bean
 sample, you might want to take a look at this:
 http://cwiki.apache.org/GMOxDOC20/very-simple-session-ejb-example.html.
 
 There are other samples there too if you're interested.
 
 Thanks,
 Viet
 
 On Jan 23, 2008 5:14 PM, xypher [EMAIL PROTECTED] wrote:

 Hi,

 I'm relatively new to Geroimo 2 and EJB3. I googled a lot, but I found no
 simple example for my request. I'd like to develop an Session Bean and to
 access this bean from an remote client over JNDI lookup. Can anybody give
 my
 an simple example or tell my where I can find something like this.

 I tried a lot, but I'm not sure what I have to configure in the
 deployment
 descriptors and what is the correct jndi lookup name.

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Geronimo-2-EJB3-Remote-Access-Example-tp15053984s134p15053984.html
 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/Geronimo-2-EJB3-Remote-Access-Example-tp15053984s134p15060525.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Geronimo 2 EJB3 Remote Access Example

2008-01-24 Thread Jonathan Chen
On Thu, Jan 24, 2008 at 12:20:07AM -0800, xypher wrote:
 
 Hi,
 
 I tried this example and it works. But this is example is with a web client.
 I'd like to have a fat  client and wants to access the session bean (over
 RMI-IIOP ? I'm not sure). 
 
 But I don't know the right JNDI lookup string? This is my problem. Any
 solutions?

This wiki entry explains remote JNDI naming:

http://cwiki.apache.org/GMOxDEV/client-jndi-names.html

So in the default installation, if you have a @Stateless(name=MyBean),
your JNDI name would be MyBeanRemote.

HTH.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
Only the meek get pinched. The bold survive.
  - Ferris Bueller


Re: Geronimo 2 EJB3 Remote Access Example

2008-01-24 Thread xypher
, local class
serialVersionUID = -7734383756981201981
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at
org.apache.openejb.client.JNDIResponse.readExternal(JNDIResponse.java:64)
at org.apache.openejb.client.Client.processRequest(Client.java:192)
... 5 more

Normaly the system user should work. 

Any idea?

Thanks

-- 
View this message in context: 
http://www.nabble.com/Geronimo-2-EJB3-Remote-Access-Example-tp15053984s134p15063643.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Geronimo 2 EJB3 Remote Access Example

2008-01-24 Thread Viet Nguyen
(JNDIContext.java:74)
 at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:197)
 ... 2 more
 Caused by: java.io.InvalidClassException:
 org.apache.openejb.client.EJBMetaDataImpl; local class incompatible: stream
 classdesc serialVersionUID = 2128092884552388429, local class
 serialVersionUID = -7734383756981201981
 at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
 at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
 at java.io.ObjectInputStream.readClassDesc(Unknown Source)
 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
 at java.io.ObjectInputStream.readObject0(Unknown Source)
 at java.io.ObjectInputStream.readObject(Unknown Source)
 at
 org.apache.openejb.client.JNDIResponse.readExternal(JNDIResponse.java:64)
 at org.apache.openejb.client.Client.processRequest(Client.java:192)
 ... 5 more

 Normaly the system user should work.

 Any idea?

 Thanks

 --
 View this message in context: 
 http://www.nabble.com/Geronimo-2-EJB3-Remote-Access-Example-tp15053984s134p15063643.html

 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.




Re: Geronimo 2 EJB3 Remote Access Example

2008-01-24 Thread xypher
 serialVersionUID =
 2128092884552388429, local class serialVersionUID = -7734383756981201981
 at
 org.apache.openejb.client.Client.processRequest(Client.java:197)
 at org.apache.openejb.client.Client.request(Client.java:43)
 at
 org.apache.openejb.client.JNDIContext.request(JNDIContext.java:74)
 at
 org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:197)
 ... 2 more
 Caused by: java.io.InvalidClassException:
 org.apache.openejb.client.EJBMetaDataImpl; local class incompatible:
 stream
 classdesc serialVersionUID = 2128092884552388429, local class
 serialVersionUID = -7734383756981201981
 at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
 at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
 at java.io.ObjectInputStream.readClassDesc(Unknown Source)
 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
 at java.io.ObjectInputStream.readObject0(Unknown Source)
 at java.io.ObjectInputStream.readObject(Unknown Source)
 at
 org.apache.openejb.client.JNDIResponse.readExternal(JNDIResponse.java:64)
 at
 org.apache.openejb.client.Client.processRequest(Client.java:192)
 ... 5 more

 Normaly the system user should work.

 Any idea?

 Thanks

 --
 View this message in context:
 http://www.nabble.com/Geronimo-2-EJB3-Remote-Access-Example-tp15053984s134p15063643.html

 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/Geronimo-2-EJB3-Remote-Access-Example-tp15053984s134p15065739.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Geronimo 2 EJB3 Remote Access Example

2008-01-23 Thread xypher

Hi,

I'm relatively new to Geroimo 2 and EJB3. I googled a lot, but I found no
simple example for my request. I'd like to develop an Session Bean and to
access this bean from an remote client over JNDI lookup. Can anybody give my
an simple example or tell my where I can find something like this.

I tried a lot, but I'm not sure what I have to configure in the deployment
descriptors and what is the correct jndi lookup name.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Geronimo-2-EJB3-Remote-Access-Example-tp15053984s134p15053984.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Geronimo 2 EJB3 Remote Access Example

2008-01-23 Thread Viet Nguyen
There are some sample applications on our wiki. For a session bean
sample, you might want to take a look at this:
http://cwiki.apache.org/GMOxDOC20/very-simple-session-ejb-example.html.

There are other samples there too if you're interested.

Thanks,
Viet

On Jan 23, 2008 5:14 PM, xypher [EMAIL PROTECTED] wrote:

 Hi,

 I'm relatively new to Geroimo 2 and EJB3. I googled a lot, but I found no
 simple example for my request. I'd like to develop an Session Bean and to
 access this bean from an remote client over JNDI lookup. Can anybody give my
 an simple example or tell my where I can find something like this.

 I tried a lot, but I'm not sure what I have to configure in the deployment
 descriptors and what is the correct jndi lookup name.

 Thanks.
 --
 View this message in context: 
 http://www.nabble.com/Geronimo-2-EJB3-Remote-Access-Example-tp15053984s134p15053984.html
 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.