eclipse-ee4j / eclipse-ee4j/glassfish-samples

ejb-embedded samples project -- multiple issues

Open
#31 17 comments 0 reactions 1 assignee Claimed by @glassfishrobot View on GitHub
Component: ejb ERR: Assignee Priority: Major Type: Bug
Dominant language
Java
Stars
41
Forks
29
PR merge metrics
No merged PRs in 30d

Description

using Samples svn checked out with last week; gfv3.1b24, netbeans 6.9.1;

Summary – with detail later in this post.

subproject ejb-embedded-client will not run – Until I changed its build.xml
to add the dist directory; see below

after the change i can use netbeans to run the run target and it works;

netbeans/project - test fails; have a log file will post

netbeans/file test – the nbtest/.../SimpleEjgTest.java fails; also a log file

netbeans/debug-file test – succeeds; also have log file; only succeeds, runs
without errors after changing the SimpleEjbTest.java – the jndi name is wrong;
the correct name is part of the Container output to the log.

see below: 2 jndi names will work; original will not;

//SimpleEjb ejb1 = (SimpleEjb) ic.lookup("java:global/ejb-embedded/SimpleEjb");
SimpleEjb ejb2 = (SimpleEjb) ic.lookup
("java:global/jar/SimpleEjb!ejb.embedded.SimpleEjb");
SimpleEjb ejb = (SimpleEjb) ic.lookup("java:global/jar/SimpleEjb");

have 3 logs files; unable to discover how to fix – why will run as Debug Test,
and Not Run as simply Test

By The Way – after the change to the TestClient.java build.xml – can also
do project/Run – and it works – side effect – it starts gfv3.1 and deployes
the Jar to it; then runs the embedded client that is separate from gfv3.1
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[javaee6]

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.