Forums Register Login

Accessing my jndiContext.lookup from Dos

+Pie Number of slices to send: Send
Hi,
I am trying to execute a dos command which calls a class which then uses some EJB's in it's processing.
I keep getting errors at the line jndiContext.lookup("java:comp/env/ejb/" + ejbName); in my class
I have added the fscontext.jar and providerutil.jar files to my lib folder, and added them to my classpath's in my dos command, but this still has not resolved my problem.
My EJB jar files are stored under the deploy folder under my JRun server.
Do you know what I do if I am to replace the line ("java:comp/env/ejb/" + ejbName); in my class. Do I use somew other line of code to reference my EJB's or do I need to add somethign to make them accessible using the line above.
Any help on this would be greatly appreciated.
Note: My EJB's worked fine when i used them from servlets and JSP. It just seems to be a problem i am getting through Dos.
[ January 27, 2003: Message edited by: Fergus Red ]
+Pie Number of slices to send: Send
Hi Fergus Red,
fscontext.jar and providerutils.jar are used to access files in the file system using JNDI.
You are trying to access the reference of the EJB's home in the LDAP directory using JNDI. You have to provide the supporting classes for accessing the LDAP/JNDI implementation available with you application server.
Please provide me the details of the app server which you are using so that I can provide some more information.
--------------------
vijay
+Pie Number of slices to send: Send
It is a Jrun 3.1 server
+Pie Number of slices to send: Send
Note also: I have placed the jndi.jar file in H:\Allaire\JRun\servers\ormoe1x1\default-app\WEB-INF\classes folder and reference this is in my classpaths in dos
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 765 times.
Similar Threads
Suspending/Pausing a MDB's Consumption Programmatically
Calling EJB from a normal Java Class
problem with JNDI name of EJB
JNDI: java:comp/env bound and unbound at the same time?
Initial Context for EJB - Problem executing from Dos command
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:47:59.