Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Sriram T

Greenhorn
+ Follow
since Sep 10, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sriram T

Hi Kyle,

I was looking at your previous messages which say that Local EJBs can be referenced by java:comp/env....

But its not working in my case. I am not sure what is the problem.. Please help...

R javax.naming.NameNotFoundException: Name "comp/env/ejb/Test_type" not found in context "java:".
[12/1/04 12:48:19:874 PST] 29b707d6 SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1009)
[12/1/04 12:48:19:874 PST] 29b707d6 SystemErr R
Hi,
I am using WSAD for developing EJBs. I have created an EntityBean(CMP) and Session Bean(Stateless).

I have created the references using the References tab.

I am using Code Snippet to create the Local EJB.

Here is the code for my session bean......

private final static String STATIC_Test_typeLocalHome_REF_NAME =
"ejb/Test_type";
private final static Class STATIC_Test_typeLocalHome_CLASS =
Test_typeLocalHome.class;

Test_typeLocalHome aTest_typeLocalHome =
(Test_typeLocalHome) ServiceLocatorManager.getLocalHome(
STATIC_Test_typeLocalHome_REF_NAME,
STATIC_Test_typeLocalHome_CLASS);
Test_typeLocal aTest_typeLocal = null;
try {
if (aTest_typeLocalHome != null)
aTest_typeLocal =
aTest_typeLocalHome.create(
Test_type_id,
name,
ts,
ts,
flag,
flag,
ts,
ts);
status = "Success";
} catch (javax.ejb.CreateException ce) {
// TODO Auto-generated catch block
ce.printStackTrace();
}


I get the following error :

[12/1/04 12:06:41:691 PST] 74c382ff SystemOut O Entered addPageGroupTypes
[12/1/04 12:06:41:691 PST] 74c382ff SystemOut O Trying to get PageGroupType Home...
[12/1/04 12:06:41:741 PST] 74c382ff SystemErr R javax.naming.NameNotFoundException: Name "comp/env/ejb/Test_type" not found in context "java:".
[12/1/04 12:06:41:741 PST] 74c382ff SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1009)
[12/1/04 12:06:41:741 PST] 74c382ff SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:920)
[12/1/04 12:06:41:741 PST] 74c382ff SystemErr R at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1211)
[12/1/04 12:06:41:741 PST] 74c382ff SystemErr R at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1203)
[12/1/04 12:06:41:741 PST] 74c382ff SystemErr R at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1257)
[12/1/04 12:06:41:741 PST] 74c382ff SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:359)


I have tried many ways but couldn't succeed. Someone please help me, coz Our project is in crucial stage and I am struggling with this problem.

I appreciate your help.

Thanks,
ST
Hello,
I am using EJBeans for my project,It is for displaying the product information provided in a mall.Can we use XML files to store the data and avoid the complexity of contacting database every time.....will there be any problem in storing the data from data base in a XML file....is there any limitations for XML files.
I want to update the XML files when ever data base is updated.Will it be a good approach to the solution which I need???
Pls Help me......
Hi,
I got a problem in using session beans in my project.
My project deals with Shopping mall...in which we will be displaying the details of shops and the products and services offered by them.......I am using Only one stateful bean for the whole scenario.........will it be good to go for that .............will it burden the system...........will it be better to use more than one bean???
Please clarify...............how about using Entity beans.......
Please some body help me ...............
In our project we want to use stateful session beans..........can we use only one stateful session bean to access many tables....
Please give me details ....if there is any site providing examples of this please give me
hi,
Can we use only one entity bean to access different tables in a data base....if yes do we need to establish connection to the data base each and every time..........
Which sort of Entity bean can we use....CMP or BMP............
Some one Please clarify this
Hi,
There is some problem in selecting type of beans in our project....Our project is to allow customer to browse for the retailers and the products they are selling...and will be displaying the availability of products, and to allow user to book cinema ticket online......for this application we are planning to use Entity beans ..........but I think we dont need to go for Entity coz we are not performing any transactions........I am planning to change it to session beans.............can anybody suggest me which bean to use...............