Balaji Thirnrayan

Greenhorn
+ Follow
since Nov 13, 2003
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 Balaji Thirnrayan

Is there a way to run an NT batch file (which invokes a Java Swing application) as NT Service. Please help.
16 years ago
Hi,

I am trying to get a GUI display always on top, ie I want the GUI to SHOW up even if the screen is locked. Has anyone accomplished this, please help.
16 years ago
Thank you
Can you provide me some sample code.
16 years ago
How can I go about making the data in a particular cell of a JTable component BOLD. Please help.
16 years ago
Did you solve this problem, If yes please let me know how you solved as I cannot get it working.
AGUMENT THIS
JAVA BEAN is devolepment component, Meaning using a JAVA BEAN you can develop a bigger software componnent.
EJB is deployable component which runs on an J2EE Application Server.
I am trying to run the simple EJB given in J2EE tutorials on Sun 's application server.
I am getting following error,
javax.naming.NameNotFoundException: No object bound for java:comp/env/ejb/Conver
terBean
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.j
ava:137)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at ConverterClient.main(ConverterClient.java:46)
Caused by: java.lang.NullPointerException
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:108)
Please let me know what am I missing here, this is my client code. ( The server is rnning and the EJB is deployed properly)
public static void main(String[] args) {
try {
Hashtable env = new Hashtable();
env.put (Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");
env.put(Context.PROVIDER_URL, "t3://localhost:8080";);
env.put(Context.URL_PKG_PREFIXES, "com.sun.enterprise.naming" );
Context initial = new InitialContext(env);
Context myEnv = (Context) initial.lookup("java:comp/env");
Object objref = initial.lookup("ejb/ConverterBean");
ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(objref,
ConverterHome.class);
Converter currencyConverter = home.create();
BigDecimal param = new BigDecimal("100.00");
BigDecimal amount = currencyConverter.dollarToYen(param);
System.out.println(amount);
amount = currencyConverter.yenToEuro(param);
System.out.println(amount);
System.exit(0);
} catch (Exception ex) {
System.err.println("Caught an unexpected exception!");
ex.printStackTrace();
}
}
Hi All,
I am trying to move from weblogic 6.1 to weblogic 8.1 . My application consists of just JSPs, JavaBeans and EJB, so In weblogic 6.1 I did not create any .war file but deployed the application on the DefaultWebApplication directory, so was able to access my web applications without specifying any sub diectory like,
http://<IP ADDRESS>:7001/MyStartApp.jsp.
Can I achieve the same thing in weblogic 8.1 or should I have to deploy it in a war file (which results in a root directory and the url turns into"
http://<IP ADDRESS>:7001/RootDirectory/MyStartApp.jsp ", Can anyone help me.
16 years ago