tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Davis <>
Subject Re: Running EJB and non-EJB applications in one Tomcat
Date Tue, 29 Apr 2014 01:50:28 GMT
Thanks Andy.  I changed to the remote tomee client with http per following
code.  I'm obviously not connecting all the dots somewhere because I just
get the following message:

org.apache.openejb.client.ClientRuntimeException: Invalid response from
server: -1

IF I discover how this works, THEN I may be able to suggest how the docs may
have been more helpful.  But right now I'm just confused.


	private void fetchDatabaseConnection()  throws ConnectionException {
		Properties p = new Properties();
//		p.put("java.naming.provider.url", "ejbd://");	// this
works when openejb is started
		p.put("java.naming.provider.url", "");
// user and pass optional
//		p.put("", "chuck");
//		p.put("", "dosomething");

		InitialContext ctx = null;
		try {
			ctx = new InitialContext(p);
		} catch (NamingException ex) {
			Logger.getLogger(ClientConstants.class.getName()).log(Level.SEVERE, null,
		try {
			myBean = (NetworkLedgerServerRemote)
		} catch (NamingException ex) {
			Logger.getLogger(ClientConstants.class.getName()).log(Level.SEVERE, null,
 		if(myBean == null) {
			System.out.println("myBean is null after lookup");

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message