have you tried a JNDI lookup?
Context ctx = new InitialContext();
| MyRemoteIfc bean =
(MyRemoteIfc)ctx.lookup(ear-name/jar-name/bean-name/remote);
|
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4133503#4133503
Reply to the post :
I was not in for past few days.
| Jboss-service.xml
|
| ?xml version=1.0 encoding=UTF-8?
|
| !-- $Id: jboss-service.xml,v 1.59.2.50 2004/10/23 02:19:28 starksm Exp $
--
|
| !-- =
--
| !-- JBoss Server
Do you stil have the jboss-service.xml file ?
Thanks in advance !
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4027529#4027529
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4027529
Hi !
Could you like please send me jboss-service.xml releated to deploying this
application ? I have a problem of MBeanServer (ConnectionManager) !
Thank you in advance
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4027206#4027206
Reply to the post :
I will give it a try.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4025319#4025319
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025319
___
jboss-user mailing list
It really helped me. Thanks a lot. I will try to implement this.
In btw, I have a small question.
How can i invoke Jboss service from standalone application?
I had hibernate-service and want to invoke that service from standalone
application. This will solve almost all my problem.
Your hibernate service will be deployed as a MBean. You can get a remote access
to your MBean as mentioned in section Using the RMIADaptor at
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIGetRemoteAccessToMyMBean
View the original post :
Here's the remote session bean facade which you can use in JBoss-3.2.x to work
with datasources from the standalone client:
Home interface:
package org.myapp.ejb;
|
| import java.rmi.RemoteException;
| import javax.ejb.CreateException;
| import javax.ejb.EJBHome;
|
| /**
| *
Can you post your -ds.xml and the code where you are looking up the datasource.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024267#4024267
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024267
Steps
1. Included use-java-contextfalse/use-java-context in -ds.xml
2. Started Jboss
3. Ran standalone program to lookup the datasource. Error occurred.
| Jboss Server Console
| 11:01:38,343 INFO [DatasourceConnectionProvider] Using datasource:
java:/Detects
| 11:01:38,359 INFO
Forgot to add -ds.xml file
| ?xml version=1.0 encoding=UTF-8?
| datasources
| local-tx-datasource
| jndi-nameDetects/jndi-name
| driver-classoracle.jdbc.driver.OracleDriver/driver-class
| connection-urljdbc:oracle:thin:@XXX:1521:/connection-url
|
anonymous wrote : I am new to EJB.
Frankly speaking, it would difficult to explain or understand this without
going through some sample EJB applications. Once you understand EJB, this will
be an easy task to use the remote facade.
So if its not a production application that you are currently
I am using Jboss 3.2.7. It is not working.
I got the below error while lookup. Help me to resolve.
|
| javax.naming.NameNotFoundException: Detects not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:490)
| at
Have a look at:
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanIAccessADataSourceFromAClient
However, this is not a recommended approach as mentioned at
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources
anonymous wrote : Note: JBoss does not recommend using this feature on a
Thanks for the immediate response.
I am new to EJB.
Can you please provide me a link to get the datasource using remote session
bean facade?
Thank you,
Gopi
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4023488#4023488
Reply to the post :
15 matches
Mail list logo