Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

arnav prateek

Greenhorn
+ Follow
since Apr 06, 2006
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 arnav prateek

Hi Craig,

Thanks for your advice but I am unable to access Hyperlink 'my post' and where I can get this Groovy package..
Looking to hear from you ASAP.

Regards
Hi,

I have data in XML format, I have to migrate all these data into Sybase table. XML structure is very simple.
IS there any way to directly upload these data from XML file to Sybase tables?

Thanks in advance.

Regards
Hi,

I have a complex XML file to read,

Actual XML file looks like this:
<LDEGER>
<DAYPROFIT>
<DAY>
<NAME>Monday</NAME>
</DAY>1234
<DAY>
<NAME>TuesDay</NAME>
</DAY>1002
</DAYPROFIT>
</LEDGER>

Here DAY tag can appear multiple times and if you have noticed 1234 and 1002 are appearing just after each closing tag of DAY..
I am able to read Name tags but unable to read 1234 and 1002....values using SAX and dom parser...

Can somebody will help in reading this file?

Thanks in Advance.

Regards
Hi,

I have a complex XML file to read,

Actual XML file looks like this:
<LDEGER>
<DAYPROFIT>
<DAY>
<NAME>Monday</NAME>
</DAY>1234
<DAY>
<NAME>TuesDay</NAME>
</DAY>1002
</DAYPROFIT>
</LEDGER>

Here DAY tag can appear multiple times and if you have noticed 1234 and 1002 are appearing just after each closing tag of DAY..
I am able to read Name tags but unable to read 1234 and 1002....values using SAX and dom parser...

Can somebody will help in reading this file?

Thanks in Advance.

Regards
Hi,

I am new to EJB and I have small doubt abot it;s usage, Requesting to clarify it:

- Normally in projects, people are using stateless session bean to access database(for select, update and delete) and they leave data concurrency handling at database levels.
Now,(a) I am unable to understand what kind of benefit they are getting by useing stateless session bean?
(b) Instead of using Stateless Session bean If I will use simple java class then which kind of problems I may get into?

Hope you understand my questions? Looking for clarification...

Thanks in advance.
I am trying to deploy one stateful session bean in JBOSS, it is giving following error while deployement:
------------------------------
14:15:48,550 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.
2.1/server/default/deploy/bookcart_ejb.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
d, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy7.deploy(Unknown Source)
-------------------------------------------------------

my deployment descriptor is as follows:
ejb-jar.xml
-------------------
<?xml version="1.0" ?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/dtd/ejb-jar_1_1.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>BookCart</ejb-name>
<home>com.neeraj.statefulbean.BookCartHome</home>
<remote>com.neeraj.statefulbean.BookCart</remote>
<ejb-class>com.neeraj.statefulbean.BookCartBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
---------------------------------------

Any idea where is problem?

Thanks in advance
Regards
16 years ago
Hi,

I need to read .doc and write this file content into a .pdf file..
Do we have any java API for it?

Thanks in advance

Regards
16 years ago
How to integrate weblogic with Eclipse IDE..
Can any body please guide me?

Thanks in advance
16 years ago
Hi Snehin,

Can you please provide me directiry hirarchy and contents of xml files...so that I can figure out, where is problem?

Regards
Arnav
16 years ago
To access ejb from servlet follwoing code snippet has been written:
-----------Start--------------
InitialContext init = new InitialContext();
Object objref = init.lookup("CDSAdminJNDI");
CDSAdminHome cdsAdminHome = (CDSAdminHome)PortableRemoteObject.narrow(objref,CDSAdminHome.class);
CDSAdmin cdsAdmin = cdsAdminBean.create();
cdsAdmin.saveCDSAdminRecords(hmAdminParameters);
----------End-----------------

jboss xml file is as follows:
------Start -----------------
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<enterprise-beans>
<session>
<ejb-name>CDSAdmin</ejb-name>
<jndi-name>CDSAdminJNDI</jndi-name>
</session>
</enterprise-beans>
</jboss>
-------End------------

While accessing this Bean..I get following exception on jboss console:

Exception While accessing EJB: javax.naming.NameNotFoundException: CDSAdminJNDI not bound

Can Any body help where is problem?

Thanks in advance
To access ejb from servlet follwoing code snippet has been written:
-----------Start--------------
InitialContext init = new InitialContext();
Object objref = init.lookup("CDSAdminJNDI");
CDSAdminHome cdsAdminHome = (CDSAdminHome)PortableRemoteObject.narrow(objref,CDSAdminHome.class);
CDSAdmin cdsAdmin = cdsAdminBean.create();
cdsAdmin.saveCDSAdminRecords(hmAdminParameters);
----------End-----------------

jboss xml file is as follows:
------Start -----------------
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<enterprise-beans>
<session>
<ejb-name>CDSAdmin</ejb-name>
<jndi-name>CDSAdminJNDI</jndi-name>
</session>
</enterprise-beans>
</jboss>
-------End------------

While accessing this Bean..I get following exception on jboss console:

Exception While accessing EJB: javax.naming.NameNotFoundException: CDSAdminJNDI not bound

Can Any body help where is problem?

Thanks in advance
16 years ago
To access ejb from servlet follwoing code snippet has been written:
-----------Start--------------
InitialContext init = new InitialContext();
Object objref = init.lookup("CDSAdminJNDI");
CDSAdminHome cdsAdminHome = (CDSAdminHome)PortableRemoteObject.narrow(objref,CDSAdminHome.class);
CDSAdmin cdsAdmin = cdsAdminBean.create();
cdsAdmin.saveCDSAdminRecords(hmAdminParameters);
----------End-----------------

jboss xml file is as follows:
------Start -----------------
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<enterprise-beans>
<session>
<ejb-name>CDSAdmin</ejb-name>
<jndi-name>CDSAdminJNDI</jndi-name>
</session>
</enterprise-beans>
</jboss>
-------End------------

While accessing this Bean..I get following exception on jboss console:

Exception While accessing EJB: javax.naming.NameNotFoundException: CDSAdminJNDI not bound

Any body can help where is problem?

Thanks in advance
16 years ago
With Same web.xml...application is wrking in tomcat....pls find below web.xml

----web.xml--------
<web-app>
<display-name>City Directory Query</display-name>
<description>
Tomcat Example servlets and JSP pages.
</description>
<servlet>
<servlet-name>CDSAdminServlet</servlet-name>
<servlet-class>com.servlet.admin.CDSAdminServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CDSAdminServlet</servlet-name>
<url-pattern>/CDSAdminServlet</url-pattern>
</servlet-mapping>
</web-app>
---------------------------------
16 years ago